Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Grid Lanes Test: baseline alignment with multi-span items and negative margins affects intrinsic track sizes</title>
<link rel="author" title="Yanling Wang" href="mailto:yanlingwang@microsoft.com">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style>
body {
margin-top: 100px;
padding: 0;
}
.grid-lanes {
display: grid-lanes;
width: 300px;
align-items: baseline;
background: lightgray;
font-family: Ahem;
line-height: 1;
}
</style>
<div class="grid-lanes" style="grid-template-rows: minmax(0px, auto) minmax(0px, auto);">
<div style="font-size: 20px; padding-top: 40px; width: 60px; background: plum; grid-row: 1/3; margin-top: -50px;">É</div>
<div style="font-size: 20px; width: 60px; background: lightblue; grid-row: 1;">É</div>
<div style="font-size: 20px; width: 60px; background: lightgreen; grid-row: 2;">É</div>
</div>
</body>
</html>