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

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: NeedsRebaseline 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,
5 #outline {
6 height: 100px;
7 width: 100px;
8 }
9 </style>
10
11 <script src="resources/text-based-repaint.js"></script>
12 <script>
13 if (window.testRunner)
14 testRunner.dumpAsText();
15
16 function repaintTest() {
ojan 2014/04/03 00:51:06 Should this also test the cases of border-style:hi
17 var border = document.getElementById("border");
18 border.style.border = "0";
19
20 var outline = document.getElementById("outline");
21 outline.style.outline = "0";
22 }
23 onload = runRepaintTest;
24 </script>
25
26 <p>Tests that setting an outline or a border of 0 on an element without a border or outline doesn't repaint.</p>
27
28 <div id="border"></div>
29 <div id="outline"></div>
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