Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<head>
<title>contain: strict element with subgrid properties</title>
<link rel="author" title="Mozilla" href="https://mozilla.org">
</head>
<style>
#gridcontainer {
display: grid;
contain: strict;
}
.item {
display: grid;
grid: subgrid [x] / subgrid [x];
}
</style>
<div id="gridcontainer">
<div class="item">Text1</div>
</div>