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

Side by Side Diff: LayoutTests/fast/shapes/shape-inside/shape-inside-first-fit-003.html

Issue 20806004: Remove Explicit Shapes Enablement in Tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Enabled by default, no need to call internals Created 7 years, 4 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script>
5 if (window.internals)
6 window.internals.settings.setCSSExclusionsEnabled(true);
7 </script>
8 <style> 4 <style>
9 #shape-inside { 5 #shape-inside {
10 position: relative; 6 position: relative;
11 width: 400px; 7 width: 400px;
12 height: 200px; 8 height: 200px;
13 -webkit-shape-inside: polygon(0px 0px, 200px 200px, 400px 0px, 400px 100 px, 0px 100px); 9 -webkit-shape-inside: polygon(0px 0px, 200px 200px, 400px 0px, 400px 100 px, 0px 100px);
14 font: 50px/1 Ahem, sans-serif; 10 font: 50px/1 Ahem, sans-serif;
15 color: green; 11 color: green;
16 } 12 }
17 13
18 #shape-outline { 14 #shape-outline {
19 position: absolute; 15 position: absolute;
20 top: 0px; 16 top: 0px;
21 left: 0px; 17 left: 0px;
22 width: 400px; 18 width: 400px;
23 height: 200px; 19 height: 200px;
24 } 20 }
25 </style> 21 </style>
26 </head> 22 </head>
27 <body> 23 <body>
28 <p>The solid green rectangles should be contained by the blue outline.</p> 24 <p>The solid green rectangles should be contained by the blue outline.</p>
29 <div id="shape-inside"> 25 <div id="shape-inside">
30 <svg id="shape-outline" xmlns="http://www.w3.org/2000/svg"> 26 <svg id="shape-outline" xmlns="http://www.w3.org/2000/svg">
31 <polygon points="0,0 200,200 400,0 400,100 0,100" stroke="blue" fill ="none"/> 27 <polygon points="0,0 200,200 400,0 400,100 0,100" stroke="blue" fill ="none"/>
32 </svg> 28 </svg>
33 X X XX 29 X X XX
34 </div> 30 </div>
35 </body> 31 </body>
36 </html> 32 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698