Chromium Code Reviews| Index: LayoutTests/css3/clippath/clippath-reference-add-hw.html |
| diff --git a/LayoutTests/css3/clippath/clippath-reference-add-hw.html b/LayoutTests/css3/clippath/clippath-reference-add-hw.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..a86c752fb5d9d191e3f44a07a09704487c96651c |
| --- /dev/null |
| +++ b/LayoutTests/css3/clippath/clippath-reference-add-hw.html |
| @@ -0,0 +1,35 @@ |
| +<html> |
| +<head> |
| +<style> |
| +.error { |
| + width: 100px; |
| + height: 100px; |
| + background-color: red; |
| + position: absolute; |
| +} |
| +.clipped { |
| + width: 100px; |
| + height: 100px; |
| + background-color: green; |
| +} |
| +</style> |
| +</head> |
| +<body> |
| + <svg xmlns="http://www.w3.org/2000/svg" width="0" height="0" version="1.1" id="svg"> |
| + <defs> |
| + <clipPath id="svgPath" clipPathUnits="objectBoundingBox"> |
| + <circle cx="0.5" cy="0.5" r="0.5"> |
| + <animate attributeName="r" attributeType="XML" from="0.25" to="1" begin="0s" dur="0.1s" fill="freeze"/> |
| + </circle> |
| + </clipPath> |
| + </defs> |
| +</svg> |
| +<div class="error"></div> |
| +<div class="clipped" id="div1"></div> |
| + <script> |
|
pdr.
2014/08/04 17:06:31
Indentation
Shanmuga Pandi
2014/08/06 14:51:34
Done.
|
| + var div = document.getElementById("div1"); |
| + div.style.webkitFilter = "url(#svgPath)"; |
| + </script> |
| + </body> |
| + </html> |
| + |