| Index: third_party/WebKit/LayoutTests/paint/invalidation/svg/resize-svg-invalidate-children-2.html
|
| diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/svg/resize-svg-invalidate-children-2.html b/third_party/WebKit/LayoutTests/paint/invalidation/svg/resize-svg-invalidate-children-2.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e3bf5c0fe80d6701c67ee476e7261da02ac36f0a
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/paint/invalidation/svg/resize-svg-invalidate-children-2.html
|
| @@ -0,0 +1,22 @@
|
| +<!DOCTYPE html>
|
| +<script src="../../../resources/testharness.js"></script>
|
| +<script src="../../../resources/testharnessreport.js"></script>
|
| +<script src="../resources/text-based-repaint.js"></script>
|
| +<script>
|
| +// When resizing the div that contains SVG, the SVG root element and rect resize
|
| +// accordingly.
|
| +// It's necessary to invalidate the rect in this case.
|
| +window.expectedObjectInvalidations.push("LayoutSVGRect rect");
|
| +window.outputRepaintRects = false;
|
| +
|
| +function repaintTest() {
|
| + target.style.width = "600px";
|
| +};
|
| +onload = runRepaintTest;
|
| +</script>
|
| +<div id="target" style="width: 200px; height: 400px">
|
| + <svg width='500' height='400' viewBox='0 0 500 400'
|
| + style='width: 100%; height: 100%; transform: translateZ(0)'>
|
| + <rect width='500' height='400' fill='green'/>
|
| + </svg>
|
| +</div>
|
|
|