Chromium Code Reviews| 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..5558cca91a211588027240e3d02978bc56fd0e0b |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/svg/text/selection-pseudo-resource-invalidation-crash.html |
| @@ -0,0 +1,34 @@ |
| +<!DOCTYPE html> |
| +<style> |
| +::selection { |
| + page-break-before: right; |
| +} |
| +</style> |
| +<script> |
| +if (window.testRunner) { |
| + testRunner.dumpAsText(); |
| + testRunner.waitUntilDone(); |
| +} |
| +onload = function() { |
| + document.body.offsetTop; |
|
Stephen Chennney
2017/04/28 16:12:31
This might be to force layout. Can it be switched
fs
2017/04/28 18:16:33
Yes, we want layout to be clean before adding the
fs
2017/05/02 13:53:32
I tried inserting a runAfterLayoutAndPaint to repl
|
| + document.getElementById("text1").setAttribute("filter", "url(#f)"); |
| + document.execCommand("SelectAll", false); |
| + |
| + requestAnimationFrame(function() { |
| + document.vlinkColor = "#ff0000"; |
| + requestAnimationFrame(function() { testRunner.notifyDone(); }); |
| + }); |
| +} |
| +</script> |
| +<p>PASS if no crash</p> |
| +<svg id="svg1"> |
| + <text>Text2</text> |
| +</svg> |
| +<svg> |
| + <text id="text1">Text</text> |
| +</svg> |
| +<svg> |
| + <filter id="f"> |
| + <feImage xlink:href="#svg1"/> |
| + </filter> |
| +</svg> |