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

Unified Diff: ManualTests/clip-path-animated.html

Issue 423823004: Add support for SVG Clip paths in HTML (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Try to correct A+ mode Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ManualTests/clip-path-mutated.html » ('j') | ManualTests/clip-path-mutated.html » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ManualTests/clip-path-animated.html
diff --git a/ManualTests/clip-path-animated.html b/ManualTests/clip-path-animated.html
new file mode 100644
index 0000000000000000000000000000000000000000..9b68f5d6950bc6634d28b65fa15b06daec37785a
--- /dev/null
+++ b/ManualTests/clip-path-animated.html
@@ -0,0 +1,28 @@
+<!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.
+<style>
+.error {
+ width: 100px;
+ height: 100px;
+ background-color: red;
+ position: absolute;
+}
+.clipped {
+ width: 100px;
+ height: 100px;
+ background-color: green;
+ -webkit-clip-path: url(#svgPath);
+ clip-path: url(#svgPath);
+}
+</style>
+<div class="error"></div>
+<div class="clipped"></div>
+<p>After 1 second, there should be a green rectangle, and no red visible.</p>
+<svg height="0" width="0">
+ <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="1s" fill="freeze"/>
+ </circle>
+ </clipPath>
+ </defs>
+</svg>
« no previous file with comments | « no previous file | ManualTests/clip-path-mutated.html » ('j') | ManualTests/clip-path-mutated.html » ('J')

Powered by Google App Engine
This is Rietveld 408576698