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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/repaint/border-image-outset-change-repaint.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 <style> 2 <style>
3 div { 3 div {
4 border-width: 21px 30px 30px 21px; 4 border-width: 21px 30px 30px 21px;
5 width: 75px; 5 width: 75px;
6 height: 75px; 6 height: 75px;
7 display: inline-block; 7 display: inline-block;
8 border-image-source: url("../borders/resources/border-image.png"); 8 border-image-source: url("../borders/resources/border-image.png");
9 border-image-slice: 21 30 30 21 fill; 9 border-image-slice: 21 30 30 21 fill;
10 border-image-width: 1; 10 border-image-width: 1;
11 border-image-outset: 1; 11 border-image-outset: 1;
12 } 12 }
13 </style> 13 </style>
14 <script src="resources/text-based-repaint.js"></script> 14 <script src="resources/text-based-repaint.js"></script>
15 <script> 15 <script>
16 function repaintTest() 16 function repaintTest()
17 { 17 {
18 // Changing border-image-outset will cause a repaint but no layout. 18 // Changing border-image-outset will cause a repaint but no layout.
19 document.getElementById("test").style['border-image-outset'] = '5'; 19 document.getElementById("test").style['border-image-outset'] = '5';
20 } 20 }
21 window.onload = runRepaintTest; 21 window.onload = runRepaintAndPixelTest;
22 </script> 22 </script>
23 <div id="test"></div> 23 <div id="test"></div>
24 <p> 24 <p>
25 Tests the repainting of border-image-outset when changed. 25 Tests the repainting of border-image-outset when changed.
26 </p> 26 </p>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698