Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE HTML>
<!--
Any copyright is dedicated to the Public Domain.
-->
<html><head>
<meta charset="utf-8">
<title>Reference: subgrid disabled if grid item establishes independent formatting context</title>
<style>
html,body {
font:16px/1 monospace; padding:0; margin:0; line-height: 0;
}
.grid {
display: inline-block;
background-color: green;
width: 100px;
height: 100px;
margin-right: 20px;
}
</style>
</head>
<body>
<div class="grid">
</div>
<div class="grid">
</div>
<div class="grid">
</div>
<div class="grid">
</div>
<div class="grid">
</div>
<div class="grid">
</div>
<div class="grid">
</div>
<div class="grid">
</div>
</body>
</html>