diff options
Diffstat (limited to 'testing/web-platform/tests/css/css-contain/crashtests/contain-nested-crash-001.html')
-rw-r--r-- | testing/web-platform/tests/css/css-contain/crashtests/contain-nested-crash-001.html | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-contain/crashtests/contain-nested-crash-001.html b/testing/web-platform/tests/css/css-contain/crashtests/contain-nested-crash-001.html new file mode 100644 index 0000000000..063563c260 --- /dev/null +++ b/testing/web-platform/tests/css/css-contain/crashtests/contain-nested-crash-001.html @@ -0,0 +1,24 @@ +<!DOCTYPE html> +<link rel="help" href="https://drafts.csswg.org/css-contain/#contain-property"> +<link rel="help" href="https://crbug.com/1214198"> +<link rel="author" title="Koji Ishii" href="mailto:kojii@chromium.org"> +<style> +.contain { + contain: strict; + display: block; + width: 100px; + height: 100px; +} +</style> +<body> + <div id="outer" class="contain"> + <div> + <div id="inner" class="contain"></div> + </div> + </div> +<script> + document.body.offsetTop; + inner.appendChild(document.createTextNode('inner-child')); + outer.appendChild(document.createTextNode('outer-child')); +</script> +</body> |