Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When computing inline intrinsic sizes, resolve with a 0 percentage ba…
…sis rather than just resolving to zero if there's a percentage. This matches other browsers, the spec (https://drafts.csswg.org/css-sizing/#cyclic-percentage-contribution): For the min size properties, as well as for margins and paddings (and gutters), a cyclic percentage is resolved against zero for determining intrinsic size contributions. And also what we do in SizeComputationInput::Compute{Margin,Padding}: https://searchfox.org/mozilla-central/rev/75e9d727ce5ba2c14653cf8fb0f1367f085271b7/layout/generic/ReflowInput.cpp#2811-2832 https://searchfox.org/mozilla-central/rev/75e9d727ce5ba2c14653cf8fb0f1367f085271b7/layout/generic/ReflowInput.cpp#2861-2868 This fixes a compat issue with the menu alignment in lume.io: webcompat/web-bugs#88484 (comment) It's also simpler. Differential Revision: https://phabricator.services.mozilla.com/D127441 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1733952 gecko-commit: 1fd26f24025c3dcb4de967ee8bdc8a0ca9079e78 gecko-reviewers: jfkthame
- Loading branch information