Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-grid/grid-lanes/tentative/intrinsic-sizing/grid-lanes-contain-intrinsic-size-001.html - WPT Dashboard Interop Dashboard
<!doctype html>
<meta charset="utf8">
<title>CSS contain-intrinsic-size: unsized div</title>
<link rel="author" title="Celeste Pan" href="mailto:celestepan@microsoft.com">
<link rel="match" href="../../../../css-sizing/contain-intrinsic-size/contain-intrinsic-size-001-ref.html">
<meta name="assert" content="contain-intrinsic-size is used to size the div as if it had a single child of this size">
<style>
#target {
display: grid-lanes;
background: lightblue;
contain-intrinsic-size: 111px 222px;
contain: size;
}
</style>
<div id=target></div>