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

Unified Diff: LayoutTests/fast/repaint/hover-invalidation-table.html

Issue 673533002: Table rows are not totally invalidated after r170349 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update first comment after Dan's review (forgot to do it) Created 6 years, 2 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-invalidation-table-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/repaint/hover-invalidation-table.html
diff --git a/LayoutTests/fast/repaint/hover-invalidation-table.html b/LayoutTests/fast/repaint/hover-invalidation-table.html
new file mode 100644
index 0000000000000000000000000000000000000000..b2131487de414100f59dfbbcf54e5f7dccdeca84
--- /dev/null
+++ b/LayoutTests/fast/repaint/hover-invalidation-table.html
@@ -0,0 +1,49 @@
+<!DOCTYPE html>
+<style>
+body {
+ font: 10px/1 Ahem;
+}
+
+tr:hover {
+ background-color: green;
+}
+
+table {
+ position:relative;
+ top: 180px;
+}
+</style>
+<script src="resources/text-based-repaint.js" type="text/javascript"></script>
+<script>
+function repaintTest()
+{
+ var secondRowSpan = document.getElementById("secondRowSpan");
+ var secondRowSpanBox = secondRowSpan.getBoundingClientRect();
+ var secondRowSpanCenterX = (secondRowSpanBox.left + secondRowSpanBox.right) / 2;
+ var secondRowSpanCenterY = (secondRowSpanBox.top + secondRowSpanBox.bottom) / 2;
+
+ if (window.eventSender) {
+ eventSender.mouseMoveTo(secondRowSpanCenterX, secondRowSpanCenterY);
+ eventSender.mouseDown();
+ eventSender.mouseUp();
+ }
+}
+
+window.addEventListener("load", runRepaintTest);
+</script>
+<table>
+ <tr>
+ <td rowspan="2">1,1</td>
+ <td>1,4</td>
+ </tr>
+ <tr>
+ <td>2,3</td>
+ </tr>
+ <tr class="bla">
+ <td rowspan="2" id="secondRowSpan">3,1</td>
+ <td>3,4</td>
+ </tr>
+ <tr>
+ <td>4,4</td>
+ </tr>
+</table>
« no previous file with comments | « no previous file | LayoutTests/fast/repaint/hover-invalidation-table-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698