Index: third_party/WebKit/LayoutTests/paint/invalidation/table/container-backgrounds-on-cell-resize.html |
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/table/container-backgrounds-on-cell-resize.html b/third_party/WebKit/LayoutTests/paint/invalidation/table/container-backgrounds-on-cell-resize.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ac605091dbf1dd950295c73ff7cdef077902d231 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/table/container-backgrounds-on-cell-resize.html |
@@ -0,0 +1,31 @@ |
+<!DOCTYPE html> |
+<style> |
+ tr { height: 30px } |
+</style> |
+Should repaint the backgrounds of column (yellow), section (blue) and row (green) when cells resize. |
+<table style="width: 300px"> |
+ <colgroup> |
+ <col style="background: yellow"> |
+ </colgroup> |
+ <thead style="background: blue"> |
+ <tr> |
+ <td>A</td><td id="cell" style="width: 100px">B</td><td>C</td> |
+ </tr> |
+ </thead> |
+ <tbody> |
+ <tr style="background: green"> |
+ <td>A</td><td>B</td><td>C</td> |
+ </tr> |
+ </tbody> |
+ <tfoot> |
+ <tr> |
+ <td>A</td><td>B</td><td>C</td> |
+ </tr> |
+ </tfoot> |
+</table> |
+<script src="../../../resources/run-after-layout-and-paint.js"></script> |
+<script> |
+runAfterLayoutAndPaint(function() { |
+ cell.style.width = '200px'; |
+}, true); |
+</script> |