Open weinig opened 2 months ago
I don't think there's any real need for this, so if it's easier on implementations I think it's reasonable to disallow it.
I agree there's no particular use-case for it, but I do care that grammars are consistently interpreted. If we want to disallow math functions (but, presumably, allow other functions that could produce numbers, like custom env()
), we should make a production with that restriction. If we want to allow only literals for some reason, we can use the <number-token>
production.
How should relative-length values be interpreted when used in @counter-style descriptors?
The grammars for @counter-style descriptors, for example, 'range', allow the use of relative-length values due to the fact that
calc()
allows for them.For example, using 'range' again:
So the question is, what does 10em evaluate to? @font-palette-values contains this text:
but I can't find any similar text for @counter-style.