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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 #content {
6 font: 50px/1 Ahem, sans-serif;
7 -webkit-font-smoothing: antialiased;
8 color: green;
9 }
10 #sandbag {
11 float: left;
12 width: 150px;
13 height: 100px;
14 }
15 </style>
16 </head>
17 <body>
18 <p>The shape-outside in this test is a 2x2 image with only the upper left pixe l set. The shape
19 element's margin-box is and the the shape-margin is big enough (is greater tha n 150 * sqrt(2))
20 so that the shape-margin boundary extends beyond the margin-box's bounds. The shape-outside boundary
21 is clipped to the margin-box, so it's as if the shape-outside was equal to the margin-box.</p>
22 <div id="content">
23 <div id="sandbag"></div>X<br>X
24 </div>
25 </body>
26 </html>
OLDNEW
« 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