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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/repaint/percent-size-image-resize-container-expected.html

Issue 1994373002: Convert some repaint tests into ref tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 <script src="resources/text-based-repaint.js"></script>
3 <script>
4 function repaintTest() {
5 var div = document.getElementsByTagName('div')[0];
6 div.style.width = '100px';
7 div.style.height = '200px';
8 }
9 onload = runRepaintTest;
10 </script>
11 <style> 2 <style>
12 div { 3 div {
13 position: absolute; 4 position: absolute;
14 top: 50px; 5 top: 50px;
15 left: 0px; 6 left: 0px;
16 width: 150px; 7 width: 100px;
17 height: 150px; 8 height: 200px;
18 } 9 }
19 img { 10 img {
20 position: absolute; 11 position: absolute;
21 width: 100%; 12 width: 100%;
22 height: 100%; 13 height: 100%;
23 } 14 }
24 </style> 15 </style>
25 The percent-sized image should be fully repainted on container's resize. Passes if there is a whole apple after resize. 16 The percent-sized image should be fully repainted on container's resize. Passes if there is a whole apple after resize.
26 <div> 17 <div>
27 <img src="resources/apple.jpg"> 18 <img src="resources/apple.jpg">
28 </div> 19 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698