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-baseline-alignment-affects-intrinsic-size-004.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Grid Lanes Test: evaluate how baseline alignment with multi-span items affects intrinsic track sizes</title>
<link rel="author" title="Yanling Wang" href="mailto:yanlingwang@microsoft.com">
<link rel="match" href="grid-lanes-baseline-alignment-affects-intrinsic-size-004-ref.html">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style>
.grid-lanes {
display: grid-lanes;
width: 200px;
margin-bottom: 20px;
align-items: baseline;
background: lightgray;
font-family: Ahem;
line-height: 1;
}
</style>
</head>
<body>
<div class="grid-lanes" style="grid-template-rows: minmax(0px, auto) minmax(0px, auto);">
<div style="font-size: 20px; padding-bottom: 40px; width: 50px; background: lightblue; grid-row: 1;">É</div>
<div style="font-size: 20px; padding-top: 50px; width: 50px; background: lightgreen; grid-row: 1 / span 2;">É</div>
</div>
<div class="grid-lanes" style="grid-template-rows: minmax(0px, auto) minmax(0px, auto);">
<div style="font-size: 20px; padding-top: 20px; width: 50px; background: coral; grid-row: 1 / span 2;">É</div>
<div style="font-size: 30px; width: 50px; background: plum; grid-row: 1 / span 2;">É</div>
</div>
<div class="grid-lanes" style="grid-template-rows: minmax(0px, auto) minmax(0px, auto);">
<div style="font-size: 20px; padding-bottom: 30px; width: 50px; background: lightsalmon; grid-row: 1;">É</div>
<div style="font-size: 20px; padding-top: 40px; width: 50px; background: palegreen; grid-row: 1 / span 2;">É</div>
</div>
<div class="grid-lanes" style="grid-template-rows: minmax(0px, auto) minmax(0px, auto);">
<div style="font-size: 20px; padding-bottom: 30px; width: 50px; background: gold; grid-row: 1;">É</div>
<div style="font-size: 20px; padding-top: 40px; width: 50px; background: lavender; grid-row: 1 / span 2;">É</div>
<div style="font-size: 30px; padding-bottom: 10px; width: 50px; background: lightcyan; grid-row: 1;">É</div>
</div>
</body>
</html>