Skip to content

layout: Account for percentage quirk during intrinsic sizing - #48978

Merged
mrobinson merged 1 commit into
servo:mainfrom
Loirooriol:percentage-height-quirk-intrinsic
Oct 23, 2026
Merged

mrobinson merged 1 commit into
servo:mainfrom
Loirooriol:percentage-height-quirk-intrinsic

Conversation

@Loirooriol

Copy link
Copy Markdown
Contributor

Intrinsic inline sizes can depend on block sizes due to aspect ratios. Therefore, if the quirk causes a percentage in the block axis to resolve against an unusual ancestor, we need to take this effect into account when computing the intrinsic inline sizes.

Testing: 5 tests pass now
Fixes: #48976

Intrinsic inline sizes can depend on block sizes due to aspect ratios.
Therefore, if the quirk causes a percentage in the block axis to resolve
against an unusual ancestor, we need to take this effect into account
when computing the intrinsic inline sizes.

Signed-off-by: Oriol Brufau <[email protected]>
@Loirooriol
Loirooriol requested a review from mrobinson as a code owner October 17, 2026 02:15
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Oct 17, 2026
@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Oct 23, 2026
@mrobinson
mrobinson added this pull request to the merge queue Oct 23, 2026
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Oct 23, 2026
Merged via the queue into servo:main with commit 0b21daa Oct 23, 2026
38 checks passed
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Oct 23, 2026
opensource-fork-sync Bot pushed a commit to cla7aye15I4nd/opensource-servo__servo that referenced this pull request Oct 27, 2026
…servo#49211)

In servo#48978 I forgot that the percentage quirk allows skipping
inline-block and floating ancestors.

Testing: Adding 2 new tests
Fixes: servo#49210

Signed-off-by: Oriol Brufau <[email protected]>
@Loirooriol Loirooriol mentioned this pull request Nov 5, 2026
5 of 7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrong intrinsic size with percentage quirk

3 participants