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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/image-orientation/image-orientation-from-image-composited-dynamic.html

Issue 1361413004: Fix directly composited image path for CSS image-orientation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Patch for landing Created 5 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 <html> 1 <html>
2 <head> 2 <head>
3 <script> 3 <script>
4 if (window.testRunner) { 4 if (window.testRunner) {
5 testRunner.dumpAsTextWithPixelResults(); 5 testRunner.dumpAsTextWithPixelResults();
6 } 6 }
7 7
8 function log(str) { 8 function log(str) {
9 var li = document.createElement("li"); 9 var li = document.createElement("li");
10 li.appendChild(document.createTextNode(str)); 10 li.appendChild(document.createTextNode(str));
11 var console = document.getElementById("console"); 11 var console = document.getElementById("console");
12 console.appendChild(li); 12 console.appendChild(li);
13 } 13 }
14 14
15 function imageSize(el) { 15 function imageSize(el) {
16 var computedStyle = window.getComputedStyle(el); 16 var computedStyle = window.getComputedStyle(el);
17 return computedStyle.width + " by " + computedStyle.height; 17 return computedStyle.width + " by " + computedStyle.height;
18 } 18 }
19 19
20 20
21 function load() { 21 function load() {
22 for (var i = 1; i <= 9; i++) 22 for (var i = 1; i <= 9; i++) {
23 document.getElementById("img" + i).style.imageOrientation = "from-image" ;
23 log("img" + i + " size = " + imageSize(document.getElementById("img" + i ))) 24 log("img" + i + " size = " + imageSize(document.getElementById("img" + i )))
25 }
24 } 26 }
25 27
26 </script> 28 </script>
27 <style> 29 <style>
28 body { overflow: hidden; } 30 body { overflow: hidden; }
29 img { transform: translateZ(0); image-orientation: from-image; } 31 img { transform: translateZ(0); }
30 div { display: inline-block; margin-right: 20px; margin-bottom: 10px; width: 100 px; vertical-align: top; } 32 div { display: inline-block; margin-right: 20px; margin-bottom: 10px; width: 100 px; vertical-align: top; }
31 </style> 33 </style>
32 </head> 34 </head>
33 <body onload="load()"> 35 <body onload="load()">
34 <b>The images should be rotated respecting their EXIF orientation by use of imag e-orientation: from-image.</b><br><br> 36 <b>The images should be rotated respecting their EXIF orientation by use of imag e-orientation: from-image.</b><br><br>
35 <div><img id="img1" src="../../images/resources/exif-orientation-1-ul.jpg"><br>N ormal</div> 37 <div><img id="img1" src="../../images/resources/exif-orientation-1-ul.jpg"><br>N ormal</div>
36 <div><img id="img2" src="../../images/resources/exif-orientation-2-ur.jpg"><br>F lipped horizontally</div> 38 <div><img id="img2" src="../../images/resources/exif-orientation-2-ur.jpg"><br>F lipped horizontally</div>
37 <div><img id="img3" src="../../images/resources/exif-orientation-3-lr.jpg"><br>R otated 180&deg;</div> 39 <div><img id="img3" src="../../images/resources/exif-orientation-3-lr.jpg"><br>R otated 180&deg;</div>
38 <div><img id="img4" src="../../images/resources/exif-orientation-4-lol.jpg"><br> Flipped vertically</div> 40 <div><img id="img4" src="../../images/resources/exif-orientation-4-lol.jpg"><br> Flipped vertically</div>
39 <br> 41 <br>
40 <div><img id="img5" src="../../images/resources/exif-orientation-5-lu.jpg"><br>R otated 90&deg; CCW and flipped vertically</div> 42 <div><img id="img5" src="../../images/resources/exif-orientation-5-lu.jpg"><br>R otated 90&deg; CCW and flipped vertically</div>
41 <div><img id="img6" src="../../images/resources/exif-orientation-6-ru.jpg"><br>R otated 90&deg; CCW</div> 43 <div><img id="img6" src="../../images/resources/exif-orientation-6-ru.jpg"><br>R otated 90&deg; CCW</div>
42 <div><img id="img7" src="../../images/resources/exif-orientation-7-rl.jpg"><br>R otated 90&deg; CW and flipped vertically </div> 44 <div><img id="img7" src="../../images/resources/exif-orientation-7-rl.jpg"><br>R otated 90&deg; CW and flipped vertically </div>
43 <div><img id="img8" src="../../images/resources/exif-orientation-8-llo.jpg"><br> Rotated 90&deg; CW</div> 45 <div><img id="img8" src="../../images/resources/exif-orientation-8-llo.jpg"><br> Rotated 90&deg; CW</div>
44 <br> 46 <br>
45 <div><img id="img9" src="../../images/resources/exif-orientation-9-u.jpg"><br>Un defined (invalid value)</div> 47 <div><img id="img9" src="../../images/resources/exif-orientation-9-u.jpg"><br>Un defined (invalid value)</div>
46 <br> 48 <br>
47 <ul id="console"></ul> 49 <ul id="console"></ul>
48 </body> 50 </body>
49 </html> 51 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698