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

Side by Side Diff: LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-circle-002.html

Issue 115253003: Layout support for new circle shape syntax (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update virtual/legacy-animations-engine/animations/interpolation/shape-outside-expected.txt Created 7 years 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>CSS Test: circle shape-outside on floats with percentage radius</title> 2 <title>Circle shape-outside on floats with default position</title>
3 <link rel="author" title="Adobe" href="http://html.adobe.com/">
4 <link rel="author" title="Bem Jones-Bey" href="mailto:bjonesbe@adobe.com">
5 <link rel="help" href="http://dev.w3.org/csswg/css-shapes-1/#shape-outside-prope rty">
6 <link rel="match" href="shape-outside-floats-circle-001-ref.html">
7 <meta name="flags" content="ahem">
8 <style> 3 <style>
9 .container { 4 .container {
10 font: 40px/1 Ahem, sans-serif; 5 font: 40px/1 Ahem, sans-serif;
11 line-height: 40px; 6 line-height: 40px;
12 width: 110px; 7 width: 110px;
13 height: 40px; 8 height: 40px;
14 overflow: hidden; 9 overflow: hidden;
15 white-space: nowrap; 10 white-space: nowrap;
16 background-color: red; 11 background-color: red;
17 color: green; 12 color: green;
18 } 13 }
19 14
20 .circle { 15 .circle {
21 width: 80px; 16 width: 80px;
22 height: 40px; 17 height: 40px;
23 background-color: green; 18 background-color: green;
24 shape-outside: circle(50%, 50%, 50%); /* cx,cy,radius */ 19 -webkit-shape-outside: circle(50%) content-box;
25 } 20 }
26 </style> 21 </style>
27 22
28 <body> 23 <body>
29 <p>You should see a green rectangle. You shouldn't see any red.</p> 24 <p>You should see a green rectangle. You shouldn't see any red.</p>
30 <div class="container"> 25 <div class="container">
31 <div style="float: left; margin-right: 40px;" class="circle"></div> 26 <div style="float: left; margin-right: 40px;" class="circle"></div>
32 X 27 X
33 </div> 28 </div>
34 29
35 <div class="container" style="text-align: right"> 30 <div class="container" style="text-align: right">
36 <div style="float: right; margin-left: 40px;" class="circle"></div> 31 <div style="float: right; margin-left: 40px;" class="circle"></div>
37 X 32 X
38 </div> 33 </div>
39 </body> 34 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698