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

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

Issue 115253003: Layout support for new circle shape syntax (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Use FloatSize/FloatPoint's more Created 6 years, 11 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 <!-- 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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698