Automatic update from web-platform-tests WebKit export of https://bugs.webkit.org/show_bug.cgi?id=317983 (#61175) -- wpt-commits: eae0e01096bd41a6f4f0aecbf6aae14dd8d8a208 wpt-pr: 61175
25 lines
712 B
HTML
25 lines
712 B
HTML
<!DOCTYPE html>
|
|
<meta charset="utf-8">
|
|
<title>CSS Grid Layout Reference: calc() margin on a grid item with explicit row placement</title>
|
|
<link rel="author" title="Sammy Gill" href="mailto:sammy.gill@apple.com">
|
|
<!-- Same layout achieved with a resolved fixed margin instead of calc(). -->
|
|
<style>
|
|
#grid {
|
|
display: grid;
|
|
background: grey;
|
|
grid-template-columns: 200px;
|
|
grid-template-rows: 100px;
|
|
}
|
|
#item {
|
|
grid-row: 1 / 2;
|
|
width: 50px;
|
|
height: 50px;
|
|
margin-left: 70px;
|
|
background: green;
|
|
}
|
|
</style>
|
|
<p>The test passes if the left edge of the green box is 70px from the left edge of the grey grid.</p>
|
|
<div id="grid">
|
|
<div id="item"></div>
|
|
</div>
|