blob: 085a5899bc8e78214d57e691b0e5c3b3fc2904aa [file] [log] [blame]
<!DOCTYPE html>
<link rel="help" href="https://crbug.com/1034461">
<link rel="match" href="webkit-box-horizontal-rtl-variants-ref.html">
<style>
.webkitbox {
width: 300px;
display: -webkit-box;
direction: rtl;
border-style: solid;
border-width: 1px 2px 1px 4px;
}
.redbox {
background: red;
width: 100px;
}
.greenbox {
background: green;
width: 100px;
}
</style>
<p>Exercises -webkit-box with various box-pack settings when rtl. In all cases
the order of letters in the boxes should be alphabetized left to right.
<p>Start. Boxes should be aligned to right side.
<div class="webkitbox">
<div class="redbox">B</div>
<div class="greenbox">A</div>
</div>
<p>Centered. Boxes should be centered.
<div class="webkitbox" style="-webkit-box-pack: center">
<div class="redbox">B</div>
<div class="greenbox">A</div>
</div>
<p>End. Boxes should be aligned to left side.
<div class="webkitbox" style="-webkit-box-pack: end">
<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="webkitbox">
<div class="redbox">D</div>
<div class="greenbox">C</div>
<div class="redbox">B</div>
<div class="greenbox">A</div>
</div>
<p>Center, content too big. Boxes should start at left edge and extend
outside border.
<div class="webkitbox" style="-webkit-box-pack: center">
<div class="redbox">D</div>
<div class="greenbox">C</div>
<div class="redbox">B</div>
<div class="greenbox">A</div>
</div>
<p>End, content too big. Boxes should start at left edge and extend
outside border.
<div class="webkitbox" style="-webkit-box-pack: end">
<div class="redbox">D</div>
<div class="greenbox">C</div>
<div class="redbox">B</div>
<div class="greenbox">A</div>
</div>