W3C home > Mailing lists > Public > public-css-archive@w3.org > June 2016

Re: [csswg-drafts] [css-grid] What happens with grid line names when dropping tracks

From: Mats Palmgren via GitHub <sysbot+gh@w3.org>
Date: Tue, 21 Jun 2016 22:34:19 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-227592686-1466548456-sysbot+gh@w3.org>
Well, I believe this change DO NOT lead to any  observable changes to 
the position of absolutely-positioned elements pinned to the edges of 
collapsed tracks (formerly dropped tracks).  Given the following 
example, the left edge of the "abs" and "2" boxes should still
be at the same position (100px from content start edge), right?

<style>
div {
  display: grid;
  position: relative;
  width: 500px;
  grid: 20px 20px / repeat(auto-fit, [a] 100px);
  border: 1px solid;
}

span {
  background: lime;
}
span:nth-of-type(2), .abs {
  grid-column: a 3;
}

.abs {
  position: absolute;
  top:0;bottom:0;left:0;right:0;
  grid-row: 2;
  background: pink;
}
</style>

<div>
  <span>1</span>
  <span>2</span>
  <span class="abs">abs</span>
</div>


-- 
GitHub Notification of comment by MatsPalmgren
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/172#issuecomment-227592686 
using your GitHub account
Received on Tuesday, 21 June 2016 22:34:25 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:40:59 UTC