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

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/css/CSS2/floats-clear/margin-collapse-clear-015.xht

Issue 2818213003: Import css21/floats-clear W3C CSS Test Suite (Closed)
Patch Set: update TestExpectations 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/external/wpt/css/CSS2/floats-clear/margin-collapse-clear-015.xht
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/floats-clear/margin-collapse-clear-015.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/floats-clear/margin-collapse-clear-015.xht
new file mode 100644
index 0000000000000000000000000000000000000000..0c18a3c2871b103e2a248b237e91483dbb71e719
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/floats-clear/margin-collapse-clear-015.xht
@@ -0,0 +1,102 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+
+ <head>
+
+ <title>CSS Test: Margin collapsing with clearance - Margins collapsing of an element's top margin with its first in-flow child should not be affected by clear and clearance</title>
+
+ <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#collapsing-margins" />
+ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+ <link rel="author" title="Bruno Fassino" href="fassino[at]gmail.com" />
+ <link rel="match" href="margin-collapse-clear-015-ref.xht" />
+
+ <meta content="When an element with clear set to it (to other than 'none') has a first in-flow child and their top margins are adjoining, then these margins should collapse normally." name="assert" />
+ <meta content="" name="flags" />
+
+ <style type="text/css"><![CDATA[
+ #rel-pos-wrapper {position: relative;}
+
+ #parent-lime
+ {
+ background-color: lime;
+ border-top: black solid 1px;
+ width: 50%;
+ }
+
+ #float-left-blue
+ {
+ background-color: blue;
+ float: left;
+ height: 100px;
+ width: 100px;
+ }
+
+ #clear-left {clear: left;}
+
+ #clear-left > div
+ {
+ background-color: aqua;
+ height: 60px;
+ margin-top: 140px;
+ }
+
+ #next-yellow
+ {
+ background-color: yellow;
+ height: 100px;
+ }
+
+ .ref-overlapped-red
+ {
+ background-color: red;
+ left: 0;
+ position: absolute;
+ z-index: -1;
+ }
+
+ #ref1
+ {
+ height: 200px;
+ top: 1px;
+ width: 50%;
+ }
+
+ #ref2
+ {
+ height: 100px;
+ top: 201px;
+ width: 100%;
+ }
+ ]]></style>
+
+ </head>
+
+ <body>
+
+ <p>Test passes if there is <strong>no red</strong>.</p>
+
+ <div id="rel-pos-wrapper">
+
+ <div id="parent-lime">
+ <div id="float-left-blue"></div>
+ <div id="clear-left">
+ <div></div>
+ </div>
+ </div>
+
+ <div id="next-yellow"></div>
+
+ <!--
+ #ref1 and #ref2 boxes create a sort of 'reference rendering'
+ where #ref1 should be covered, overlapped by #parent-lime
+ while #ref2 should be covered, overlapped by #next-yellow.
+ -->
+
+ <div id="ref1" class="ref-overlapped-red"></div>
+ <div id="ref2" class="ref-overlapped-red"></div>
+
+ </div>
+
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698