diff options
Diffstat (limited to 'testing/web-platform/tests/css/css-contain/content-visibility/slot-content-visibility-5-crash.html')
-rw-r--r-- | testing/web-platform/tests/css/css-contain/content-visibility/slot-content-visibility-5-crash.html | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-contain/content-visibility/slot-content-visibility-5-crash.html b/testing/web-platform/tests/css/css-contain/content-visibility/slot-content-visibility-5-crash.html new file mode 100644 index 0000000000..01f063301c --- /dev/null +++ b/testing/web-platform/tests/css/css-contain/content-visibility/slot-content-visibility-5-crash.html @@ -0,0 +1,33 @@ +<!DOCTYPE html> +<link rel=author href="mailto:jarhar@chromium.org"> +<link rel=help href="https://bugs.chromium.org/p/chromium/issues/detail?id=1221121"> + +<style> +</style> +<style> +</style> +<style> +</style> +<div> + <template shadowroot=open> + <slot style="content-visibility: hidden; display: block"></slot> + </template> +<embed id="I7" class= accesskey="h"> +<meter class="C8">a +<script> + document.head.appendChild(document.createElement("style")); + const styleSheet = document.styleSheets[document.styleSheets.length - 1]; + styleSheet.insertRule(":root{}"); + const styleSheet0 = document.styleSheets[0]; + const test2 = document.getElementById("I7"); + test2.className += "fuzzClass5"; + styleSheet0.insertRule('.C8 {}'); + try { + test2.style.setProperty(); + } catch(e) {} + document.styleSheets[3].disabled = true; + test2.style['border-right-color-value'] = ''; + styleSheet0.insertRule('.foo { color: blue }', styleSheet0.cssRules.length); + document.execCommand("false"); + document.designMode = "on"; +</script> |