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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/css/CSS2/floats/floats-wrap-bfc-007.xht

Issue 2824513002: Import css21/floats W3C CSS Test Suite (Closed)
Patch Set: revert WPT_BASE_MANIFEST.json Created 3 years, 8 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
(Empty)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x html1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en -US"><head>
2 <title>CSS Test: Test for flow around floats</title>
3 <link rel="author" title="L. David Baron" href="https://dbaron.org/" />
4 <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/ " />
5 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats" / >
6 <link rel="match" href="floats-wrap-bfc-007-ref.xht"/>
7 <meta name="assert" content="The border box of a table, a block-level re placed element, or an element in the normal flow that establishes a new block fo rmatting context (such as an element with 'overflow' other than 'visible') must not overlap any floats in the same block formatting context as the element itsel f." />
8 <meta name="flags" content="" />
9 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
10 <meta http-equiv="Content-Style-Type" content="text/css" />
11 <style type="text/css">
12
13 table { margin: 0; border-spacing: 0; }
14 td, th { padding: 0; vertical-align: top; }
15
16 </style>
17 </head>
18 <body>
19
20 <!-- 6px margin between (from top, from bottom, from both) -->
21
22 <table width="300" style="background: aqua"><tbody><tr><td>
23 <div style="float: left; height: 10px; width: 150px; background: blue"></div >
24 <div style="height: 5px; background: purple; margin-bottom: 6px;"></div>
25 <div style="overflow: hidden; width: 200px; height: 5px; background: yellow; "></div>
26 </td></tr></tbody></table>
27
28 <table width="300" style="background: aqua"><tbody><tr><td>
29 <div style="float: left; height: 10px; width: 150px; background: blue"></div >
30 <div style="height: 5px; background: purple;"></div>
31 <div style="overflow: hidden; width: 200px; height: 5px; background: yellow; margin-top: 6px;"></div>
32 </td></tr></tbody></table>
33
34 <table width="300" style="background: aqua"><tbody><tr><td>
35 <div style="float: left; height: 10px; width: 150px; background: blue"></div >
36 <div style="height: 5px; background: purple; margin-bottom: 6px;"></div>
37 <div style="overflow: hidden; width: 200px; height: 5px; background: yellow; margin-top: 6px;"></div>
38 </td></tr></tbody></table>
39
40 <!-- 5px margin between (from both) -->
41
42 <table width="300" style="background: aqua"><tbody><tr><td>
43 <div style="float: left; height: 10px; width: 150px; background: blue"></div >
44 <div style="height: 5px; background: purple; margin-bottom: 5px;"></div>
45 <div style="overflow: hidden; width: 200px; height: 5px; background: yellow; margin-top: 5px;"></div>
46 </td></tr></tbody></table>
47
48 <table width="300" style="background: aqua"><tbody><tr><td>
49 <div style="float: left; height: 10px; width: 150px; background: blue"></div >
50 <div style="height: 5px; background: purple; margin-bottom: 10px;"></div>
51 <div style="overflow: hidden; width: 200px; height: 5px; background: yellow; margin-top: -5px;"></div>
52 </td></tr></tbody></table>
53
54 <table width="300" style="background: aqua"><tbody><tr><td>
55 <div style="float: left; height: 10px; width: 150px; background: blue"></div >
56 <div style="height: 5px; background: purple; margin-bottom: -5px;"></div>
57 <div style="overflow: hidden; width: 200px; height: 5px; background: yellow; margin-top: 10px;"></div>
58 </td></tr></tbody></table>
59
60 <!-- 4px margin between (from both) -->
61
62 <table width="300" style="background: aqua"><tbody><tr><td>
63 <div style="float: left; height: 10px; width: 150px; background: blue"></div >
64 <div style="height: 5px; background: purple; margin-bottom: 4px;"></div>
65 <div style="overflow: hidden; width: 200px; height: 5px; background: yellow; margin-top: 4px;"></div>
66 </td></tr></tbody></table>
67
68 <table width="300" style="background: aqua"><tbody><tr><td>
69 <div style="float: left; height: 10px; width: 150px; background: blue"></div >
70 <div style="height: 5px; background: purple; margin-bottom: -1px;"></div>
71 <div style="overflow: hidden; width: 200px; height: 5px; background: yellow; margin-top: 5px;"></div>
72 </td></tr></tbody></table>
73
74 <table width="300" style="background: aqua"><tbody><tr><td>
75 <div style="float: left; height: 10px; width: 150px; background: blue"></div >
76 <div style="height: 5px; background: purple; margin-bottom: -1px;"></div>
77 <div style="overflow: hidden; width: 200px; height: 5px; background: yellow; margin-top: 5px;"></div>
78 </td></tr></tbody></table>
79
80 <!-- negative margin between -->
81
82 <table width="300" style="background: aqua"><tbody><tr><td>
83 <div style="float: left; height: 10px; width: 150px; background: blue"></div >
84 <div style="height: 5px; background: purple; margin-bottom: -4px;"></div>
85 <div style="overflow: hidden; width: 200px; height: 5px; background: yellow; margin-top: 0px;"></div>
86 </td></tr></tbody></table>
87
88 <table width="300" style="background: aqua"><tbody><tr><td>
89 <div style="float: left; height: 10px; width: 150px; background: blue"></div >
90 <div style="height: 5px; background: purple; margin-bottom: 0px;"></div>
91 <div style="overflow: hidden; width: 200px; height: 5px; background: yellow; margin-top: -4px;"></div>
92 </td></tr></tbody></table>
93
94 <table width="300" style="background: aqua"><tbody><tr><td>
95 <div style="float: left; height: 10px; width: 150px; background: blue"></div >
96 <div style="height: 5px; background: purple; margin-bottom: -4px;"></div>
97 <div style="overflow: hidden; width: 200px; height: 5px; background: yellow; margin-top: -1px;"></div>
98 </td></tr></tbody></table>
99
100 <table width="300" style="background: aqua"><tbody><tr><td>
101 <div style="float: left; height: 10px; width: 150px; background: blue"></div >
102 <div style="height: 5px; background: purple; margin-bottom: -1px;"></div>
103 <div style="overflow: hidden; width: 200px; height: 5px; background: yellow; margin-top: -4px;"></div>
104 </td></tr></tbody></table>
105
106 <table width="300" style="background: aqua"><tbody><tr><td>
107 <div style="float: left; height: 10px; width: 150px; background: blue"></div >
108 <div style="height: 5px; background: purple; margin-bottom: -4px;"></div>
109 <div style="overflow: hidden; width: 200px; height: 5px; background: yellow; margin-top: -4px;"></div>
110 </td></tr></tbody></table>
111
112
113
114 </body></html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698