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
Bikeshed automatically converts minus signs made with hyphens (U+002D) that appear in ranges to mathematical minus sign (U+2212) characters and I'm wondering whether that's really intended.
That is typically what happens with the value of font-style in CSS Fonts, the hyphen in the "angle" range becomes a mathematical minus sign in the generated spec. Before/After comparison:
<angle [-90deg,90deg]>
<angle [−90deg,90deg]>
One other similar occurrence for the definition of <grid-line> in CSS Grid. Both occurrences seem to have been created by recent changes, I'm not aware of other places in CSS specs that have ranges with negative numbers.
Using that minus sign character is not incorrect per se, it's just that CSS Values talks about the hyphen minus when it says "The first digit of an integer may be immediately preceded by - or + to indicate the integer’s sign" and CSS parsers that can also parse the value definition syntax typically fail to parse the U+2212 minus.
The text was updated successfully, but these errors were encountered:
I went ahead and did this for simplicity, since I happened to write code that serialized numbers with a hyphen-minus and didn't want to go out of my way to fix it back.
Bikeshed automatically converts minus signs made with hyphens (
U+002D
) that appear in ranges to mathematical minus sign (U+2212
) characters and I'm wondering whether that's really intended.That is typically what happens with the value of
font-style
in CSS Fonts, the hyphen in the "angle" range becomes a mathematical minus sign in the generated spec. Before/After comparison:One other similar occurrence for the definition of
<grid-line>
in CSS Grid. Both occurrences seem to have been created by recent changes, I'm not aware of other places in CSS specs that have ranges with negative numbers.Using that minus sign character is not incorrect per se, it's just that CSS Values talks about the hyphen minus when it says "The first digit of an integer may be immediately preceded by - or + to indicate the integer’s sign" and CSS parsers that can also parse the value definition syntax typically fail to parse the
U+2212
minus.The text was updated successfully, but these errors were encountered: