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

Side by Side Diff: LayoutTests/fast/regions/shape-inside/shape-inside-on-regions.html

Issue 19865002: [CSS Shapes] Port shape-inside on regions and shape's content overflow from WebKit (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: [CSS Shapes] Port shape-inside on regions and shape's content overflow from WebKit Created 7 years, 5 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 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script> 4 <script>
5 if (window.internals) 5 if (window.internals)
6 window.internals.settings.setCSSExclusionsEnabled(true); 6 window.internals.settings.setCSSExclusionsEnabled(true);
7 </script> 7 </script>
8 <style> 8 <style>
9 #rectangle { 9 #rectangle {
10 font: 16px Ahem, sans-serif; 10 font: 16px Ahem, sans-serif;
11 -webkit-flow-into: rectangle; 11 -webkit-flow-into: rectangle;
12 } 12 }
13 13
14 .region { -webkit-flow-from: rectangle; } 14 .region { -webkit-flow-from: rectangle; }
15 15
16 #region1 { 16 #region1 {
17 width: 180px; 17 width: 180px;
18 height: 100px; 18 height: 100px;
19 -webkit-shape-inside: rectangle(0, 0, 130px, 100px); 19 -webkit-shape-inside: rectangle(0, 0, 130px, 100px);
20 margin-top: 10px; 20 margin-top: 10px;
21 } 21 }
22 #region2 { 22 #region2 {
23 width: 300px; 23 width: 300px;
24 height: 145px; 24 height: 150px;
25 -webkit-shape-inside: rectangle(0, 0, 220px, 150px); 25 -webkit-shape-inside: rectangle(0, 0, 220px, 150px);
26 margin-top: 60px; 26 margin-top: 60px;
27 } 27 }
28 #region3 { 28 #region3 {
29 width: 300px; 29 width: 300px;
30 height: 50px; 30 height: 50px;
31 margin-top: 60px; 31 margin-top: 60px;
32 } 32 }
33 </style> 33 </style>
34 </head> 34 </head>
35 <body> 35 <body>
36 <div id="rectangle"> 36 <div id="rectangle">
37 X X X X X 37 X X X X X
38 <p>X X</p> 38 <p>X X</p>
39 <p style="color: green">X X X X X X</p> 39 <p style="color: green">X X X X X X</p>
40 <p style="color: orange">X X X X</p> 40 <p style="color: orange">X X X X</p>
41 <p>X X X X X X X X<p style="color: yellow">X X X X X X X X X X</p> X X</ p> 41 <p>X X X X X X X X<p style="color: yellow">X X X X X X X X X X</p> X X</ p>
42 <div style="color: red"> X X X X X X X X X</div> 42 <div style="color: red"> X X X X X X X X X</div>
43 </div> 43 </div>
44 <div id="page"> 44 <div id="page">
45 <div id="region1" class="region"></div> 45 <div id="region1" class="region"></div>
46 <div id="region2" class="region"></div> 46 <div id="region2" class="region"></div>
47 <div id="region3" class="region"></div> 47 <div id="region3" class="region"></div>
48 </div> 48 </div>
49 <p>Requires Ahem font. Two different -shape-inside property are applied to t he first and second region. The third region is a simple region without -shape-i nside. 49 <p>Requires Ahem font. Two different -shape-inside property are applied to t he first and second region. The third region is a simple region without -shape-i nside.
50 The rectangles should flow through the regions and the shape-insides should be applied to the first two regions.</p> 50 The rectangles should flow through the regions and the shape-insides should be applied to the first two regions.</p>
51 <p> Bug <a href="http://webkit.org/b/107880">107880</a>: Regions should resp ect shape-inside</p> 51 <p> Bug <a href="http://webkit.org/b/107880">107880</a>: Regions should resp ect shape-inside</p>
52 </body> 52 </body>
53 </html> 53 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698