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

Side by Side Diff: LayoutTests/fast/exclusions/shape-outside-floats/shape-outside-floats-left-margin-polygon.html

Issue 14220005: Add support for the simple case of shape-margin polygonal shape-outside (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add support for the simple case of shape-margin polygonal shape-outside Created 7 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
5 if (window.internals)
6 window.internals.settings.setCSSExclusionsEnabled(true);
7 </script>
8
9 <style>
10 #container {
11 font: 20px/1 Ahem, sans-serif;
12 width: 200px;
13 height: 300px;
14 }
15
16 #float-left {
17 float: left;
18 position: relative;
19 overflow: visible;
20 -webkit-shape-outside: polygon(0px 0px, 100px 0px, 100px 60px, 0px 60px);
21 -webkit-shape-margin: 20px;
22 }
23
24 #svg-shape {
25 position: absolute;
26 display:block;
27 top: -21px;
28 left: -21px;
29 width: 142px;
30 height: 102px;
31 }
32 </style>
33
34 <body>
35 <p>The left edges of the five black squares should follow the right side of the outer rounded rectangle boundary and each square should appear on a subsequent l ine.</p>
36 <div id="container">
37 <div id="float-left">
38 <svg id="svg-shape" xmlns="http://www.w3.org/2000/">
39 <rect x="20" y="20" width="100" height="60" fill="none" stroke="gree n"></rect>
40 <rect x="1" y="1" width="140" height="100" rx="20" ry="20" fill="non e" stroke="green"></rect>
41 </svg>
42 </div>
43 X<br/>X<br/>X<br/>X<br/>X
44 </div>
45 </body>
46 </html>
47
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698