You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if the title is the correct cause or way to phrase it. I'm submitting this based on this Q&A comment and @LeaVerou's response in the next comment.
This creates a valid Color instance using the right paren as an arg separator for color():
newColor("color(--lchuv 86.8% 42.9)230)")
For reference, this throws:
newColor("color(--lchuv 86.8% 42.9)")
Are !@#$%^&*[]{}(= legitimate separators? (that's not necessarily a complete list) You can chain as many of those as you like after a number and the coordinates are properly converted. For example, this works:
newColor("color(--lchuv 86.8{[]}(#!42.9 230)")
The text was updated successfully, but these errors were encountered:
sidewayss
changed the title
new Color() accepts serialized coordinates with invalid units
new Color() accepts serialized coordinates with right paren as separator
Dec 8, 2024
Not sure if the title is the correct cause or way to phrase it. I'm submitting this based on this Q&A comment and @LeaVerou's response in the next comment.
This creates a valid
Color
instance using the right paren as an arg separator forcolor()
:For reference, this throws:
Are
!@#$%^&*[]{}(=
legitimate separators? (that's not necessarily a complete list) You can chain as many of those as you like after a number and the coordinates are properly converted. For example, this works:The text was updated successfully, but these errors were encountered: