Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Gecko Bug 1312588] Part 2: Support fit-content() in style. #29272

Merged
merged 3 commits into from Jun 8, 2021

Conversation

moz-wptsync-bot
Copy link
Collaborator

Support fit-content for preferred size, min size, and max size. This
patch only implement the style system. For layout part, we will do that
in the following patches.

Differential Revision: https://phabricator.services.mozilla.com/D107161

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1312588
gecko-commit: 160fb67fad9f4e36cc0d66e42e3aa3ac0fbc6d81
gecko-reviewers: emilio

Support fit-content for preferred size, min size, and max size. This
patch only implement the style system. For layout part, we will do that
in the following patches.

Differential Revision: https://phabricator.services.mozilla.com/D107161

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1312588
gecko-commit: 160fb67fad9f4e36cc0d66e42e3aa3ac0fbc6d81
gecko-reviewers: emilio
…sic contribution.

This implements fit-content() for basic layout support. For intrinsic
contribution, we will do that in the following patches.

Differential Revision: https://phabricator.services.mozilla.com/D111506

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1312588
gecko-commit: c5389bf6f5093317e713e04fcf41ec7967b944df
gecko-reviewers: emilio
We simplified to just rely on the behavior of the plain argument. That is,
width: fit-content(50%) behaves the same as width: 50%; in all circumstances,
just clamped by min/max-content.

Note: for block axis, we treat fit-content() as initial value its minimal
and maximal value are identical and equal to the initial value in block axis.

From: w3c/csswg-drafts#3731 (comment)

Note: this patch doesn't include any update on flex and grid layout. We
may have to come back to check it.

Differential Revision: https://phabricator.services.mozilla.com/D113199

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1312588
gecko-commit: 41792e6152e6b5e8ad472e6cc21ce07352447bb8
gecko-reviewers: TYLin, emilio
Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Firefox project.

@moz-wptsync-bot moz-wptsync-bot merged commit 1c4ecac into master Jun 8, 2021
@moz-wptsync-bot moz-wptsync-bot deleted the gecko/1312588 branch June 8, 2021 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants