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

Unified Diff: LayoutTests/svg/custom/pattern-empty-bbox-2.html

Issue 579243004: Prevent reading stale/invalid data when applying a <pattern> (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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/svg/custom/pattern-empty-bbox-2.html
diff --git a/LayoutTests/svg/custom/pattern-empty-bbox-2.html b/LayoutTests/svg/custom/pattern-empty-bbox-2.html
new file mode 100644
index 0000000000000000000000000000000000000000..611914fe41195c276120e1be6cf480c07523e106
--- /dev/null
+++ b/LayoutTests/svg/custom/pattern-empty-bbox-2.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<script src="../../resources/run-after-display.js"></script>
+<svg width="100" height="100">
+ <pattern id="p" patternUnits="objectBoundingBox" width="100" height="100">
+ <rect width="100" height="100" fill="green"/>
+ </pattern>
+ <line y1="50" x2="100" y2="50" stroke-width="100" stroke="url(#p) red"/>
+</svg>
+<script>
+function changeToUSOU() {
+ document.querySelector('pattern').setAttribute('patternUnits', 'userSpaceOnUse');
+}
+
+if (window.testRunner)
+ testRunner.waitUntilDone();
+
+window.onload = function() {
+ runAfterDisplay(function() {
+ changeToUSOU();
+ if (testRunner)
+ runAfterDisplay(function() { testRunner.notifyDone(); });
+ });
+};
+</script>
« no previous file with comments | « LayoutTests/svg/custom/pattern-empty-bbox-1-expected.html ('k') | LayoutTests/svg/custom/pattern-empty-bbox-2-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698