Skip to content

Add overflow default property for replaced element #51873

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

servo-wpt-sync
Copy link
Collaborator

@servo-wpt-sync servo-wpt-sync commented Apr 7, 2025

Set default value for overflow property to replaced element. This is based on https://drafts.csswg.org/css-overflow-4/#overflow-control

We already implement the first half of the above spec previously.

Note that in chromium, author can change the overflow value of img, video, and canvas, but not for iframe, embed, and object. In Firefox, you cannot change the value for all above element.
https://jsfiddle.net/7m98gqsk/

There is also a possibility of handling this attribute somewhere in the rust code so that we do not have to change the UA stylesheet for every new replaced element. But for now, I just change the UA stylesheet just like mentioned in the spec.

Testing: this change does not change any result of the current test.
Fixes: #35950

Try: http://github.com/PotatoCP/servo/actions/runs/14303000315
cc: @xiaochengh @d-desiatkin

Reviewed in servo/servo#36303

Copy link
Collaborator

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

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_36303 branch 3 times, most recently from 9c895f3 to 0000d1e Compare April 8, 2025 03:40
Signed-off-by: Kenzie Raditya Tirtarahardja <[email protected]>
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.

2 participants