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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/repaint/border-outline-0.html

Issue 2321183002: Move repaint tests (except for svg/) to paint/invalidation (Closed)
Patch Set: - Created 4 years, 3 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
(Empty)
1 <!DOCTYPE html>
2
3 <style>
4 #border-image,
5 #border,
6 #outline {
7 height: 100px;
8 width: 100px;
9 }
10
11 td {
12 height: 50px;
13 width: 50px;
14 border-style: hidden;
15 }
16
17 #border-image {
18 border-image: url(_example.png) 100% 100 100 round;
19 border-style: none;
20 border-width: 50px;
21 position: absolute;
22 top: 10px;
23 left: 10px;
24 border-style: solid;
25 }
26 </style>
27
28 <script src="resources/text-based-repaint.js"></script>
29 <script>
30 if (window.testRunner)
31 testRunner.dumpAsText();
32
33 function repaintTest() {
34 var border = document.getElementById("border");
35 border.style.border = "0";
36
37 var outline = document.getElementById("outline");
38 outline.style.outline = "0";
39
40 var outline = document.getElementById("cell");
41 outline.style.borderWidth = "0";
42
43 var borderImage = document.getElementById("border-image");
44 borderImage.style.borderWidth = "0";
45 }
46 onload = runRepaintTest;
47 </script>
48
49 <p>Tests that setting an outline or a border of 0 on an element without a border or outline doesn't repaint.</p>
50
51 <div id="border"></div>
52 <div id="outline"></div>
53 <div id="border-image"></div>
54
55 <table>
56 <tr>
57 <td id="cell"></td>
58 <td></td>
59 </tr>
60 </table>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698