Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!DOCTYPE html>
<meta charset="utf-8">
<p>Test passes if there are two green squares forming a stair-step: the left square
is lower than the right square.</p>

<div style="position: relative; width: 100px; height: 100px;">
<div style="position: absolute; top: 20px; left: 0; width: 50px; height: 50px; background: green;"></div>
<div style="position: absolute; top: 0; left: 50px; width: 50px; height: 50px; background: green;"></div>
</div>
17 changes: 17 additions & 0 deletions css/css-grid/alignment/grid-align-baseline-explicit-placement.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="help" href="https://drafts.csswg.org/css-align/#baseline-values">
<link rel="help" href="https://drafts.csswg.org/css-grid-1/#alignment">
<link rel="match" href="grid-align-baseline-explicit-placement-ref.html">
<meta name="assert" content="A baseline-aligned grid item is shifted to align its baseline even when it has explicit grid placement and a fixed size.">
<p>Test passes if there are two green squares forming a stair-step: the left square
is lower than the right square.</p>

<div style="display: grid; grid-template-columns: 50px 50px; grid-template-rows: 100px; align-items: baseline; line-height: 0; width: 100px;">
<div style="grid-row: 1 / 2; grid-column: 1 / 2; height: 50px; background: green;">
<span style="display: inline-block; height: 40px;"></span>
</div>
<div style="grid-row: 1 / 2; grid-column: 2 / 3; height: 50px; background: green;">
<span style="display: inline-block; height: 60px;"></span>
</div>
</div>
Loading