| Index: third_party/WebKit/LayoutTests/svg/text/selection-pseudo-resource-invalidation-crash.html
|
| diff --git a/third_party/WebKit/LayoutTests/svg/text/selection-pseudo-resource-invalidation-crash.html b/third_party/WebKit/LayoutTests/svg/text/selection-pseudo-resource-invalidation-crash.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e0a4d2380d81cb6896ed31d5f1f5dfada539bef7
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/svg/text/selection-pseudo-resource-invalidation-crash.html
|
| @@ -0,0 +1,34 @@
|
| +<!DOCTYPE html>
|
| +<script src="../../resources/testharness.js"></script>
|
| +<script src="../../resources/testharnessreport.js"></script>
|
| +<script src="../../resources/run-after-layout-and-paint.js"></script>
|
| +<style>
|
| +::selection {
|
| + page-break-before: right;
|
| +}
|
| +</style>
|
| +<script>
|
| +async_test(t => {
|
| + window.onload = t.step_func(() => {
|
| + document.body.offsetTop;
|
| + document.getElementById("text1").setAttribute("filter", "url(#f)");
|
| + document.execCommand("SelectAll", false);
|
| +
|
| + runAfterLayoutAndPaint(t.step_func(() => {
|
| + document.vlinkColor = "#ff0000";
|
| + requestAnimationFrame(t.step_func_done());
|
| + }));
|
| + });
|
| +}, "Don't crash.");
|
| +</script>
|
| +<svg id="svg1">
|
| + <text>Text2</text>
|
| +</svg>
|
| +<svg>
|
| + <text id="text1">Text</text>
|
| +</svg>
|
| +<svg>
|
| + <filter id="f">
|
| + <feImage xlink:href="#svg1"/>
|
| + </filter>
|
| +</svg>
|
|
|