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

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

Issue 1036653002: Clamp shape-margin to zero (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Address review comments Created 5 years, 8 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-width-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-width.html
diff --git a/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-negative-height-crash-width.html b/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-negative-height-crash-width.html
new file mode 100644
index 0000000000000000000000000000000000000000..90fe45a5977037a4d06d8e29fceb5c9e34e873d0
--- /dev/null
+++ b/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-negative-height-crash-width.html
@@ -0,0 +1,40 @@
+<!DOCTYPE html>
+<style>
+.container1 {
+ width: 14px;
+ height: 20px;
+ border-radius: 10px;
+ background-color: green;
+ overflow-y: scroll;
+ overflow-x: hidden;
+}
+.circleWithScrollbarLeft {
+ shape-outside: circle(10px at 10px 10px);
+ shape-margin: 1%;
+ width: 14px;
+ float: left;
+}
+.container2 {
+ width: 20px;
+ height: 20px;
+ border-radius: 10px;
+ background-color: green;
+ overflow-y: scroll;
+ float: right;
+}
+.circleWithScrollbarRight {
+ shape-outside: circle(10px at 10px 10px);
+ shape-margin: 1%;
+ width: 20px;
+ float: right;
+}
+</style>
+<body>
+<div>Test passes if it does not crash.</div>
+<div class="container1"><img class="circleWithScrollbarLeft" src=""></div>
+<div class="container2"><img class="circleWithScrollbarRight" src=""></div>
+<script>
+ if (window.testRunner)
+ testRunner.dumpAsText();
+</script>
+</body>
« no previous file with comments | « no previous file | LayoutTests/fast/shapes/shape-outside-floats/shape-outside-negative-height-crash-width-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698