Re: [css-houdini-drafts] [css-typed-om] Math functions that correspond css math functions declared in css-values-4 (#1090)

I assume they are missing from Typed OM because they are serialized as numeric values. E.g. if you have `transform: rotate(atan(1));`, the `atan(1)` is serialized as CSSUnitValue with `{value: 45, unit: 'deg'}`.

Though for value creation it might make sense to add specific interfaces for the different mathematical functions. So the example from above could be created via a `new CSSMathAtan(1)`.

But I'm just speculating. Maybe @tabatkins or @FremyCompany can shed some light on why the different math functions currently don't have their own interfaces in Typed OM.

Sebastian

-- 
GitHub Notification of comment by SebastianZ
Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/1090#issuecomment-1502247679 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 10 April 2023 20:00:44 UTC