Skip to content
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

Enable overflow:clip for Servo #111

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

Conversation

longvatrong111
Copy link

@longvatrong111 longvatrong111 commented Jan 17, 2025

This PR help overflow : clip implementation in Servo

  • Enable overflow : clip for Servo
  • Add border-box value for overflow-clip-margin

Servo PR: servo/servo#35103

cc: @xiaochengh

@nicoburns nicoburns added the enhancement New feature or request label Jan 17, 2025
@longvatrong111 longvatrong111 changed the title Draft: Enable overflow:clip for Servo Enable overflow:clip for Servo Jan 21, 2025
BorderBox,
}

impl Parse for OverflowClipBox {

Choose a reason for hiding this comment

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

I assume such trivial keyword parsers are auto-generated and we don't need a manual implementation here. Could you verify?

Copy link
Author

Choose a reason for hiding this comment

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

Yes, I wanted to make it explicit.
But I've just realized this is not necessary for overflow : clip. Should implement parse for overflow-clip-margin instead

@@ -134,7 +134,7 @@ ${helpers.predefined_type(

${helpers.single_keyword(
"-servo-overflow-clip-box",
"padding-box content-box",
"padding-box content-box border-box",
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't see the point in having both -servo-overflow-clip-box and overflow-clip-box.
The former was implemented for legacy in servo/servo#9875 but later removed in servo/servo#16336.
So I would just remove -servo-overflow-clip-box in favor of the standard properties.

Copy link
Author

Choose a reason for hiding this comment

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

I see. And it's not necessary for overflow:clip too. Will remove it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants