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

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

Issue 191353002: [CSS Shapes] Omit polygon default fill-rule (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add COMPILE_ASSERT 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 2
3 <html> 3 <html>
4 <head> 4 <head>
5 <style> 5 <style>
6 .box { 6 .box {
7 height: 100px; 7 height: 100px;
8 width: 100px; 8 width: 100px;
9 margin: 10px; 9 margin: 10px;
10 display: inline-block; 10 display: inline-block;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 } 48 }
49 49
50 </style> 50 </style>
51 <script src="../../../animations/resources/animation-test-helpers.js"></script > 51 <script src="../../../animations/resources/animation-test-helpers.js"></script >
52 <script type="text/javascript"> 52 <script type="text/javascript">
53 const expectedValues = [ 53 const expectedValues = [
54 // [time, element-id, property, expected-value, tolerance] 54 // [time, element-id, property, expected-value, tolerance]
55 [1, "rectangle-box", "shapeInside", "rectangle(10%, 10%, 80%, 80%, 0px, 0p x)", 0.05], 55 [1, "rectangle-box", "shapeInside", "rectangle(10%, 10%, 80%, 80%, 0px, 0p x)", 0.05],
56 [1, "circle-box", "shapeInside", "circle(35% at 35% 35%)", 0.05], 56 [1, "circle-box", "shapeInside", "circle(35% at 35% 35%)", 0.05],
57 [1, "ellipse-box", "shapeInside", "ellipse(35% 30% at 35% 35%)", 0.05], 57 [1, "ellipse-box", "shapeInside", "ellipse(35% 30% at 35% 35%)", 0.05],
58 [1, "polygon-box", "shapeInside", "polygon(nonzero, 10% 10%, 90% 10%, 90% 90%, 10% 90%)", 0.05], 58 [1, "polygon-box", "shapeInside", "polygon(10% 10%, 90% 10%, 90% 90%, 10% 90%)", 0.05],
59 ]; 59 ];
60 60
61 runAnimationTest(expectedValues); 61 runAnimationTest(expectedValues);
62 </script> 62 </script>
63 </head> 63 </head>
64 <body> 64 <body>
65 65
66 <div class="box" id="rectangle-box">Moving Text</div> 66 <div class="box" id="rectangle-box">Moving Text</div>
67 <div class="box" id="circle-box">Moving Text</div> 67 <div class="box" id="circle-box">Moving Text</div>
68 <div class="box" id="ellipse-box">Moving Text</div> 68 <div class="box" id="ellipse-box">Moving Text</div>
69 <div class="box" id="polygon-box">Moving Text</div> 69 <div class="box" id="polygon-box">Moving Text</div>
70 70
71 <div id="result"> 71 <div id="result">
72 </div> 72 </div>
73 </body> 73 </body>
74 </html> 74 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698