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

Side by Side Diff: LayoutTests/fast/shapes/shape-inside/shape-inside-dynamic-shape.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> 4 <script>
5 if (window.internals)
6 window.internals.settings.setCSSExclusionsEnabled(true);
7 window.onload = function() { 5 window.onload = function() {
8 var elem = document.getElementById("shape-inside"); 6 var elem = document.getElementById("shape-inside");
9 elem.setAttribute("style", "-webkit-shape-inside: rectangle(10px, 10px, 180px, 180px);"); 7 elem.setAttribute("style", "-webkit-shape-inside: rectangle(10px, 10px, 180px, 180px);");
10 }; 8 };
11 </script> 9 </script>
12 <style> 10 <style>
13 #shape-inside { 11 #shape-inside {
14 width: 200px; 12 width: 200px;
15 height: 200px; 13 height: 200px;
16 position: relative; 14 position: relative;
17 } 15 }
18 #border { 16 #border {
19 position: absolute; 17 position: absolute;
20 top: 8px; 18 top: 8px;
21 left: 8px; 19 left: 8px;
22 width: 180px; 20 width: 180px;
23 height: 180px; 21 height: 180px;
24 border: 2px solid blue; 22 border: 2px solid blue;
25 } 23 }
26 </style> 24 </style>
27 </head> 25 </head>
28 <body> 26 <body>
29 <div id="shape-inside"> 27 <div id="shape-inside">
30 <div id="border"></div> 28 <div id="border"></div>
31 This text should be contained by the blue square. 29 This text should be contained by the blue square.
32 </div> 30 </div>
33 Test that setting a shape through javascript causes layout using the new sha pe. 31 Test that setting a shape through javascript causes layout using the new sha pe.
34 </body> 32 </body>
35 </html> 33 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698