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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/spv2/outline-change-offset.html

Issue 1366763002: Text expectations of paint/invalidation/spv2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 <!-- Based on fast/repaint/outline-change-offset.html --> 1 <!-- Based on fast/repaint/outline-change-offset.html -->
2 <!DOCTYPE html> 2 <!DOCTYPE html>
3 <script src="resources/paint-invalidation-test.js"></script> 3 <script src="resources/paint-invalidation-test.js"></script>
4 <script> 4 <script>
5 window.expectedPaintInvalidationObjects = [
6 "LayoutBlockFlow (positioned) DIV id='indicator'",
7 "LayoutBlockFlow (positioned) DIV id='target'",
8 ];
9 function paintInvalidationTest() { 5 function paintInvalidationTest() {
10 document.getElementById('target').style.outlineOffset = '10px'; 6 document.getElementById('target').style.outlineOffset = '10px';
11 } 7 }
12 onload = runPaintInvalidationTest; 8 onload = runPaintInvalidationTest;
13 </script> 9 </script>
14 10
15 <style> 11 <style>
16 div { 12 div {
17 position: absolute; 13 position: absolute;
18 top: 50px; 14 top: 50px;
19 left: 50px; 15 left: 50px;
20 width: 100px; 16 width: 100px;
21 height: 100px; 17 height: 100px;
22 } 18 }
23 19
24 #target { 20 #target {
25 outline: green solid 5px; 21 outline: green solid 5px;
26 outline-offset: 5px; 22 outline-offset: 5px;
27 } 23 }
28 24
29 #indicator { 25 #indicator {
30 outline: red solid 5px; 26 outline: red solid 5px;
31 outline-offset: 10px; 27 outline-offset: 10px;
32 } 28 }
33 </style> 29 </style>
34 30
35 Box should be repainted when outline-offset style changes. Passes if no red. 31 Box should be repainted when outline-offset style changes. Passes if no red.
36 <div id="indicator"></div> 32 <div id="indicator"></div>
37 <div id="target"></div> 33 <div id="target"></div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698