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

Side by Side Diff: LayoutTests/fast/shapes/shape-inside/shape-inside-bottom-edge.html

Issue 209443007: Remove shape-inside support (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove now unused segmentIsEmpty 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 .box {
6 width: 450px;
7 height: 100px;
8 line-height: 20px;
9 outline: 2px solid green;
10 }
11
12 .polygon {
13 -webkit-shape-inside: polygon(25px 25px, 425px 25px, 425px 75px, 25px 75px);
14 }
15
16 .details {
17 padding-top: 15px;
18 font-style: italic;
19 }
20 </style>
21 </head>
22
23 <body>
24 <div class="box polygon">
25 <p style="padding-top: 55px;">Content1</p>
26 </div>
27 <p class="details">There is a 400x50px shape-inside polygon inside the green box .<br/>The Content1 text line's bottom equals to the shape-inside's polygon botto m boundary, so it should fit in the shape-inside.</p>
28 <hr>
29
30 <div class="box polygon">
31 <p style="padding-top: 60px;">Content2</p>
32 </div>
33 <p class="details">There is a 400x50px shape-inside polygon inside the green box .<br/>The Content2 text line overlaps with the shape-inside's polygon bottom bou ndary, so the Content2 should be pushed below the content box.</p>
34 <hr>
35
36 <div class="box polygon">
37 <p style="padding-top: 76px;">Content3</p>
38 </div>
39 <p class="details">There is a 400x50px shape-inside polygon inside the green box .<br/>The Content3 text line starts after the shape-inside's polygon bottom boun dary, so the Content3 should be pushed below the content box.</p>
40 <hr>
41
42 <p>Based on a recent change on the <a href="http://dev.w3.org/csswg/css-exclusio ns/#shape-inside-property">exclusions specification</a>. The 'shape-inside' prop erty adds an exclusion area to the element's wrapping context.
43 This modifies the normal rectangular shape of the content area to a possibly non -rectangular wrapping area. The exclusion area added is defined by subtracting t he shape from the element's content area.</p>
44 <p>Bug <a href="http://webkit.org/b/114526 ">114526</a>: [CSS Exclusions] shape- inside overflow should be pushed to the outside of the content box</p>
45 </body>
46 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698