| OLD | NEW |
| 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 background-color: blue; | 9 background-color: blue; |
| 10 shape-inside: polygon(nonzero, 30px 30px); | 10 shape-inside: polygon(nonzero, 30px 30px); |
| 11 shape-outside: polygon(nonzero, 30px 30px); | 11 shape-outside: polygon(nonzero, 30px 30px); |
| 12 transition-property: shape-inside, shape-outside; | 12 transition-property: shape-inside, shape-outside; |
| 13 transition-duration: 1s; | 13 transition-duration: 1s; |
| 14 transition-timing-function: linear; | 14 transition-timing-function: linear; |
| 15 } | 15 } |
| 16 | 16 |
| 17 #box.changed { | 17 #box.changed { |
| 18 shape-inside: polygon(nonzero, 50px 50px); | 18 shape-inside: polygon(nonzero, 50px 50px); |
| 19 shape-outside: polygon(nonzero, 50px 50px); | 19 shape-outside: polygon(nonzero, 50px 50px); |
| 20 } | 20 } |
| 21 </style> | 21 </style> |
| 22 <script src="../animations/resources/animation-test-helpers.js"></script> | 22 <script src="../animations/resources/animation-test-helpers.js"></script> |
| 23 <script type="text/javascript"> | 23 <script type="text/javascript"> |
| 24 | 24 |
| 25 const expectedValues = [ | 25 const expectedValues = [ |
| 26 // [time, element-id, property, expected-value, tolerance] | 26 // [time, element-id, property, expected-value, tolerance] |
| 27 [0.5, 'box', 'shape-outside', 'polygon(nonzero, 40px 40px)', 1], | 27 [0.5, 'box', 'shape-outside', 'polygon(40px 40px)', 1], |
| 28 [0.5, 'box', 'shape-inside', 'polygon(nonzero, 40px 40px)', 1], | 28 [0.5, 'box', 'shape-inside', 'polygon(40px 40px)', 1], |
| 29 ]; | 29 ]; |
| 30 | 30 |
| 31 function setupTest() | 31 function setupTest() |
| 32 { | 32 { |
| 33 document.getElementById('box').className = 'changed'; | 33 document.getElementById('box').className = 'changed'; |
| 34 } | 34 } |
| 35 | 35 |
| 36 runTransitionTest(expectedValues, setupTest); | 36 runTransitionTest(expectedValues, setupTest); |
| 37 </script> | 37 </script> |
| 38 </head> | 38 </head> |
| 39 <body> | 39 <body> |
| 40 <div id="box"></div> | 40 <div id="box"></div> |
| 41 <div id="result"></div> | 41 <div id="result"></div> |
| 42 </body> | 42 </body> |
| 43 </html> | 43 </html> |
| OLD | NEW |