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

Side by Side Diff: LayoutTests/fast/transforms/mirror-transform-tiled-scaled-background.html

Issue 223673003: Improve computation of ctmScale{X,Y} in NativeImageSkia::drawPattern (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Drop trailing WS. Created 6 years, 8 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/fast/transforms/mirror-transform-tiled-scaled-background-expected.html » ('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 <title>Tiled and scaled background with 'transform: scale(1, -1)'</title>
3 <style>
4 div {
5 width: 100px;
6 height: 100px;
7 }
8 #subject {
9 background-size: 95px 100px;
10 -webkit-transform: scale(1, -1);
11 transform: scale(1, -1);
12 }
13 </style>
14 <div id=back>
15 <div id=subject></div>
16 </div>
17 <script>
18 function stripedImage(c1, c2) {
19 var c = document.createElement('canvas');
20 c.width = c.height = 100;
21 var ctx = c.getContext('2d');
22 ctx.fillStyle = c1;
23 ctx.fillRect(0, 0, 100, 50);
24 ctx.fillStyle = c2;
25 ctx.fillRect(0, 50, 100, 50);
26 return c.toDataURL('image/png');
27 }
28 document.getElementById('back').style.background = 'url(' + stripedImage('#080', '#f00') + ')';
29 document.getElementById('subject').style.backgroundImage = 'url(' + stripedImage ('#080', 'transparent') + ')';
30 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/transforms/mirror-transform-tiled-scaled-background-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698