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

Side by Side Diff: LayoutTests/css3/clippath/clippath-reference-add-hw.html

Issue 423823004: Add support for SVG Clip paths in HTML (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Changed LayoutTests and Aligned with review comments Created 6 years, 4 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 <html>
2 <head>
3 <style>
4 .error {
5 width: 100px;
6 height: 100px;
7 background-color: red;
8 position: absolute;
9 }
10 .clipped {
11 width: 100px;
12 height: 100px;
13 background-color: green;
14 }
15 </style>
16 </head>
17 <body onload="runRepaintAndPixelTest()">
18 <svg xmlns="http://www.w3.org/2000/svg" width="0" height="0" version="1.1" id= "svgElement">
19 <defs>
20 <clipPath id="svgPath" clipPathUnits="objectBoundingBox">
21 <circle cx="0.5" cy="0.5" r="0.5">
22 <animate attributeName="r" attributeType="XML" from="0.25" to="1" begin= "0s" dur="0.5s" fill="freeze"/>
23 </circle>
24 </clipPath>
25 </defs>
26 </svg>
27 <div class="error"></div>
28 <div class="clipped" id="div1"></div>
29 <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
30 <script>
31 window.testIsAsync = true;
32
33 var div = document.getElementById("div1");
34 div.style.webkitClipPath = "url(#svgPath)";
35
36 function finishTest() {
37 finishRepaintTest();
38 }
39
40 function repaintTest()
41 {
42 var svg = document.getElementById("svgElement");
43 svg.setCurrentTime(0.35);
44 setTimeout(finishTest, 0);
45 }
46 </script>
47 </body>
48 </html>
49
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698