Skip to content

Handle min/max sizes in non-replaced positioned boxes - #39488

Merged
servo-wpt-sync merged 1 commit into
web-platform-tests:masterfrom
servo-wpt-sync:servo_export_29594
Apr 12, 2023
Merged

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

Conversation

@servo-wpt-sync

Copy link
Copy Markdown
Collaborator

This patch makes HoistedAbsolutelyPositionedBox handle min/max sizes in the non-replaced case, per CSS2 #min-max-widths and #min-max-heights. No changes are made to the replaced case.

3 new tests:

  • /css/CSS2/positioning/absolute-non-replaced-max-001.html (fails under layout 2013)
  • /css/CSS2/positioning/absolute-non-replaced-min-001.html (fails under layout 2013)
  • /css/CSS2/positioning/absolute-non-replaced-min-max-001.html (passes under layout 2013)

13 tests now pass:

11 tests would now pass if <br> was inserted between the two <img> tags in the reference (#29591):

1 test continues to fail, but the expectation was out of date:

Reviewed in servo/servo#29594

@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 merged commit dca730d into web-platform-tests:master Apr 12, 2023
@servo-wpt-sync
servo-wpt-sync deleted the servo_export_29594 branch April 12, 2023 10:28
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.

3 participants