Re: [csswg-drafts] [css-lists] Consider new value for counter-reset (#5402)

This specific proposal doesn't look like it would solve the case for MathML font sizing. The algorithm makes reference to two constants from the OpenType MATH table when the internal script-level counter is 1 or 2, falling back to a power function (0.71 ^ level, IIRC) beyond that. You couldn't represent that with a calc() expression.

I'm also against `counter-remove`, solely because counter scoping rules are complicated enough already.

However, the concept of creating a new counter but copying its value from the parent - your "`counter-reset: countSubLevel parent`" - is pretty trivial to implement, for us anyway. It also feels like it somehow might be incredibly useful, I just can't quite put my finger on why. In your example you're effectively using it to count how deep your element is in the element tree. I wonder what other use-cases we could find for that?

-- 
GitHub Notification of comment by faceless2
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5402#issuecomment-669420883 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 5 August 2020 19:15:03 UTC