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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/repaint/padding-border-keeping-border-box-and-content-box.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, 7 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> 2 <script src="resources/text-based-repaint.js"></script>
3 <script> 3 <script>
4 function repaintTest() 4 function repaintTest()
5 { 5 {
6 // Though neither border box nor content box changes, should full repaint 6 // Though neither border box nor content box changes, should full repaint
7 // because the border width changes. 7 // because the border width changes.
8 var target = document.getElementById('target'); 8 var target = document.getElementById('target');
9 target.style.padding = '20px'; 9 target.style.padding = '20px';
10 target.style.borderWidth = '20px'; 10 target.style.borderWidth = '20px';
11 } 11 }
12 window.onload = runRepaintTest; 12 window.onload = runRepaintAndPixelTest;
13 </script> 13 </script>
14 <style> 14 <style>
15 body { 15 body {
16 margin: 0; 16 margin: 0;
17 } 17 }
18 div { 18 div {
19 width: 100px; 19 width: 100px;
20 height: 100px; 20 height: 100px;
21 padding: 40px; 21 padding: 40px;
22 position: absolute; 22 position: absolute;
23 background-color: green; 23 background-color: green;
24 border-color: blue; 24 border-color: blue;
25 border-style: solid; 25 border-style: solid;
26 border-width: 0; 26 border-width: 0;
27 } 27 }
28 </style> 28 </style>
29 <div id="target"></div> 29 <div id="target"></div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698