-
Notifications
You must be signed in to change notification settings - Fork 1.7k
canonical serialization returns 0.5 instead of calc(0.5) #48505
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
canonical serialization returns 0.5 instead of calc(0.5) #48505
Conversation
|
EWS run on previous version of this PR (hash 8af5245) |
|
EWS run on previous version of this PR (hash 9efd822)
|
9efd822 to
7d98771
Compare
|
EWS run on previous version of this PR (hash 7d98771) |
7d98771 to
63bda84
Compare
|
EWS run on current version of this PR (hash 63bda84) |
|
EWS run on previous version of this PR (hash 63bda84)
|
https://bugs.webkit.org/show_bug.cgi?id=294363 rdar://153784390 Reviewed by NOBODY (OOPS!). There was a work around dealing with the opacity serialization quirk. The work around incorrectly serialized the value, so this fixes it. * Source/WebCore/css/StyleProperties.cpp: (WebCore::serializeLonghandValue):
63bda84 to
8dd3b24
Compare
|
EWS run on current version of this PR (hash 8dd3b24) |
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.
lgtm
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.
we may need to think about this more...
as per the spec:
If the calculation tree’s root node is a numeric value, or a calc-operator node, let s be a string initially containing "calc(". Otherwise, let s be a string initially containing the name of the root node, lowercased (such as "sin" or "max"), followed by a "(" (open parenthesis).
this is how i'm interpreting this as...
50% + 10% should be serialized as calc(
clamp(50%, 0%, 70%) should be serialized as clamp(
looks like /css/calc/CSSCalcTree+Serialization.cpp has the machinery but i'm not sure if it's ready to be used yet?
cc @weinig
|
Will be covered - #48752 |
🛠 ios
8dd3b24
8dd3b24
🛠 playstation