-
Notifications
You must be signed in to change notification settings - Fork 22
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
base: main
Are you sure you want to change the base?
Conversation
860618a
to
f54c445
Compare
BorderBox, | ||
} | ||
|
||
impl Parse for OverflowClipBox { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
This PR help
overflow : clip
implementation in Servooverflow : clip
for Servoborder-box
value foroverflow-clip-margin
Servo PR: servo/servo#35103
cc: @xiaochengh