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

Unified Diff: LayoutTests/fast/repaint/hover-pseudo-borders-whitespace.html

Issue 140673006: Fix repaint on :hover for empty elements with a border. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix pdr's issues. Created 6 years, 11 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/hover-pseudo-borders-whitespace-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/repaint/hover-pseudo-borders-whitespace.html
diff --git a/LayoutTests/fast/repaint/hover-pseudo-borders-whitespace.html b/LayoutTests/fast/repaint/hover-pseudo-borders-whitespace.html
new file mode 100644
index 0000000000000000000000000000000000000000..be81aa50097c629da6d9e7ed42659094d1ab942e
--- /dev/null
+++ b/LayoutTests/fast/repaint/hover-pseudo-borders-whitespace.html
@@ -0,0 +1,33 @@
+<!doctype html>
+<style>
+
+div {
+ width: 100px;
+ height: 100px;
+}
+
+#div_border {
+ border: 10px solid;
+}
+
+#div_outline {
+ outline: 10px solid;
+ margin: 20px 0 0 10px;
+}
+
+#div_border:hover, #div_border:hover + #div_outline {
+ color: green;
+}
+
+</style>
+<script src="resources/text-based-repaint.js"></script>
+<script>
+ function repaintTest() {
+ if (!window.testRunner)
+ return;
+ eventSender.mouseMoveTo(50, 50);
+ }
+ window.addEventListener("load", runRepaintTest);
+</script>
+<div id="div_border"></div>
+<div id="div_outline"></div>
« no previous file with comments | « no previous file | LayoutTests/fast/repaint/hover-pseudo-borders-whitespace-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698