Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: third_party/WebKit/LayoutTests/imported/csswg-test/vendor-imports/mozilla/mozilla-central-reftests/flexbox/flexbox-table-fixup-001.xhtml

Issue 1922043004: Import csswg-test@b2daa426addd5ccb8e9ce1c5d800f9d82603f1ec (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update W3CImportExpectations and make me owner for css-scoping-1 Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- 2 <!--
3 Any copyright is dedicated to the Public Domain. 3 Any copyright is dedicated to the Public Domain.
4 http://creativecommons.org/publicdomain/zero/1.0/ 4 http://creativecommons.org/publicdomain/zero/1.0/
5 --> 5 -->
6 <!-- 6 <!--
7 Testcase with table parts inside of a flex container, triggering 7 Testcase with table parts inside of a flex container, which should *not*
8 table-fixup. We use justify-content:space-between to stick packing 8 trigger table-fixup. We use justify-content:space-between to stick packing
9 space between flex items, so that we can verify that e.g. a contiguous 9 space between flex items, so that we can verify that e.g. a contiguous
10 run of <td>s will end up in the same flex item (wrapped in a table). 10 run of <td>s will each be blockified & form its own flex item (instead of
11 being aggregated into a single table & single flex item).
11 --> 12 -->
12 <html xmlns="http://www.w3.org/1999/xhtml"> 13 <html xmlns="http://www.w3.org/1999/xhtml">
13 <head> 14 <head>
14 <title>CSS Test: Testing that table cells in a flex container get an anonymo us table wrapper that forms the flex item</title> 15 <title>CSS Test: Testing that table cells in a flex container get blockified and each form their own flex item</title>
15 <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com" /> 16 <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com" />
16 <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#flex-items"/> 17 <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#flex-items"/>
17 <link rel="match" href="flexbox-table-fixup-001-ref.xhtml"/> 18 <link rel="match" href="flexbox-table-fixup-001-ref.xhtml"/>
18 <style> 19 <style>
19 div.flexbox { 20 div.flexbox {
20 border: 1px dashed blue; 21 border: 1px dashed blue;
21 width: 200px; 22 width: 200px;
22 display: flex; 23 display: flex;
23 justify-content: space-around; 24 justify-content: space-around;
24 } 25 }
25 26
26 <!-- NOTE: table-fixup pads each td element by 1px on each side. We
27 override that for top & bottom, for simplicity. So the td makes us
28 generate a box that's 2px wider than its contents. -->
29 td { 27 td {
30 padding-top: 0px; 28 /* Remove any default padding for td elements, so we can compare them
31 padding-bottom: 0px; 29 easily against blocks in the reference case. */
30 padding: 0px;
32 } 31 }
33 32
34 .a { 33 .a {
35 background: lightgreen; 34 background: lightgreen;
36 width: 48px; 35 width: 48px;
37 } 36 }
38 37
39 .b { 38 .b {
40 background: yellow; 39 background: yellow;
41 width: 48px; 40 width: 48px;
42 } 41 }
43 42
44 .c { 43 .c {
45 background: pink; 44 background: pink;
46 width: 48px; 45 width: 48px;
47 } 46 }
48 </style> 47 </style>
49 </head> 48 </head>
50 <body> 49 <body>
51 <!-- Just 2 adjacent table cells (they end up in the same table) --> 50 <!-- The adjacent table-parts in each example below should *not* be
51 grouped into the same flex item. -->
52 <!-- 2 adjacent table cells -->
52 <div class="flexbox" 53 <div class="flexbox"
53 ><td class="a">cell1</td><td class="b">cell2</td></div> 54 ><td class="a">cell1</td><td class="b">cell2</td></div>
54 55
55 <!-- Table cell followed by tbody (they end up in the same table) --> 56 <!-- Table cell followed by tbody -->
56 <div class="flexbox" 57 <div class="flexbox"
57 ><td class="a">cell1</td><tbody class="b">t</tbody></div> 58 ><td class="a">cell1</td><tbody class="b">t</tbody></div>
58 59
59 <!-- Empty table cell (ends up occupying 2px of width), followed by div, 60 <!-- Empty table cell (ends up occupying 2px of width), followed by
60 followed by nonempty table cell. (3 flex items). --> 61 nonempty table cell. -->
61 <!-- Note: We use "space-between" (instead of "space-around") here because 62 <div class="flexbox"
62 it makes the math cleaner. (100px split 2 ways instead of 3 ways.) --> 63 ><td></td><td class="b">cell1</td></div>
63 <div class="flexbox" style="justify-content: space-between"
64 ><td></td><div class="c">div</div><td class="b">cell1</td></div>
65 </body> 64 </body>
66 </html> 65 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698