Index: LayoutTests/fast/table/outline-change-in-table-cell.html |
diff --git a/LayoutTests/fast/table/outline-change-in-table-cell.html b/LayoutTests/fast/table/outline-change-in-table-cell.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..28db6512fb0ddbe9afeb49e9190da7abbeedf6b7 |
--- /dev/null |
+++ b/LayoutTests/fast/table/outline-change-in-table-cell.html |
@@ -0,0 +1,21 @@ |
+<!DOCTYPE html> |
+<script src="../repaint/resources/text-based-repaint.js"></script> |
+<script> |
+function repaintTest() { |
+ var target = document.getElementById('target'); |
+ // Intermediate outline change should not affect final overflow and paint invalidation. |
+ target.style.outline = '40px solid yellow'; |
+ target.offsetHeight; |
+ target.style.outline = '20px solid green'; |
+} |
+onload = runRepaintTest; |
+</script> |
+Tests overflow recalc and paint invalidation in a table cell when outline changes. |
+Passes if there is a thick green outline and neither red nor yellow. |
+<table style="border: none; border-collapse: collapse; margin: 50px; position: absolute; top: 100px"> |
+ <tr> |
+ <td style="padding: 0"> |
+ <div id="target" style="width: 100px; height: 100px; outline: 1px solid red"></div> |
+ </td> |
+ </tr> |
+</table> |