Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
|
pdr.
2014/07/28 16:23:52
Your test looks nicely written but we will need to
Stephen White
2014/07/29 15:12:26
+1 for using LayoutTests. You could look at css3/f
Shanmuga Pandi
2014/08/01 05:20:39
Done.
Shanmuga Pandi
2014/08/01 05:20:39
Done.
| |
| 2 <style> | |
| 3 .error { | |
| 4 width: 100px; | |
| 5 height: 100px; | |
| 6 background-color: red; | |
| 7 position: absolute; | |
| 8 } | |
| 9 .clipped { | |
| 10 width: 100px; | |
| 11 height: 100px; | |
| 12 background-color: green; | |
| 13 -webkit-clip-path: url(#svgPath); | |
| 14 clip-path: url(#svgPath); | |
| 15 } | |
| 16 </style> | |
| 17 <div class="error"></div> | |
| 18 <div class="clipped"></div> | |
| 19 <p>After 1 second, there should be a green rectangle, and no red visible.</p> | |
| 20 <svg height="0" width="0"> | |
| 21 <defs> | |
| 22 <clipPath id="svgPath" clipPathUnits="objectBoundingBox"> | |
| 23 <circle cx="0.5" cy="0.5" r="0.5"> | |
| 24 <animate attributeName="r" attributeType="XML" from="0.25" to="1" begin= "0s" dur="1s" fill="freeze"/> | |
| 25 </circle> | |
| 26 </clipPath> | |
| 27 </defs> | |
| 28 </svg> | |
| OLD | NEW |