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

Unified 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, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/repaint/border-outline-0-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/repaint/border-outline-0.html
diff --git a/LayoutTests/fast/repaint/border-outline-0.html b/LayoutTests/fast/repaint/border-outline-0.html
new file mode 100644
index 0000000000000000000000000000000000000000..0f6dbe083e51a1747be33ff2499cddd59e712fde
--- /dev/null
+++ b/LayoutTests/fast/repaint/border-outline-0.html
@@ -0,0 +1,59 @@
+<!DOCTYPE html>
+
+<style>
+#border-image,
+#border,
+#outline {
+ height: 100px;
+ width: 100px;
+}
+
+td {
+ height: 50px;
+ width: 50px;
+ border-style: hidden;
+}
+
+#border-image {
+ border-image: url(_example.png) 100% 100 100 round;
+ border-style: none;
+ border-width: 50px;
+ position: absolute;
+ top: 10px;
+ left: 10px;
+}
+</style>
+
+<script src="resources/text-based-repaint.js"></script>
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+
+function repaintTest() {
+ var border = document.getElementById("border");
+ border.style.border = "0";
+
+ var outline = document.getElementById("outline");
+ outline.style.outline = "0";
+
+ var outline = document.getElementById("cell");
+ outline.style.borderWidth = "0";
+
+ var borderImage = document.getElementById("border-image");
+ borderImage.style.borderWidth = "0";
+}
+onload = runRepaintTest;
+</script>
+
+<p>Tests that setting an outline or a border of 0 on an element without a border or outline doesn't repaint.</p>
+
+<div id="border"></div>
+<div id="outline"></div>
+<div id="border-image"></div>
+
+<table>
+ <tr>
+ <td id="cell"></td>
+ <td></td>
+ </tr>
+</table>
« 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