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
Note that with calc you would need something like calc(infinity * 1dppx) in order to get a <resolution>, and this won't be the same as infinite as noted in https://drafts.csswg.org/css-values-4/#calc-range
Even properties that can explicitly represent infinity as a keyword value, such as animation-iteration-count, will end up clamping ±∞, as math functions can’t resolve to keyword values; the numeric part of the property’s syntax still has a minimum/maximum value.
https://www.w3.org/TR/mediaqueries-4/#resolution
As far as I know this is currently the only current media description that has a range type while also accepting an
<ident>
value (infinite
).I am assuming that the syntactical ambiguity is ok because browsers would have lists of known media descriptors.
In
css-values
the numeric constantinfinity
is defined.Should this same constant be used here?
infinite
->infinity
In a range context this seems more intuitive :
Maybe this is a moot point since
infinity
is a numerical constant so should be allowed anyway withcalc
.The text was updated successfully, but these errors were encountered: