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

Unified Diff: LayoutTests/fast/shapes/shape-outside-floats/shape-outside-one-pixel-expected.html

Issue 208423003: [CSS Shapes] clamp RasterShape shapeMargin to reference box size (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix sqrt problem Created 6 years, 9 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
Index: LayoutTests/fast/shapes/shape-outside-floats/shape-outside-one-pixel-expected.html
diff --git a/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-one-pixel-expected.html b/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-one-pixel-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..d2df42e1570e90490106a60a5600b7aee2ef5b42
--- /dev/null
+++ b/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-one-pixel-expected.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+ #content {
+ font: 50px/1 Ahem, sans-serif;
+ -webkit-font-smoothing: antialiased;
+ color: green;
+ }
+ #sandbag {
+ float: left;
+ width: 150px;
+ height: 100px;
+ }
+</style>
+</head>
+<body>
+ <p>The shape-outside in this test is a 2x2 image with only the upper left pixel set. The shape
+ element's margin-box is and the the shape-margin is big enough (is greater than 150 * sqrt(2))
+ so that the shape-margin boundary extends beyond the margin-box's bounds. The shape-outside boundary
+ is clipped to the margin-box, so it's as if the shape-outside was equal to the margin-box.</p>
+ <div id="content">
+ <div id="sandbag"></div>X<br>X
+ </div>
+</body>
+</html>
« no previous file with comments | « LayoutTests/fast/shapes/shape-outside-floats/shape-outside-one-pixel.html ('k') | Source/core/rendering/shapes/RasterShape.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698