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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/spv2/negative-text-indent-with-overflow-hidden.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/negative-text-indent-with-overflow-hidden.html --> 1 <!-- Based on fast/repaint/negative-text-indent-with-overflow-hidden.html -->
2 <!DOCTYPE html> 2 <!DOCTYPE html>
3 <html> 3 <html>
4 <head> 4 <head>
5 <style> 5 <style>
6 .container { 6 .container {
7 position: absolute; 7 position: absolute;
8 left: 550px; 8 left: 550px;
9 height: 200px; 9 height: 200px;
10 width: 200px; 10 width: 200px;
11 background-color: silver; 11 background-color: silver;
12 } 12 }
13 #target { 13 #target {
14 text-indent: -300px; 14 text-indent: -300px;
15 width: 200px; 15 width: 200px;
16 height: 50px; 16 height: 50px;
17 overflow: hidden; 17 overflow: hidden;
18 background-color: green; 18 background-color: green;
19 } 19 }
20 20
21 #target.changed, #target:hover { 21 #target.changed, #target:hover {
22 background-color: blue; 22 background-color: blue;
23 } 23 }
24 </style> 24 </style>
25 <script src="resources/paint-invalidation-test.js"></script> 25 <script src="resources/paint-invalidation-test.js"></script>
26 <script> 26 <script>
27 window.expectedPaintInvalidationObjects = [
28 "LayoutBlockFlow DIV id='target' class='changed'",
29 ];
30 function paintInvalidationTest() { 27 function paintInvalidationTest() {
31 document.getElementById('target').classList.add('changed'); 28 document.getElementById('target').classList.add('changed');
32 } 29 }
33 </script> 30 </script>
34 </head> 31 </head>
35 <body onload="runPaintInvalidationTest();"> 32 <body onload="runPaintInvalidationTest();">
36 <div class="container"> 33 <div class="container">
37 <div id="target">Hidden Text</div> 34 <div id="target">Hidden Text</div>
38 </div> 35 </div>
39 </body> 36 </body>
40 </html> 37 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698