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

Unified Diff: LayoutTests/fast/repaint/background-currentColor-repaint.html

Issue 1320553004: LayoutObject::adjustStyleDifference doesn't check backgroundColor when repainting (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: With fixed layout test Created 5 years, 4 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
Index: LayoutTests/fast/repaint/background-currentColor-repaint.html
diff --git a/LayoutTests/fast/repaint/background-currentColor-repaint.html b/LayoutTests/fast/repaint/background-currentColor-repaint.html
new file mode 100644
index 0000000000000000000000000000000000000000..d905fcc146f1485172c32fefa565812250846629
--- /dev/null
+++ b/LayoutTests/fast/repaint/background-currentColor-repaint.html
@@ -0,0 +1,34 @@
+<!DOCTYPE html>
+<script src="resources/text-based-repaint.js"></script>
+
+<style>
+#input1 {
Timothy Loh 2015/08/28 04:48:44 input is a weird name.. I would've written: div
nainar1 2015/08/28 05:02:40 Done
+ width: 100px;
+ height: 100px;
+ background: currentColor;
+ color: blue;
+}
+
+#input2 {
+ width: 100px;
+ height: 100px;
+ background: currentColor;
+ color: transparent;
+}
+
+</style>
+
+<div id="input1"></div>
+<div id="input2"></div>
+
+<script>
+function repaintTest()
+{
+ input1.style.color = 'transparent';
+ input2.style.color = 'blue';
+}
+
+window.onload = runRepaintTest;
+
+</script>
+

Powered by Google App Engine
This is Rietveld 408576698