<!DOCTYPE html>
<style>
.flexbox {
  width: 300px;
  display: flex;
  border-style: solid;
  border-width: 1px 2px 1px 4px;
}

.reverse {
  flex-direction: row-reverse;
}

.redbox {
  background: red;
  width: 100px;
  flex-shrink: 0;
}

.greenbox {
  background: green;
  width: 100px;
  flex-shrink: 0;
}

</style>
<p>Exercises -webkit-box with various box-pack settings when direction is
   reverse. In all cases the order of letters in the boxes should be
   alphabetized left to right.
<p>Start. Boxes should be aligned to left side.
<div class="flexbox reverse" style="justify-content: flex-end;">
  <div class="redbox">B</div>
  <div class="greenbox">A</div>
</div>

<p>Centered. Boxes should be centered.
<div class="flexbox reverse" style="justify-content: center;">
  <div class="redbox">B</div>
  <div class="greenbox">A</div>
</div>

<p>End. Boxes should be aligned to right side.
<div class="flexbox reverse">
  <div class="redbox">B</div>
  <div class="greenbox">A</div>
</div>

<p>Start, content too big. Boxes should start at left edge and extend
   outside border.
<div class="flexbox">
  <div class="greenbox">A</div>
  <div class="redbox">B</div>
  <div class="greenbox">C</div>
  <div class="redbox">D</div>
</div>

<p>Center, content too big. Boxes should start at left edge and extend
   outside border.
<div class="flexbox">
  <div class="greenbox">A</div>
  <div class="redbox">B</div>
  <div class="greenbox">C</div>
  <div class="redbox">D</div>
</div>

<p>End, content too big. Boxes should start at left edge and extend
   outside border.
<div class="flexbox">
  <div class="greenbox">A</div>
  <div class="redbox">B</div>
  <div class="greenbox">C</div>
  <div class="redbox">D</div>
</div>
