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

Unified Diff: LayoutTests/svg/custom/viewport-clippath-invalidation.html

Issue 1111223002: Invalidate ancestor resources in when relative lengths change (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add test. Created 5 years, 7 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 | « LayoutTests/TestExpectations ('k') | LayoutTests/svg/custom/viewport-clippath-invalidation-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/svg/custom/viewport-clippath-invalidation.html
diff --git a/LayoutTests/svg/custom/viewport-clippath-invalidation.html b/LayoutTests/svg/custom/viewport-clippath-invalidation.html
new file mode 100644
index 0000000000000000000000000000000000000000..6f126cf9873fc035e3f131bb01decd902cb5e614
--- /dev/null
+++ b/LayoutTests/svg/custom/viewport-clippath-invalidation.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<script src=../../resources/run-after-display.js></script>
+<svg width="100" height="100">
+ <clipPath id="clip">
+ <rect width="50%" height="50%"/>
+ <text y="25%" font-size="1px">Sabotage!</text>
+ </clipPath>
+
+ <rect width="50%" height="50%" fill="red"/>
+ <rect width="800" height="800" fill="green" clip-path="url(#clip)"/>
+</svg>
+<script>
+runAfterDisplay(function() {
+ document.querySelector('svg').setAttribute('width', '200');
+ document.querySelector('svg').setAttribute('height', '200');
+}, true);
+</script>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/svg/custom/viewport-clippath-invalidation-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698