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

Unified Diff: LayoutTests/css3/clippath/clippath-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: Removed unwanted code from RenderLayerClipPathInfo.* and Renderlayer.cpp and Renamed filters to svg… 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
Index: LayoutTests/css3/clippath/clippath-animated.html
diff --git a/LayoutTests/css3/clippath/clippath-animated.html b/LayoutTests/css3/clippath/clippath-animated.html
new file mode 100644
index 0000000000000000000000000000000000000000..a4920f5e8edda48503ef7f42b8351ded4012b89c
--- /dev/null
+++ b/LayoutTests/css3/clippath/clippath-animated.html
@@ -0,0 +1,41 @@
+<html>
pdr. 2014/08/04 17:06:31 This test passes both with or without your patch.
Shanmuga Pandi 2014/08/05 11:30:35 Hello pdr, Thanks for your time and review. Thi
Shanmuga Pandi 2014/08/05 14:19:56 Will "run-webkit-tests" trigger any extra repaint
+<head>
+<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>
+</head>
+<body>
+<script>
+if (window.testRunner)
+ testRunner.waitUntilDone();
+
+setTimeout(function() {
+ if (window.testRunner)
+ testRunner.notifyDone();
+ }, 1000);
pdr. 2014/08/04 17:06:31 This line is incorrectly indented. As I said in my
Shanmuga Pandi 2014/08/05 14:19:56 Acknowledged.
+</script>
+<div class="error"></div>
+<div class="clipped"></div>
+<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.5" to="1" begin="0.1s" dur="0.05s" fill="freeze"/>
+ </circle>
+ </clipPath>
+ </defs>
+</svg>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698