Index: LayoutTests/fast/table/table-cell-outline-change.html |
diff --git a/LayoutTests/fast/table/table-cell-outline-change.html b/LayoutTests/fast/table/table-cell-outline-change.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0fe57c2237505ec9745a12aacb270857188d1d7b |
--- /dev/null |
+++ b/LayoutTests/fast/table/table-cell-outline-change.html |
@@ -0,0 +1,22 @@ |
+<!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> |
+<p style="height: 100px"> |
+Tests overflow recalc and paint invalidation when a table cell's outline changes. |
+Passes if there is a thick green outline and no red. |
+</p> |
+<table style="border: none; margin: 50px"> |
+ <tr> |
+ <td id="target" style="width: 100px; height: 100px; outline: 1px solid red"> |
+ </td> |
+ </tr> |
+</table> |