Skip to content

Conversation

@colelao
Copy link
Contributor

@colelao colelao commented Jul 25, 2025

@Ahmad-S792 Ahmad-S792 added the CSS Cascading Style Sheets implementation label Jul 25, 2025
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Jul 25, 2025
@webkit-early-warning-system
Copy link
Collaborator

Starting EWS tests for 9efd822. Live statuses available at the PR page, #48505

@colelao colelao force-pushed the eng/canonical-serialization-returns-0-5-instead-of-calc-0-5 branch from 9efd822 to 7d98771 Compare July 28, 2025 17:28
@webkit-early-warning-system
Copy link
Collaborator

Starting EWS tests for 7d98771. Live statuses available at the PR page, #48505

@colelao colelao force-pushed the eng/canonical-serialization-returns-0-5-instead-of-calc-0-5 branch from 7d98771 to 63bda84 Compare July 28, 2025 21:20
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):
@colelao colelao force-pushed the eng/canonical-serialization-returns-0-5-instead-of-calc-0-5 branch from 63bda84 to 8dd3b24 Compare July 28, 2025 21:22
@webkit-early-warning-system
Copy link
Collaborator

Starting EWS tests for 8dd3b24. Live statuses available at the PR page, #48505

@colelao colelao requested a review from nullhook July 28, 2025 23:59
Copy link
Contributor

@nullhook nullhook left a comment

Choose a reason for hiding this comment

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

lgtm

@nullhook nullhook self-requested a review July 29, 2025 19:15
Copy link
Contributor

@nullhook nullhook left a 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

@Ahmad-S792
Copy link
Contributor

Will be covered - #48752

@colelao colelao closed this Jul 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CSS Cascading Style Sheets implementation merging-blocked Applied to prevent a change from being merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants