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

Side by Side Diff: LayoutTests/fast/shapes/shape-inside/shape-inside-dynamic-text.html

Issue 200633005: [CSS Shapes] Remove deprecated shapes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix test expectations Created 6 years, 9 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 window.onload = function() { 5 window.onload = function() {
6 var node = document.createTextNode("This text should be contained by the blue square."); 6 var node = document.createTextNode("This text should be contained by the blue square.");
7 document.getElementById("shape-inside").appendChild(node); 7 document.getElementById("shape-inside").appendChild(node);
8 }; 8 };
9 </script> 9 </script>
10 <style> 10 <style>
11 #shape-inside { 11 #shape-inside {
12 width: 200px; 12 width: 200px;
13 height: 200px; 13 height: 200px;
14 shape-inside: rectangle(10px, 10px, 180px, 180px); 14 shape-inside: polygon(10px 10px, 190px 10px, 190px 190px, 10px 190px);
15 position: relative; 15 position: relative;
16 } 16 }
17 #border { 17 #border {
18 position: absolute; 18 position: absolute;
19 top: 8px; 19 top: 8px;
20 left: 8px; 20 left: 8px;
21 width: 180px; 21 width: 180px;
22 height: 180px; 22 height: 180px;
23 border: 2px solid blue; 23 border: 2px solid blue;
24 } 24 }
25 </style> 25 </style>
26 </head> 26 </head>
27 <body> 27 <body>
28 <div id="shape-inside"> 28 <div id="shape-inside">
29 <div id="border"></div> 29 <div id="border"></div>
30 </div> 30 </div>
31 Test that text set through javascript should layout within the shape inside. 31 Test that text set through javascript should layout within the shape inside.
32 </body> 32 </body>
33 </html> 33 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698