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
Currently there are a lot of places where authors end up having a <number> instead of an <integer> without realizing, then are puzzled why their code doesn't work.
Same issues with counter-reset, z-index and the list goes on.
In fact, clever authors have even come up with terrible hacks for working around this by assigning the number to a registered <integer> property and taking advantage of that implicit conversion. Sure, once floor() and friends are supported this would be much simpler, but IMO authors should not even have to think about this. A 5 is a 5, whether it was generated as 4 + 1 or as 15 / 3. Since <number> cannot be disambiguated from <integer>, I doubt we have any syntax that depends on them being incompatible.
Proposal: accept <number> anywhere an <integer> is accepted, after flooring (or rounding, no strong opinion).
The text was updated successfully, but these errors were encountered:
Currently there are a lot of places where authors end up having a
<number>
instead of an<integer>
without realizing, then are puzzled why their code doesn't work.For example:
Same issues with
counter-reset
,z-index
and the list goes on.In fact, clever authors have even come up with terrible hacks for working around this by assigning the number to a registered
<integer>
property and taking advantage of that implicit conversion. Sure, oncefloor()
and friends are supported this would be much simpler, but IMO authors should not even have to think about this. A5
is a5
, whether it was generated as4 + 1
or as15 / 3
. Since<number>
cannot be disambiguated from<integer>
, I doubt we have any syntax that depends on them being incompatible.Proposal: accept
<number>
anywhere an<integer>
is accepted, after flooring (or rounding, no strong opinion).The text was updated successfully, but these errors were encountered: