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..c5fc2c2a648b476fb9dc63387d2a72093fa9d41d |
--- /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 id="table" style="width: 300px"> |
wkorman
2017/04/27 22:30:23
id not used
Xianzhu
2017/04/28 00:31:06
Done.
|
+ <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> |