5 border:
5px solid black;
14 background-color: skyblue;
20 .cell { display: table-cell; }
22 .topleft { left:
0; top:
0; }
23 .topright { right:
0; top:
0; }
24 .bottomright { right:
0; bottom:
0; }
25 .bottomleft { left:
0; bottom:
0; }
27 .vertical { -webkit-writing-mode: vertical-lr; }
30 <script src=
"../../resources/check-layout.js"></script>
31 <p>Tests that percent lengths of an absolutely positioned table is resolved
32 against the
<em>padding box
</em> of the parent.
34 <output id=
"output"></output>
36 <div><span class=
"tbl topleft" data-expected-client-width=
50 data-expected-client-height=
50><span class=
"cell">abc
</span></span></div>
37 <div><span class=
"tbl topright" data-expected-client-width=
50 data-expected-client-height=
50><span class=
"cell">abc
</span></span></div>
38 <div><span class=
"tbl bottomright" data-expected-client-width=
50 data-expected-client-height=
50><span class=
"cell">abc
</span></span></div>
39 <div><span class=
"tbl bottomleft" data-expected-client-width=
50 data-expected-client-height=
50><span class=
"cell">abc
</span></span></div>
41 <div class=
"vertical"><span class=
"tbl topleft" data-expected-client-width=
50 data-expected-client-height=
50><span class=
"cell">abc
</span></span></div>
42 <div class=
"vertical"><span class=
"tbl topright" data-expected-client-width=
50 data-expected-client-height=
50><span class=
"cell">abc
</span></span></div>
43 <div class=
"vertical"><span class=
"tbl bottomright" data-expected-client-width=
50 data-expected-client-height=
50><span class=
"cell">abc
</span></span></div>
44 <div class=
"vertical"><span class=
"tbl bottomleft" data-expected-client-width=
50 data-expected-client-height=
50><span class=
"cell">abc
</span></span></div>
47 checkLayout(".tbl", output
);