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: LayoutTests/imported/csswg-test/css-shapes-1/spec-examples/shape-outside-006.html

Issue 816533002: Import CSSWG Shapes tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: One more test expectations update Created 6 years 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>CSS Test: shape-outside with open areas on both the left & right of
5 the float area</title>
6 <link rel="author" title="Rebecca Hauck" href="mailto:rhauck@adobe.com"/>
7 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#relation-to-box-mo del-and-float-behavior"/>
8 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#supported-basic-sh apes"/>
9 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-outside-prop erty"/>
10 <link rel="match" href="reference/shape-outside-006-ref.html"/>
11 <meta name="flags" content="ahem"/>
12 <meta name="assert" content="This test verifies that content wraps only on o ne side of
13 the float even though there is open area on bot h the left
14 and right sides of the float."/>
15 <!-- This test is derived from Example 4 in this version of the spec:
16 http://www.w3.org/TR/2013/WD-css-shapes-1-20131203/ -->
17 <style type="text/css">
18 .container {
19 width: 250px;
20 font-family: Ahem;
21 font-size: 20px;
22 line-height: 1.5em;
23 border: 1px solid black;
24 padding-top: 5px;
25 }
26 #test {
27 color: green;
28 }
29 #test-float-left {
30 shape-outside: polygon(50px 0px, 100px 100px, 0px 100px);
31 float: left;
32 width: 100px;
33 height: 100px;
34 }
35 #failure-container {
36 z-index: -1;
37 }
38 #test, #failure-container {
39 position: absolute;
40 top: 70px;
41 }
42 .fail {
43 position: absolute;
44 height: 20px;
45 background-color: red;
46 }
47 #bar-1 {
48 top: 11px;
49 left: 66px;
50 width: 160px;
51 }
52 #bar-2 {
53 top: 41px;
54 left: 81px;
55 width: 140px;
56 }
57 #bar-3 {
58 top: 71px;
59 left: 96px;
60 width: 120px;
61 }
62 #triangle {
63 position: absolute;
64 top: 70px;
65 width: 100px;
66 height: 100px;
67 background-color: lightblue;
68 clip-path: polygon(50px 0px, 100px 100px, 0px 100px);
69 }
70
71 </style>
72 </head>
73 <body>
74 <p>
75 The test passes if all there are three green horizontal bars to the righ t of the
76 triangle that are all inside the rectangle and there should be no green to the left
77 of the triangle. There should be no red.
78 </p>
79 <div id="test" class="container">
80 <div id="test-float-left"></div>
81 XXXXXXXX XXXXXXX XXXXXX
82 </div>
83 <div id="failure-container">
84 <div id="bar-1" class="fail"></div>
85 <div id="bar-2" class="fail"></div>
86 <div id="bar-3" class="fail"></div>
87 </div>
88 <div id="triangle"></div>
89 </body>
90 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698