Skip to content

layout: Clear the quirk flag for definite aspect-ratio block sizes - #50271

Merged
yezhizhen merged 4 commits into
servo:mainfrom
yezhizhen:override-quirk
Nov 28, 2026
Merged

yezhizhen merged 4 commits into
servo:mainfrom
yezhizhen:override-quirk

Conversation

@yezhizhen

@yezhizhen yezhizhen commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Testing:

Fixes: Part of #32802

@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Nov 27, 2026
Signed-off-by: Euclid Ye <[email protected]>
Comment thread components/layout/flow/mod.rs Outdated
Comment on lines 1922 to 1924
// TODO: Should we override `has_quirky_block_size` mode to false?
// It seems only Blink does, while WebKit doesn't.
// See https://github.com/servo/servo/pull/50247#issuecomment-7208906274

@yezhizhen yezhizhen Nov 27, 2026 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

/css/css-position/position-relative-aspect-ratio-002.html At least for position test, WebKit works fine in quirks mode. (No stretch involved)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Interesting, I guess they use different mechanisms to prevent the percentage quirk from affecting stretch sizes vs insets.

@servo-wpt-sync

This comment was marked as spam.

@servo-wpt-sync

This comment was marked as spam.

1 similar comment
@servo-wpt-sync

This comment was marked as spam.

Comment thread components/layout/flow/mod.rs Outdated
Comment on lines 1922 to 1924
// TODO: Should we override `has_quirky_block_size` mode to false?
// It seems only Blink does, while WebKit doesn't.
// See https://github.com/servo/servo/pull/50247#issuecomment-7208906274

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think it's fine to remove this comment and not mark the test as tentative.

If stretch works in standards mode, there is no reason for it to not work in quirks mode.

Comment thread components/layout/flow/mod.rs Outdated
Comment on lines 1922 to 1924
// TODO: Should we override `has_quirky_block_size` mode to false?
// It seems only Blink does, while WebKit doesn't.
// See https://github.com/servo/servo/pull/50247#issuecomment-7208906274

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Interesting, I guess they use different mechanisms to prevent the percentage quirk from affecting stretch sizes vs insets.

@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Nov 27, 2026
Signed-off-by: Euclid Ye <[email protected]>
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Nov 28, 2026
@yezhizhen
yezhizhen enabled auto-merge November 28, 2026 13:05
@servo-wpt-sync

Copy link
Copy Markdown
Collaborator

📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#65795).

@yezhizhen
yezhizhen added this pull request to the merge queue Nov 28, 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 Nov 28, 2026
Merged via the queue into servo:main with commit 26c7868 Nov 28, 2026
38 checks passed
@yezhizhen
yezhizhen deleted the override-quirk branch November 28, 2026 14:04
@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 Nov 28, 2026
devin-ai-integration Bot added a commit to baigojahanzaib/servo that referenced this pull request Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-awaiting-review There is new code that needs to be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants