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-flexbox-outline.html - WPT Dashboard Interop Dashboard
 
 
<!doctype html>
<title>Test `contain: strict` to Flexbox does not crash</title>
<link rel="author" href="mailto:kojii@chromium.org">
<style>
body {
  contain: strict;
  display: flex;
}
html {
  outline: 1px auto;
}
</style>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="target"></div>
<div id="log"></div>
<script>
test(() => {
  document.body.offsetTop;
  target.style.width = '100px';
  document.body.offsetTop;
}, "Pass if no crash");
</script>