Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-contain/contain-chrome-thcrash-001.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>CSS Overflow and Transforms: css-overflow-3</title>
<link rel="author" href="mailto:atotic@google.com">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<meta name="assert" content="chrome does not crash with css contain edge case">
<style>
* {
contain: size layout;
}
html {
outline-style: auto;
margin-bottom: 39%;
}
#target {
-webkit-appearance: button;
}
</style>
<output id="target">text</output>
<script>
test(() => {
document.body.offsetTop;
document.querySelector("#target").value = "";
document.body.offsetTop;
assert_equals(document.querySelector("#target").value, "");
}, 'chrome does not crash with contain');
</script>