Re: [csswg-drafts] [css-position] Ability to set a positioned element's containing block to another element (#5952)

Would it help if one box, _foo_, could declare itself a named anchor, _foobar_, at its live position relative to the viewport with its box-sizing edges and another box, _bar_, could reference these edges in its positioning properties?

~~~~ css
foo {
  anchor: "foobar";
}
bar {
  position: absolute;
  top: bottom("foobar");
  left: calc(left("foobar")-10px);
}
~~~~

-- 
GitHub Notification of comment by Crissov
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5952#issuecomment-776300734 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 9 February 2021 22:59:10 UTC