layout/reftests/w3c-css/submitted/flexbox/flexbox-table-fixup-1-ref.xhtml

Thu, 15 Jan 2015 21:13:52 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:13:52 +0100
branch
TOR_BUG_9701
changeset 12
7540298fafa1
permissions
-rw-r--r--

Remove forgotten relic of ABI crash risk averse overloaded method change.

michael@0 1 <?xml version="1.0" encoding="UTF-8"?>
michael@0 2 <!--
michael@0 3 Any copyright is dedicated to the Public Domain.
michael@0 4 http://creativecommons.org/publicdomain/zero/1.0/
michael@0 5 -->
michael@0 6 <!-- Reference case for table-fixup on table parts inside of a
michael@0 7 flex container. -->
michael@0 8 <html xmlns="http://www.w3.org/1999/xhtml">
michael@0 9 <head>
michael@0 10 <title>CSS Reftest Reference</title>
michael@0 11 <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"/>
michael@0 12 <style>
michael@0 13 div.flexbox {
michael@0 14 border: 1px dashed blue;
michael@0 15 }
michael@0 16
michael@0 17 <!-- NOTE: table-fixup pads each td element by 1px on each side. We
michael@0 18 override that for top & bottom, for simplicity. So the td makes us
michael@0 19 generate a box that's 2px wider than its contents. -->
michael@0 20 td {
michael@0 21 padding-top: 0px;
michael@0 22 padding-bottom: 0px;
michael@0 23 }
michael@0 24
michael@0 25 .a {
michael@0 26 background: lightgreen;
michael@0 27 width: 48px;
michael@0 28 }
michael@0 29
michael@0 30 .b {
michael@0 31 background: yellow;
michael@0 32 width: 48px;
michael@0 33 }
michael@0 34
michael@0 35 .c {
michael@0 36 background: pink;
michael@0 37 width: 48px;
michael@0 38 }
michael@0 39 </style>
michael@0 40 </head>
michael@0 41 <body>
michael@0 42 <!-- Just 2 adjacent table cells (they end up in the same table) -->
michael@0 43 <div class="flexbox" style="padding-left: 50px; width: 150px"
michael@0 44 ><td class="a">cell1</td
michael@0 45 ><td class="b">cell2</td
michael@0 46 ></div>
michael@0 47
michael@0 48 <!-- Table cell followed by tbody (they end up in the same table) -->
michael@0 49 <div class="flexbox" style="padding-left: 75px; width: 125px"
michael@0 50 ><td class="a">cell1</td
michael@0 51 ><tbody class="b">t</tbody
michael@0 52 ></div>
michael@0 53
michael@0 54 <!-- Empty table cell (ends up occupying 2px of width), followed by div,
michael@0 55 followed by nonempty table cell. (3 flex items). -->
michael@0 56 <div class="flexbox" style="padding-left: 52px; width: 148px"
michael@0 57 ><div style="display: inline-block;" class="c">div</div
michael@0 58 ><div style="display: inline-table; margin-left: 50px"><td class="b">cell1</td></div
michael@0 59 ></div>
michael@0 60 </body>
michael@0 61 </html>

mercurial