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

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: Improving code styling 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
« no previous file with comments | « no previous file | LayoutTests/fast/repaint/background-currentColor-repaint-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..d4d398a957e7ed7d6ffea7b84f98c95e2077bd8d
--- /dev/null
+++ b/LayoutTests/fast/repaint/background-currentColor-repaint.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<script src="resources/text-based-repaint.js"></script>
+
+<style>
+div {
+ width: 100px;
+ height: 100px;
+ background: currentColor;
+}
+
+#div1 {
+ color: blue;
+}
+
+#div2 {
+ color: transparent;
+}
+
+</style>
+
+<div id="div1"></div>
+<div id="div2"></div>
+
+<script>
+function repaintTest()
+{
+ div1.style.color = 'transparent';
+ div2.style.color = 'blue';
+}
+
+window.onload = runRepaintTest;
+
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/repaint/background-currentColor-repaint-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698