Skip to content

arbitrary: normalize calc operators in [property:value]#176

Open
samoht wants to merge 1 commit into
mainfrom
arbitrary-prop-calc
Open

arbitrary: normalize calc operators in [property:value]#176
samoht wants to merge 1 commit into
mainfrom
arbitrary-prop-calc

Conversation

@samoht

@samoht samoht commented Jul 26, 2026

Copy link
Copy Markdown
Owner

An arbitrary property whose value omits the whitespace CSS math requires around binary +/- (e.g. [margin:calc(100%-10px)], [width:calc(var(--a)-var(--b))]) was rejected, because only the arbitrary utility form (m-[calc(...)]) ran normalize_css_math_operators. The [property:value] form now runs it at both the parse guard and the render, so [margin:calc(100%-10px)] emits margin: calc(100% - 10px).

An arbitrary property whose value omits the whitespace CSS math requires
around binary +/- (e.g. [margin:calc(100%-10px)]) was rejected: only the
arbitrary utility form (m-[calc(...)]) ran the normalization. Apply it to
the property form too, at both the parse guard and the render.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant