You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For an absolutely positioned box, the inset properties effectively reduce the containing block into which it is sized and positioned by the specified amounts.
I guess the "width and height are resolved against this definite available space" refer to an auto width/height. But as currently stated it's misleading.
@Loirooriol Thanks for catching this. I added a sentence to except percentages. (Didn't want to make the general rule specific to auto because it will also apply to the fit-content and stretch keywords.) Let me know if the edits look good.
From https://drafts.csswg.org/css-position/#abspos-insets
And https://drafts.csswg.org/css-position/#abspos-layout goes on with
But that's not actually the case. Percentages are resolved with respect to the original containing block size, not the inset-modified one. E.g.
results in a 100x100 square, not a 50x100 rectangle. https://software.hixie.ch/utilities/js/live-dom-viewer/saved/8114
The text was updated successfully, but these errors were encountered: