OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <!-- | 4 <!-- |
5 This is a regression test for https://bugs.webkit.org/show_bug.cgi?id=121020 | 5 This is a regression test for https://bugs.webkit.org/show_bug.cgi?id=121020 |
6 --> | 6 --> |
7 <script src="../../../resources/js-test.js"></script> | 7 <script src="../../../resources/js-test.js"></script> |
8 <script> | 8 <script> |
9 window.onload = function() { | 9 window.onload = function() { |
10 shouldBe("window.getComputedStyle(document.getElementById('shape-inside'))['
shape-inside']", "'circle(30%, 50%, 50%)'"); | 10 shouldBe("window.getComputedStyle(document.getElementById('shape-inside'))['
shape-inside']", "'circle(50% at 30% 50%)'"); |
11 }; | 11 }; |
12 </script> | 12 </script> |
13 <style> | 13 <style> |
14 #shape-inside { | 14 #shape-inside { |
15 shape-inside: circle(calc(50% - 20%), 50%, 50%); | 15 shape-inside: circle(50% at calc(50% - 20%) 50%); |
16 } | 16 } |
17 </style> | 17 </style> |
18 <body> | 18 <body> |
19 <div>This test should not crash</div> | 19 <div>This test should not crash</div> |
20 <div id="shape-inside">Hello</div> | 20 <div id="shape-inside">Hello</div> |
21 </body> | 21 </body> |
22 </html> | 22 </html> |
OLD | NEW |