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

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: NeedsRebaseline 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..76fc7c77ea91dfcdb72daf2143adb5298d9838ca
--- /dev/null
+++ b/LayoutTests/fast/repaint/border-outline-0.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+
+<style>
+#border,
+#outline {
+ height: 100px;
+ width: 100px;
+}
+</style>
+
+<script src="resources/text-based-repaint.js"></script>
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+
+function repaintTest() {
ojan 2014/04/03 00:51:06 Should this also test the cases of border-style:hi
+ var border = document.getElementById("border");
+ border.style.border = "0";
+
+ var outline = document.getElementById("outline");
+ outline.style.outline = "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>
« 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