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

Unified Diff: LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-center-coord-positioning-crash.html

Issue 923533004: [CSS Shapes] Normalize distances to closest/farthest side (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix ellipse case too Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-center-coord-positioning-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-center-coord-positioning-crash.html
diff --git a/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-center-coord-positioning-crash.html b/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-center-coord-positioning-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..7e03776cb901f4f98b199f908cf2b6ed8177614c
--- /dev/null
+++ b/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-center-coord-positioning-crash.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html>
+<!--
+This is a regression test for https://code.google.com/p/chromium/issues/detail?id=457807
+-->
+<head>
+<style>
+div { width: 50px; height; 50px; float: right; }
+#ellipse-center-coord-outside-refbox0 { shape-outside: padding-box ellipse(closest-side at -75px -80px); }
+#ellipse-center-coord-outside-refbox1 { shape-outside: padding-box ellipse(closest-side at 75px 80px); }
+#circle-center-coord-outside-refbox0 { shape-outside: padding-box circle(closest-side at -75px -80px); }
+#circle-center-coord-outside-refbox1 { shape-outside: padding-box circle(closest-side at 75px 80px); }
+</style>
+<body>
+ <div>This test should not crash.</div>
+ <div id="ellipse-center-coord-outside-refbox0">Zero</div>
+ <div id="ellipse-center-coord-outside-refbox1">One</div>
+ <div id="circle-center-coord-outside-refbox0">Two</div>
+ <div id="circle-center-coord-outside-refbox1">Three</div>
+ <script>
+ if (window.testRunner)
+ testRunner.dumpAsText();
+ </script>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-center-coord-positioning-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698