Skip to content

layout: Add experimental aspect-ratio support for non-replaced boxes - #65087

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

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

Conversation

@servo-wpt-sync

@servo-wpt-sync servo-wpt-sync commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

Query and usage of preferred_aspect_ratio() on non-replaced boxes (Flow, Flex, Grid).

This is gated behind the experimental layout_css_aspect_ratio_enabled preference, since following not implemented

  • Automatic content-based minimum sizes
  • Inline size constraints derived from block axis.
  • Float/atomic inlines
  • Update tentative_block_size for in flow boxes.
  • absolute positioned box

Aspect-ratio on table boxes themselves is left unsupported due to unclear spec w3c/csswg-drafts#11419.

Testing: New passing. Rest failures are due to above limitations.
Fixes: Part of servo/servo#32802

Reviewed in servo/servo#47980

@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_47980 branch 3 times, most recently from 71d5960 to e7eaccb Compare November 17, 2026 16:48
@servo-wpt-sync
servo-wpt-sync merged commit 3c7befc into web-platform-tests:master Nov 24, 2026
27 checks passed
@servo-wpt-sync
servo-wpt-sync deleted the servo_export_47980 branch November 24, 2026 12:34
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