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

Side by Side Diff: LayoutTests/svg/custom/svg-image-par-resize.html

Issue 403393002: Always set the container size for a pAR=none image to the intrinsic size (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/svg/custom/svg-image-par-resize-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
3 <script src="../../resources/run-after-display.js"></script>
4 <script>
5 window.testIsAsync = true;
6 </script>
7 <body onload="runRepaintTest()">
8 <svg width="300" height="200">
9 <image width="200" height="200" preserveAspectRatio="none"
10 xlink:href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='50' height='50'><rect width='100%' height='100%' fill='green'/></svg>"></ image>
11 </svg>
12 <script>
13 function repaintTest() {
14 document.querySelector('image').setAttribute('width', 100);
15 requestAnimationFrame(function() {
16 requestAnimationFrame(function() {
17 finishRepaintTest();
18 });
19 });
20 }
21 </script>
22 </body>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/svg/custom/svg-image-par-resize-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698