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

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/css/CSS2/floats-clear/margin-collapse-clear-011.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-011.xht
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/floats-clear/margin-collapse-clear-011.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/floats-clear/margin-collapse-clear-011.xht
new file mode 100644
index 0000000000000000000000000000000000000000..e61a6668c34e5c711f150d972a5486bf707f5da6
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/floats-clear/margin-collapse-clear-011.xht
@@ -0,0 +1,105 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>CSS Test: Margin Collapsing with Clearance</title>
+ <link rel="author" title="Microsoft" href="http://microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#flow-control" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#collapsing-margins" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats" />
+ <meta name="flags" content="may" />
+ <style type="text/css">
+ .target1, .target2, .target3, .target4, .target5, .target6, .target7
+ {
+ position: absolute;
+ width: 0;
+ }
+ .target1, .target2, .target3, .target4
+ {
+ left: -155px;
+ }
+ .target5, .target6, .target7
+ {
+ left: 155px;
+ }
+ .target1, .target5
+ {
+ border-left: 150px solid yellow;
+ height: 50px;
+ top: 0px;
+ }
+ .target2, .target6
+ {
+ border-left: 20px solid aqua;
+ border-right: 130px solid silver;
+ height: 20px;
+ top: 50px;
+ }
+ .target3, .target7
+ {
+ border-left: 140px solid orange;
+ border-right: 10px solid silver;
+ height: 50px;
+ top: 100px;
+ }
+ .target4
+ {
+ border-left: 150px solid silver;
+ height: 30px;
+ top: 70px;
+ }
+ .target7
+ {
+ top: 70px;
+ }
+ .container
+ {
+ border: solid thin;
+ margin-left: 150px;
+ position: relative;
+ width: 150px;
+ }
+ .box1
+ {
+ background-color: yellow;
+ height: 50px;
+ }
+ .parentof2and3
+ {
+ background-color: silver;
+ padding-right: 10px;
+ }
+ .box2
+ {
+ background-color: aqua;
+ float: left;
+ height: 20px;
+ width: 20px;
+ }
+ .box3
+ {
+ background-color: orange;
+ clear: left;
+ height: 50px;
+ margin-top: 50px;
+ overflow: hidden;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the layout of the boxes within the black box matches either the left or the right reference boxes.</p>
+ <div class="container">
+ <div class="target1"></div>
+ <div class="target2"></div>
+ <div class="target3"></div>
+ <div class="target4"></div>
+ <div class="target5"></div>
+ <div class="target6"></div>
+ <div class="target7"></div>
+ <div class="box1"></div>
+ <div class="parentof2and3">
+ <div class="box2"></div>
+ <div class="box3"></div>
+ </div>
+ </div>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698