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

Unified Diff: ManualTests/clip-path-mutated.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
Index: ManualTests/clip-path-mutated.html
diff --git a/ManualTests/clip-path-mutated.html b/ManualTests/clip-path-mutated.html
new file mode 100644
index 0000000000000000000000000000000000000000..3b3611d02ea3d1d2e870d7bc6cecca21c0b37f15
--- /dev/null
+++ b/ManualTests/clip-path-mutated.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<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>There should be a green rectangle above, 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.25"></circle>
+ </clipPath>
+ </defs>
+</svg>
+<script>
+requestAnimationFrame(function() {
+ setTimeout(function() {
+ document.querySelector('circle').setAttribute('r', 1);
+ }, 0);
+});
+</script>
f(malita) 2014/07/29 01:21:16 I'd like to see at least a couple of dynamic tests
Shanmuga Pandi 2014/08/01 05:20:39 Done.

Powered by Google App Engine
This is Rietveld 408576698