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

Unified Diff: LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-empty-polygon-crash.html

Issue 68263018: [CSS Shapes] Empty polygons with non-zero shape-padding cause an ASSERT crash (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed extra shape-outside test file Created 7 years, 1 month 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
Index: LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-empty-polygon-crash.html
diff --git a/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-empty-polygon-crash.html b/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-empty-polygon-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..387aa78a07d8c3e102341db6236a8a26632b21e0
--- /dev/null
+++ b/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-empty-polygon-crash.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html>
+<!--
+This is a regression test for https://code.google.com/p/chromium/issues/detail?id=319069
+-->
+<head>
+<style>
+#margin-empty-polygon-0vertex { shape-inside: polygon(); shape-margin: 5px; }
+#margin-empty-polygon-1vertex { shape-inside: polygon(1px 2px); shape-margin: 5px; }
+#margin-empty-polygon-2vertex { shape-inside: polygon(1px 2px, 3px 4px); shape-margin: 5px; }
+</style>
+<body>
+ <div>This test should not crash.</div>
+ <div id="margin-empty-polygon-0vertex">Zero</div>
+ <div id="margin-empty-polygon-1vertex">One</div>
+ <div id="margin-empty-polygon-2vertex">Two</div>
+ <script>
+ if (window.testRunner)
+ testRunner.dumpAsText();
+ </script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698