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

Closed
wants to merge 1 commit into from

Conversation

longvatrong111
Copy link

@longvatrong111 longvatrong111 commented Jan 17, 2025

This PR help overflow : clip implementation in Servo

  • Enable overflow : clip for Servo
  • Implement overflow-clip-margin

Test case:

  • /css/css-overflow/parsing/overflow-clip-margin.html
  • /css/css-overflow/parsing/overflow-clip-margin-computed.html

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
@longvatrong111 longvatrong111 force-pushed the overflow-clip branch 2 times, most recently from 301da4f to 607ef34 Compare January 25, 2025 05:46
"computed::Length::zero()",
parse_method="parse_non_negative",
engines="gecko",
"OverflowClipMargin",
Copy link
Contributor

Choose a reason for hiding this comment

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

I would keep this as a length for now.
If afterwards you want to generalize it, it would be better to do it upstream in Firefox, and then I will sync it into here.
We are trying to minimize the difference with upstream, because otherwise syncing is very tedious.

Copy link
Author

Choose a reason for hiding this comment

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

Can you check #114?
I'll comeback with visual-box for overflow-clip-margin later.

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