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

Unified Diff: LayoutTests/fast/shapes/shape-outside-floats/shape-outside-negative-height-crash.html

Issue 844733004: [CSS Shapes] Negative raster shape height leads to crash (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Force line-height Created 5 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 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-negative-height-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-negative-height-crash.html
diff --git a/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-negative-height-crash.html b/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-negative-height-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..81f043aacda86c67f1896262a0e7efdf753dbc35
--- /dev/null
+++ b/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-negative-height-crash.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<style>
+ .container {
+ width: 10px;
+ font: 18px Ahem;
+ }
+ .float {
+ float: left;
+ }
+ .crasher {
+ /* 1x1 px transparent png */
+ shape-outside: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGP6zwAAAgcBApocMXEAAAAASUVORK5CYII=);
+ margin-top: -19px;
+ }
+</style>
+<body>
+ <p>This test passes if it doesn't crash.</p>
+ <div class="container">
+ <div class="float">a a</div>
+ <div class="float crasher">a</div>
+ a
+ </div>
+</body>
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/shapes/shape-outside-floats/shape-outside-negative-height-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698