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

Side by Side Diff: LayoutTests/css3/masking/clip-path-restore.html

Issue 115253003: Layout support for new circle shape syntax (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Use FloatSize/FloatPoint's more 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 lang="en"> 2 <html lang="en">
3 <head> 3 <head>
4 <style> 4 <style>
5 body { 5 body {
6 margin: 0; 6 margin: 0;
7 } 7 }
8 .circle-clip-path { 8 .circle-clip-path {
9 width: 200px; 9 width: 200px;
10 height: 200px; 10 height: 200px;
11 background-color: green; 11 background-color: green;
12 -webkit-clip-path: circle(100px, 100px, 100px); 12 -webkit-clip-path: circle(100px at 100px 100px);
13 } 13 }
14 .red-marker { 14 .red-marker {
15 /* We position a red dot behind, so that it is obvious when the test is failing. */ 15 /* We position a red dot behind, so that it is obvious when the test is failing. */
16 position: absolute; 16 position: absolute;
17 top: 250px; 17 top: 250px;
18 left: 50px; 18 left: 50px;
19 width: 100px; 19 width: 100px;
20 height: 100px; 20 height: 100px;
21 background-color: red; 21 background-color: red;
22 border-radius: 50px; 22 border-radius: 50px;
23 } 23 }
24 </style> 24 </style>
25 </head> 25 </head>
26 <body> 26 <body>
27 <!-- Testing that the clip-path of the first element doesn't clip the second ele ment. You should see two green circles and no red. --> 27 <!-- Testing that the clip-path of the first element doesn't clip the second ele ment. You should see two green circles and no red. -->
28 <div class="red-marker"></div> 28 <div class="red-marker"></div>
29 <div class="circle-clip-path"></div> 29 <div class="circle-clip-path"></div>
30 <div class="circle-clip-path"></div> 30 <div class="circle-clip-path"></div>
31 </body> 31 </body>
32 </html> 32 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698