Skip to content

layout: Fixes for the percentage height quirk - #64322

Merged
servo-wpt-sync merged 1 commit into
web-platform-tests:masterfrom
servo:servo_export_49366
Nov 4, 2026
Merged

servo-wpt-sync merged 1 commit into
web-platform-tests:masterfrom
servo:servo_export_49366

Conversation

@servo-wpt-sync

@servo-wpt-sync servo-wpt-sync commented Oct 28, 2026 •

Copy link
Copy Markdown
Collaborator

This implements 4 changes:

Testing: 2 existing tests improve, also adding new tests
Fixes: #49025
Reviewed in servo/servo#49366

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

Copy link
Copy Markdown
Collaborator

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 Servo project.

@servo-wpt-sync
servo-wpt-sync force-pushed the servo_export_49366 branch 2 times, most recently from fb00902 to 414017a Compare November 4, 2026 01:02
This implements 4 changes:
- Restricts the quirk to elements that have a percentage in `height`.
  E.g. `100%` won't be quirky in `height: auto; min-height: 100%`, but
  it will in `height: 0%; min-height: 100%`. This matches the spec and
  Gecko, though Blink and WebKit only enforce it on replaced elements.
- More concretely, it requires a `<percentage>`, as opposed to a
  `<length-percentage>` containing a percentage. E.g. `calc(100% + 1px)`
  won't be quirky, but `100%`, `calc(100%)` and `calc(100% + 0px)` will.
  This matches the spec and Gecko, but not Blink and WebKit.
- Restricts the quirk to percentage resolution. E.g. `height: stretch`
  won't be quirky. This matches Blink, the spec is unclear.
- Restricts the quirk to sizing purposes. E.g. `top: 100%` won't be
  quirky. This matches the spec, Blink and WebKit, but not Gecko.

Signed-off-by: Oriol Brufau <[email protected]>
@servo-wpt-sync
servo-wpt-sync merged commit 038e75e into web-platform-tests:master Nov 4, 2026
30 checks passed
@servo-wpt-sync
servo-wpt-sync deleted the servo_export_49366 branch November 4, 2026 04:16
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.

4 participants