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
There is an abspos with top: 0; bottom: 0. By default it stretches to fill the containing block, and this block size is used to compute its inline min/max-content sizes thru the aspect ratio of its contents.
However, what happens if the abspos gets height: max-content? At this point the block min/max-content sizes are undefined, since they depend on the inline size. So what to do?
Treat height: max-content as indefinite. Then contents can't resolve their percentage. This is what Firefox and Chrome do.
Treat height: max-content as height: auto. Then it stretches, and since the stretch size is definite, contents can resolve their percentage. This is what WebKit does.
Servo is currently like WebKit, but I think I prefer Blink's behavior.
See the testcase below.
There is an abspos with
top: 0; bottom: 0
. By default it stretches to fill the containing block, and this block size is used to compute its inline min/max-content sizes thru the aspect ratio of its contents.However, what happens if the abspos gets
height: max-content
? At this point the block min/max-content sizes are undefined, since they depend on the inline size. So what to do?height: max-content
as indefinite. Then contents can't resolve their percentage. This is what Firefox and Chrome do.height: max-content
asheight: auto
. Then it stretches, and since the stretch size is definite, contents can resolve their percentage. This is what WebKit does.Servo is currently like WebKit, but I think I prefer Blink's behavior.
The text was updated successfully, but these errors were encountered: