LGTM1
This is already in Firefox and it looks like a stable CSS property.
BTW, there's already a bug reported in WebKit
(
https://bugs.webkit.org/show_bug.cgi?id=97337) which even had a patch
from 2012 that hasn't landed. But it looks it was not because WebKit
didn't want the feature, but that the patch was not worked on after the
review.
Bye,
Rego
On 10/06/2020 21:42, Vladimir Levin wrote:
>
>
> On Wed, Jun 10, 2020 at 3:37 PM Anders Hartvoll Ruud
> <
and...@chromium.org <mailto:
and...@chromium.org>> wrote:
>
> Do you expect any difficulty implementing this, or is it as
> straightforward as it looks?
>
>
> I think this is pretty straightforward. All of the code is already done
> for counter-increment and counter-reset, so adding a new way of
> adjusting an existing counter should be pretty easy.
>
>
>
>
> On Wed, Jun 10, 2020 at 6:21 PM Vladimir Levin <
vmp...@chromium.org
> <mailto:
vmp...@chromium.org>> wrote:
>
> Contact
emails...@chromium.org
> <mailto:
vmp...@chromium.org>Design docs/specSpecification:
>
https://drafts.csswg.org/css-lists-3/#propdef-counter-setTAG
> reviewThis feature is already adopted into css-lists-3
> SummaryCSS counter-set is an additional property introduced in
> css-lists-3 to control counters by setting an existing counter
> to a specified value. This builds upon other implemented counter
> control properties, specifically counter-reset (which creates a
> new counter with a specified value) and counter-increment (which
> increments an existing counter by a specified amount).
> MotivationThis feature is needed for precise counter control,
> since otherwise it is not possible to set an existing counter to
> a value, other than figuring out how to increment or decrement
> it. Risks
> Interoperability and Compatibility This feature is already
> shipped by Firefox, and it is a new CSS property which poses a
> low risk of interoperability problems. /Firefox/: Shipped
> (
https://developer.mozilla.org/en-US/docs/Web/CSS/counter-set)
> Shipped in Firefox 68 according to MDN /Edge/: No public signals
> /Safari/: No public signals /Web developers/: No signals
> Will this feature be supported on all six Blink platforms
> (Windows, Mac, Linux, Chrome OS, Android, and Android
> WebView)?Yes Is this feature fully tested by web-platform-tests
> <
https://chromium.googlesource.com/chromium/src/+/master/docs/testing/web_platform_tests.md>?Yes
>
https://wpt.fyi/results/css/css-lists/counter-set-001.htmlhttps://wpt.fyi/results/css/css-contain/counter-scoping-002.htmlhttps://wpt.fyi/results/css/css-lists/parsing/counter-set-valid.htmlTracking
> bughttp://
crbug.com/991601Link to entry on the Chrome Platform
> Statushttps://
chromestatus.com/feature/4688138070917120
>
> --
> You received this message because you are subscribed to the
> Google Groups "blink-dev" group.
> To unsubscribe from this group and stop receiving emails from
> it, send an email to
blink-dev+...@chromium.org
> <mailto:
blink-dev+...@chromium.org>.
> <
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CADsXd2Oy1K755VKijEnW2ZYsdcP3mpmQYvhSCSeQt7oN-FasHA%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "blink-dev" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to
blink-dev+...@chromium.org
> <mailto:
blink-dev+...@chromium.org>.
> To view this discussion on the web visit
>
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAKFBnUpfig3CF0EG3uRX_9Y3J-kthN-_DqiP6hrxYHqgr6tD%2Bw%40mail.gmail.com
> <
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAKFBnUpfig3CF0EG3uRX_9Y3J-kthN-_DqiP6hrxYHqgr6tD%2Bw%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "blink-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
blink-dev+...@chromium.org
> <mailto:
blink-dev+...@chromium.org>.
> To view this discussion on the web visit
>
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CADsXd2PaM5BdDOXy4PtFPx11HBfEQoZ_xGVzMbYqHCQUNfoDRA%40mail.gmail.com
> <
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CADsXd2PaM5BdDOXy4PtFPx11HBfEQoZ_xGVzMbYqHCQUNfoDRA%40mail.gmail.com?utm_medium=email&utm_source=footer>.