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

Side by Side Diff: LayoutTests/fast/shapes/shape-inside/shape-inside-rounded-rectangle-large-radius.html

Issue 200633005: [CSS Shapes] Remove deprecated shapes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix test expectations 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 /* The size of a square that just fits within a circle of radius r is r * sq rt(2). In this
6 case that's the size of one Ahem character: 20 * sqrt(2) == 28.28.
7 */
8 .shape-inside {
9 width: 40px;
10 height: 40px;
11 font: 28.28px/1 Ahem, sans-serif;
12 color: green;
13 border: 1px solid blue;
14 border-radius: 20px;
15 }
16 .fixed-units {
17 shape-inside: rectangle(0px, 0px, 40px, 40px, 40px, 40px);
18 }
19 .different-units {
20 shape-inside: rectangle(0px, 0px, 40px, 40px, 100%, 100%);
21 }
22 .relative-units {
23 shape-inside: rectangle(0px, 0px, 100%, 100%, 700em, 700em);
24 }
25 .edge-case {
26 shape-inside: rectangle(0px, 0px, 100%, 100%, 50%, 50%);
27 }
28 </style>
29 </head>
30 <body>
31 <h1>Bug <a href="https://bugs.webkit.org/show_bug.cgi?id=116745">116745</a>: [CSS Shapes] rectangle and inset-rectangle do not properly handle rx and ry</h1 >
32 <h2>Test that if rx > 50% width and ry > 50% height, they are properly clamp ed to 50% of the respective dimension when doing layout on the shape. All of the following tests should look identical, and the blue circle should wrap around t he green square.</h2>
33 <div class="shape-inside fixed-units">
34 X
35 </div>
36 <div class="shape-inside different-units">
37 X
38 </div>
39 <div class="shape-inside relative-units">
40 X
41 </div>
42 <div class="shape-inside edge-case">
43 X
44 </div>
45 </body>
46 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698