forked from kdashg/gecko-cinn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1857025 [wpt PR 42340] - WebKit export of https://bugs.webkit.org…
…/show_bug.cgi?id=262336, a=testonly Automatic update from web-platform-tests WebKit export of https://bugs.webkit.org/show_bug.cgi?id=262336 (#42340) -- wpt-commits: 507f74f14524f1719efdc92f9723e78898119234 wpt-pr: 42340
- Loading branch information
1 parent
56b9b68
commit b270a43
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
testing/web-platform/tests/css/css-grid/subgrid/align-self-baseline-with-subgrid-mbp.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<link rel="author" title="Sammy Gill" href="mailto:[email protected]"> | ||
<meta name="assert" content="Margin, border, and padding of subgrids should influence the offset of items in the same baseline alignment context"> | ||
<link rel="help" href="https://drafts.csswg.org/css-grid-2/#subgrid-item-contribution"> | ||
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="/resources/check-layout-th.js"></script> | ||
<style> | ||
html,body { | ||
color:black; background-color:white; padding:0; margin:0; | ||
} | ||
.grid { | ||
font:16px/1 Ahem; | ||
display: inline-grid; | ||
border: 1px solid black; | ||
grid-template-columns: auto auto; | ||
} | ||
.subgrid { | ||
display: grid; | ||
grid-template-rows: subgrid; | ||
border: 9px solid blue; | ||
margin-top: 15px; | ||
padding-top: 6px; | ||
} | ||
.first-baseline { | ||
align-self: baseline; | ||
} | ||
</style> | ||
</head> | ||
<body onload="checkLayout('.first-baseline')"> | ||
<div id="target" class="grid"> | ||
<div data-offset-y="31" class="first-baseline">X</div> | ||
<div class="subgrid"> | ||
<div data-offset-y="31" class="first-baseline">X</div> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |