1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/w3c-css/submitted/flexbox/flexbox-table-fixup-1-ref.xhtml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,61 @@ 1.4 +<?xml version="1.0" encoding="UTF-8"?> 1.5 +<!-- 1.6 + Any copyright is dedicated to the Public Domain. 1.7 + http://creativecommons.org/publicdomain/zero/1.0/ 1.8 +--> 1.9 +<!-- Reference case for table-fixup on table parts inside of a 1.10 + flex container. --> 1.11 +<html xmlns="http://www.w3.org/1999/xhtml"> 1.12 + <head> 1.13 + <title>CSS Reftest Reference</title> 1.14 + <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"/> 1.15 + <style> 1.16 + div.flexbox { 1.17 + border: 1px dashed blue; 1.18 + } 1.19 + 1.20 + <!-- NOTE: table-fixup pads each td element by 1px on each side. We 1.21 + override that for top & bottom, for simplicity. So the td makes us 1.22 + generate a box that's 2px wider than its contents. --> 1.23 + td { 1.24 + padding-top: 0px; 1.25 + padding-bottom: 0px; 1.26 + } 1.27 + 1.28 + .a { 1.29 + background: lightgreen; 1.30 + width: 48px; 1.31 + } 1.32 + 1.33 + .b { 1.34 + background: yellow; 1.35 + width: 48px; 1.36 + } 1.37 + 1.38 + .c { 1.39 + background: pink; 1.40 + width: 48px; 1.41 + } 1.42 + </style> 1.43 + </head> 1.44 + <body> 1.45 + <!-- Just 2 adjacent table cells (they end up in the same table) --> 1.46 + <div class="flexbox" style="padding-left: 50px; width: 150px" 1.47 + ><td class="a">cell1</td 1.48 + ><td class="b">cell2</td 1.49 + ></div> 1.50 + 1.51 + <!-- Table cell followed by tbody (they end up in the same table) --> 1.52 + <div class="flexbox" style="padding-left: 75px; width: 125px" 1.53 + ><td class="a">cell1</td 1.54 + ><tbody class="b">t</tbody 1.55 + ></div> 1.56 + 1.57 + <!-- Empty table cell (ends up occupying 2px of width), followed by div, 1.58 + followed by nonempty table cell. (3 flex items). --> 1.59 + <div class="flexbox" style="padding-left: 52px; width: 148px" 1.60 + ><div style="display: inline-block;" class="c">div</div 1.61 + ><div style="display: inline-table; margin-left: 50px"><td class="b">cell1</td></div 1.62 + ></div> 1.63 + </body> 1.64 +</html>