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

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

Issue 222473005: Don't repaint when setting border or outline 0 with style none (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: make cross platform Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/repaint/border-outline-0-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 }
25 </style>
26
27 <script src="resources/text-based-repaint.js"></script>
28 <script>
29 if (window.testRunner)
30 testRunner.dumpAsText();
31
32 function repaintTest() {
33 var border = document.getElementById("border");
34 border.style.border = "0";
35
36 var outline = document.getElementById("outline");
37 outline.style.outline = "0";
38
39 var outline = document.getElementById("cell");
40 outline.style.borderWidth = "0";
41
42 var borderImage = document.getElementById("border-image");
43 borderImage.style.borderWidth = "0";
44 }
45 onload = runRepaintTest;
46 </script>
47
48 <p>Tests that setting an outline or a border of 0 on an element without a border or outline doesn't repaint.</p>
49
50 <div id="border"></div>
51 <div id="outline"></div>
52 <div id="border-image"></div>
53
54 <table>
55 <tr>
56 <td id="cell"></td>
57 <td></td>
58 </tr>
59 </table>
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/repaint/border-outline-0-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698