Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For abspos frames, resolve intrinsic BSize keywords to the actual int…
…rinsic BSize, instead of stretching to fill the available space This patch creates a new behavior for absolute positioned frames such that if they have intrinsic size keywords (-moz-fit-content, min-content, max-content) for their BSize and the margins are auto, instead of taking as much space as possible, use the actual intrinsic BSize as the BSize. Users can still use `auto` keyword to make it to fill the available space. This change is to align with the spec text for these intrinsic sizing keywords at https://drafts.csswg.org/css-sizing/#valdef-width-min-content, per the changes resolved on in w3c/csswg-drafts#3973 This patch modifies the centering.html WPT, to expand the test cases to test the centering functionalities for not only explicitly specified height and width, but also the default size and width, in this case the intrinsic sizing keywords. Differential Revision: https://phabricator.services.mozilla.com/D106497 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1669734 gecko-commit: 8083eaa5d4326cc497a114d819a2644da41a9360 gecko-reviewers: emilio, dholbert
- Loading branch information
1 parent
d2fb7f3
commit 765c706
Showing
2 changed files
with
54 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters