Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="author" title="Brandon Stewart" href="mailto:brandonstewart@apple.com">
<meta name="assert" content="Ensure text does not overflow upon re-layout of grid">
</head>
<style>
.grid {
display: grid;
grid-template-columns: minmax(min-content, 100px) auto;
}
.nested_grid {
border: 5px solid;
display: grid;
justify-items: baseline;
overflow-wrap: break-word;
}
</style>
<body>
<div class=grid>
<div class=nested_grid><p>This content will overflow.</p></div>
</div>
</body>
</html>