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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/run-after-display.js"></script>
3 <svg width="100" height="100">
4 <pattern id="p" patternUnits="objectBoundingBox" width="100" height="100">
5 <rect width="100" height="100" fill="green"/>
6 </pattern>
7 <line y1="50" x2="100" y2="50" stroke-width="100" stroke="url(#p) red"/>
8 </svg>
9 <script>
10 function changeToUSOU() {
11 document.querySelector('pattern').setAttribute('patternUnits', 'userSpaceOnUse ');
12 }
13
14 if (window.testRunner)
15 testRunner.waitUntilDone();
16
17 window.onload = function() {
18 runAfterDisplay(function() {
19 changeToUSOU();
20 if (testRunner)
21 runAfterDisplay(function() { testRunner.notifyDone(); });
22 });
23 };
24 </script>
OLDNEW
« 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