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

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

Issue 637763002: Unprefix usage of -webkit-transform in tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>Tiled and scaled background with 'transform: scale(1, -1)'</title> 2 <title>Tiled and scaled background with 'transform: scale(1, -1)'</title>
3 <style> 3 <style>
4 div { 4 div {
5 width: 100px; 5 width: 100px;
6 height: 100px; 6 height: 100px;
7 } 7 }
8 #subject { 8 #subject {
9 background-size: 95px 100px; 9 background-size: 95px 100px;
10 -webkit-transform: scale(1, -1);
11 transform: scale(1, -1); 10 transform: scale(1, -1);
12 } 11 }
13 </style> 12 </style>
14 <div id=back> 13 <div id=back>
15 <div id=subject></div> 14 <div id=subject></div>
16 </div> 15 </div>
17 <script> 16 <script>
18 function stripedImage(c1, c2) { 17 function stripedImage(c1, c2) {
19 var c = document.createElement('canvas'); 18 var c = document.createElement('canvas');
20 c.width = c.height = 100; 19 c.width = c.height = 100;
21 var ctx = c.getContext('2d'); 20 var ctx = c.getContext('2d');
22 ctx.fillStyle = c1; 21 ctx.fillStyle = c1;
23 ctx.fillRect(0, 0, 100, 50); 22 ctx.fillRect(0, 0, 100, 50);
24 ctx.fillStyle = c2; 23 ctx.fillStyle = c2;
25 ctx.fillRect(0, 50, 100, 50); 24 ctx.fillRect(0, 50, 100, 50);
26 return c.toDataURL('image/png'); 25 return c.toDataURL('image/png');
27 } 26 }
28 document.getElementById('back').style.background = 'url(' + stripedImage('#080', '#f00') + ')'; 27 document.getElementById('back').style.background = 'url(' + stripedImage('#080', '#f00') + ')';
29 document.getElementById('subject').style.backgroundImage = 'url(' + stripedImage ('#080', 'transparent') + ')'; 28 document.getElementById('subject').style.backgroundImage = 'url(' + stripedImage ('#080', 'transparent') + ')';
30 </script> 29 </script>
OLDNEW
« no previous file with comments | « LayoutTests/fast/transforms/matrix-with-zoom.html ('k') | LayoutTests/fast/transforms/overflow-with-transform.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698