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

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

Issue 124303002: Layout support for new ellipse shape syntax (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase against ToT Created 6 years, 11 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <style> 4 <style>
5 /* The Ahem font's size is equal to a little less than the size of the large st square that will 5 /* The Ahem font's size is equal to a little less than the size of the large st square that will
6 fit within the ellipse. Solving the ellipse equation when x = y, produce s the size of the 6 fit within the ellipse. Solving the ellipse equation when x = y, produce s the size of the
7 square: 2 * rx * ry / sqrt(rx^2 + ry^2). For rx=200 and ry=100, that's 1 78.885. To eliminate 7 square: 2 * rx * ry / sqrt(rx^2 + ry^2). For rx=200 and ry=100, that's 1 78.885. To eliminate
8 the impact of subpixel layout on the square's size (but not it's origin), we've reduced its 8 the impact of subpixel layout on the square's size (but not it's origin), we've reduced its
9 size to 178. 9 size to 178.
10 */ 10 */
11 #shape-inside { 11 #shape-inside {
12 position: relative; 12 position: relative;
13 width: 500px; 13 width: 500px;
14 height: 500px; 14 height: 500px;
15 shape-inside: ellipse(220px, 220px, 200px, 100px); 15 shape-inside: ellipse(200px 100px at 220px 220px);
16 font: 178px/1 Ahem, sans-serif; 16 font: 178px/1 Ahem, sans-serif;
17 color: green; 17 color: green;
18 } 18 }
19 19
20 #shape-outline { 20 #shape-outline {
21 position: absolute; 21 position: absolute;
22 top: 0px; 22 top: 0px;
23 left: 0px; 23 left: 0px;
24 width: 500px; 24 width: 500px;
25 height: 500px; 25 height: 500px;
26 } 26 }
27 </style> 27 </style>
28 </head> 28 </head>
29 <body> 29 <body>
30 <div id="shape-inside"> 30 <div id="shape-inside">
31 <svg id="shape-outline" xmlns="http://www.w3.org/2000/svg"> 31 <svg id="shape-outline" xmlns="http://www.w3.org/2000/svg">
32 <ellipse cx="220" cy="220" rx="200" ry="100" stroke="blue" fill="no ne"/> 32 <ellipse cx="220" cy="220" rx="200" ry="100" stroke="blue" fill="no ne"/>
33 </svg> 33 </svg>
34 X 34 X
35 </div> 35 </div>
36 </body> 36 </body>
37 </html> 37 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698