W3C home > Mailing lists > Public > public-css-archive@w3.org > August 2020

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

From: Mike Bremford via GitHub <sysbot+gh@w3.org>
Date: Wed, 05 Aug 2020 19:14:59 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-669420883-1596654897-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:13 UTC