2015-04-30 21:42:50 +03:00
|
|
|
<!DOCTYPE HTML>
|
|
|
|
<!--
|
|
|
|
Any copyright is dedicated to the Public Domain.
|
|
|
|
http://creativecommons.org/publicdomain/zero/1.0/
|
|
|
|
-->
|
|
|
|
<html><head>
|
|
|
|
<title>CSS Test: Testing placement of abs.pos. grid items in negative implicit grid</title>
|
|
|
|
<link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1107783">
|
|
|
|
<link rel="help" href="http://dev.w3.org/csswg/css-grid/#abspos-items">
|
|
|
|
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<style type="text/css">
|
|
|
|
body,html { color:black; background:white; font-size:16px; padding:0; margin:0; }
|
|
|
|
|
|
|
|
.grid {
|
|
|
|
/*display: grid;*/
|
|
|
|
position: relative;
|
2015-08-25 16:40:10 +03:00
|
|
|
border: 1px solid;
|
2015-04-30 21:42:50 +03:00
|
|
|
grid-auto-flow: row;
|
|
|
|
grid-auto-columns: 23px;
|
2015-08-25 16:40:10 +03:00
|
|
|
grid-auto-rows: 7px;
|
|
|
|
padding: 1px 7px 3px 13px;
|
2015-04-30 21:42:50 +03:00
|
|
|
width: 200px;
|
2015-08-25 16:40:10 +03:00
|
|
|
height: 60px;
|
2015-04-30 21:42:50 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.a {
|
|
|
|
position: absolute;
|
2015-08-25 16:40:10 +03:00
|
|
|
left: 59px; top: 22px;
|
|
|
|
height: 12px; width: 44px;
|
2015-04-30 21:42:50 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.abs {
|
|
|
|
position: absolute;
|
|
|
|
opacity: 0.7;
|
|
|
|
width: 21px;
|
2015-08-25 16:40:10 +03:00
|
|
|
height: 5px;
|
2015-04-30 21:42:50 +03:00
|
|
|
}
|
|
|
|
.b {
|
2015-08-25 16:40:10 +03:00
|
|
|
left: 1px; top: 3px; bottom: 1px;
|
|
|
|
width: 74px; height: auto;
|
2015-04-30 21:42:50 +03:00
|
|
|
}
|
|
|
|
.c {
|
2015-08-25 16:40:10 +03:00
|
|
|
left: 1px; top: 3px;
|
|
|
|
width: 51px; height: 2px;
|
2015-04-30 21:42:50 +03:00
|
|
|
}
|
|
|
|
.d {
|
2016-01-15 01:11:44 +03:00
|
|
|
left: 1px; top: 5px;
|
|
|
|
width: 212px; height: 7px;
|
2015-04-30 21:42:50 +03:00
|
|
|
}
|
|
|
|
.e {
|
|
|
|
right: 5px; bottom: 1px;
|
2015-08-25 16:40:10 +03:00
|
|
|
width: 212px; height: 58px;
|
2015-04-30 21:42:50 +03:00
|
|
|
}
|
|
|
|
.f {
|
2015-08-25 16:40:10 +03:00
|
|
|
right: 5px; bottom: 1px;
|
|
|
|
width: 212px; height: 58px;
|
2015-04-30 21:42:50 +03:00
|
|
|
}
|
|
|
|
span {
|
|
|
|
background: lime;
|
|
|
|
border: 1px solid;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<div class="grid">
|
2015-08-25 16:40:10 +03:00
|
|
|
<span class="a"></span>
|
2015-04-30 21:42:50 +03:00
|
|
|
<span class="b abs">b</span>
|
2015-08-25 16:40:10 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="grid">
|
|
|
|
<span class="a"></span>
|
2015-04-30 21:42:50 +03:00
|
|
|
<span class="c abs">c</span>
|
2015-08-25 16:40:10 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="grid">
|
|
|
|
<span class="a"></span>
|
2015-04-30 21:42:50 +03:00
|
|
|
<span class="d abs">d</span>
|
2015-08-25 16:40:10 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="grid">
|
|
|
|
<span class="a"></span>
|
2015-04-30 21:42:50 +03:00
|
|
|
<span class="e abs">e</span>
|
2015-08-25 16:40:10 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="grid">
|
|
|
|
<span class="a"></span>
|
2015-04-30 21:42:50 +03:00
|
|
|
<span class="f abs">f</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="grid">
|
2015-08-25 16:40:10 +03:00
|
|
|
<span class="b abs" style="width:212px">b</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="grid">
|
2015-04-30 21:42:50 +03:00
|
|
|
<span class="c abs">c</span>
|
2015-08-25 16:40:10 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="grid">
|
2016-04-28 22:21:20 +03:00
|
|
|
<span class="d abs" style="height:56px;"></span>
|
2015-08-25 16:40:10 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="grid">
|
2015-04-30 21:42:50 +03:00
|
|
|
<span class="e abs">e</span>
|
2015-08-25 16:40:10 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="grid">
|
2015-04-30 21:42:50 +03:00
|
|
|
<span class="f abs">f</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|