3 ms·
But 0 is 0 in every unit, and because of that units aren't required for 0 anywhere else.
by Izkata 4y ago
But 0 is 0 in every unit, and because of that units aren't required for 0 anywhere else.
- bilekas 4y agoIn this case though you're adding a 'special' condition for the parser/processor. Of course you could do it but as per the spec its not required - I'm just looking up the schema now to find the reference. Example is you can * no problem, its expecting only a number for the 'read_next' but with the `-' it's expecting a denomination, otherwise it needs to keep a 'state' as such when moving on from reading a `0` Edit : as pointed out by zarzavat : it does seem to be a bug in the spec in this case.
- Izkata 4y ago> Edit : as pointed out by zarzavat : it does seem to be a bug in the spec in this case. Pretty much what we're saying. It also fails when typed directly, at least in Firefox (as unnecessary as that 0 is).
- milliams 4y ago> But 0 is 0 in every unit While that might be true for all the length units defined in CSS, it's not true in general. E.g. in temperature, 0F != 0C
- bilekas 4y agoI get where you're coming from, and I think you were pedantically downvoted but it's unsafe to assume 0 as 0.. :)