diff options
Diffstat (limited to 'testing/web-platform/tests/css/css-position/crashtests')
3 files changed, 85 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-position/crashtests/inline-containing-block-crash.html b/testing/web-platform/tests/css/css-position/crashtests/inline-containing-block-crash.html new file mode 100644 index 0000000000..db385e38d1 --- /dev/null +++ b/testing/web-platform/tests/css/css-position/crashtests/inline-containing-block-crash.html @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1431205"> +<span style="position: relative;"> + <div id="target" style="position: absolute; left: 0; top: 0; width: 10px; height: 10px; overflow: hidden;"></div> +</span> +<script> +document.body.offsetTop; +document.getElementById('target').textContent = 'kaboom'; +</script> diff --git a/testing/web-platform/tests/css/css-position/crashtests/position-absolute-crash-014.html b/testing/web-platform/tests/css/css-position/crashtests/position-absolute-crash-014.html new file mode 100644 index 0000000000..a169a7b949 --- /dev/null +++ b/testing/web-platform/tests/css/css-position/crashtests/position-absolute-crash-014.html @@ -0,0 +1,24 @@ +<!DOCTYPE html> +<link rel="help" href="https://crbug.com/1021676"> +<link rel="author" title="Koji Ishii" href="mailto:kojii@chromium.org"> +<style> +#htmlvar00005 { + filter: drop-shadow(-1px -1px 1px yellow); + float: left; + line-height: 71vw; +} + +#htmlvar00006 { + overflow-x: scroll; + position: absolute; +} + +.class8 { + font: 52px sans-serif; +} +</style> +<ol id="htmlvar00005"> + <li id="htmlvar00006"> + <details class="class8"></details> + </li> +</ol> diff --git a/testing/web-platform/tests/css/css-position/crashtests/scroll-tree-parent-construction.html b/testing/web-platform/tests/css/css-position/crashtests/scroll-tree-parent-construction.html new file mode 100644 index 0000000000..8a5bf54253 --- /dev/null +++ b/testing/web-platform/tests/css/css-position/crashtests/scroll-tree-parent-construction.html @@ -0,0 +1,52 @@ +<!DOCTYPE HTML> +<html class="test-wait"> +<head> +<style> + #ifr { border: 5px solid #ddd; width: 200px; height: 150px; } +</style> +</head> +<body> +<iframe id=ifr srcdoc=" + <style> + body { margin: 0 } + * { box-sizing: border-box } + .c1 { width: 90px; height: 300px; } + .f1 { + position: fixed; + background: #ddf; + left: 30px; + top: 10px; + width: 120px; + height: 120px; + } + .s1 { + overflow: scroll; + margin: 10px; + height: 100px; + width: 100px; + border: 5px solid gray; + } + </style> + <div class=c1>AAA</div> + <div class=f1> + <div class=s1> + <div class=c1>AAA</div> + </div> + </div>"></iframe> +<script> + raf = async () => { + return new Promise(resolve => { + requestAnimationFrame(resolve); + }); + } + onload = async () => { + await raf(); + await raf(); + ifr.contentWindow.location.reload(); + for (let i = 0; i < 10; i++) + await raf(); + document.documentElement.className = ""; + }; +</script> +</body> +</html> |