Intent to Prototype: CSS @counter-style descriptor 'speak-as'

98 views
Skip to first unread message

Xiaocheng Hu

unread,
Jul 19, 2021, 9:26:07 PM7/19/21
to blink-dev

Contact emails

xiaoc...@chromium.org

Explainer

https://drafts.csswg.org/css-counter-styles/#example-cce4b0db

Specification

https://drafts.csswg.org/css-counter-styles/#counter-style-speak-as

Design docs


https://bit.ly/3kEHluz

Summary & Motivation

A custom counter style can be constructed with a meaning that is obvious visually, but impossible to meaningfully represent via a speech synthesizer or other non-visual means, or possible but nonsensical when naively read out loud. The 'speak-as' descriptor describes how to synthesize the spoken form of a counter formatted with the given counter style.



Blink component

Blink>CSS

Initial public proposal

None

TAG review

N/A; Firefox already shipped it years ago.

TAG review status

Not applicable

Risks



Interoperability and Compatibility

Very low, as we are implementing a well-specified feature that Firefox already shipped years ago, and Safari is positive on.



Gecko: Shipped/Shipping (https://bugzilla.mozilla.org/show_bug.cgi?id=966166)

WebKit: Positive (https://lists.webkit.org/pipermail/webkit-dev/2021-February/031719.html) Safari is positive on the @counter-style rule as a whole, including this descriptor.

Web developers: Strongly positive (https://bugs.chromium.org/p/chromium/issues/detail?id=687225) Developers are positive on the @counter-style rule as a whole, including this descriptor.


Debuggability

N/A; it's an extension to an already shipped feature, @counter-style. Note that we don't have DevTools support for @counter-style yet, as the requirement was imposed after @counter-style was shipped.



Is this feature fully tested by web-platform-tests?

No; will add tests.


Requires code in //chrome?

False

Tracking bug

https://bugs.chromium.org/p/chromium/issues/detail?id=1166766

Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/5687059677184000

This intent message was generated by Chrome Platform Status.

Yoav Weiss

unread,
Jul 26, 2021, 2:38:55 AM7/26/21
to Xiaocheng Hu, blink-dev
LGTM1

Catching up with Firefox and fixing this pressing issue for developers (especially in non-English languages) makes perfect sense. Thanks for working on this! :)

--
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.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAFqEGharvKDFHWwio%3DU_jaUUYrm4fkCGhqt0wjMNn6XxFRd5hQ%40mail.gmail.com.

Chris Harrelson

unread,
Jul 26, 2021, 11:20:56 AM7/26/21
to Yoav Weiss, Xiaocheng Hu, blink-dev

Manuel Rego Casasnovas

unread,
Jul 26, 2021, 12:48:16 PM7/26/21
to Chris Harrelson, Yoav Weiss, Xiaocheng Hu, blink-dev
LGTM3

On 26/07/2021 17:20, Chris Harrelson wrote:
> LGTM2
>
> On Sun, Jul 25, 2021 at 11:38 PM Yoav Weiss <yoav...@chromium.org
> <mailto:yoav...@chromium.org>> wrote:
>
> *LGTM1*
>
> Catching up with Firefox and fixing this pressing issue for
> developers (especially in non-English languages) makes
> perfect sense. Thanks for working on this! :)
>
> On Tue, Jul 20, 2021 at 3:26 AM Xiaocheng Hu
> <xiaoc...@chromium.org <mailto:xiaoc...@chromium.org>> wrote:
>
>
> Contact emails
>
> xiaoc...@chromium.org <mailto:xiaoc...@chromium.org>
>
>
> Explainer
>
> https://drafts.csswg.org/css-counter-styles/#example-cce4b0db
> https://bit.ly/3kEHluz <https://bit.ly/3kEHluz>
>
>
> Summary & Motivation
>
> A custom counter style can be constructed with a meaning that is
> obvious visually, but impossible to meaningfully represent via a
> speech synthesizer or other non-visual means, or possible but
> nonsensical when naively read out loud. The 'speak-as'
> descriptor describes how to synthesize the spoken form of a
> counter formatted with the given counter style.
>
>
>
> Blink component
>
> Blink>CSS
> <https://bugs.chromium.org/p/chromium/issues/list?q=component:Blink%3ECSS>
>
>
> Initial public proposal
>
> None
>
>
> TAG review
>
> N/A; Firefox already shipped it years ago.
>
>
> TAG review status
>
> Not applicable
>
>
> Risks
>
>
>
> Interoperability and Compatibility
>
> Very low, as we are implementing a well-specified feature that
> Firefox already shipped years ago, and Safari is positive on.
>
>
>
> Gecko: Shipped/Shipping
> (https://bugzilla.mozilla.org/show_bug.cgi?id=966166
> <https://bugzilla.mozilla.org/show_bug.cgi?id=966166>)
>
> WebKit: Positive
> (https://lists.webkit.org/pipermail/webkit-dev/2021-February/031719.html
> <https://lists.webkit.org/pipermail/webkit-dev/2021-February/031719.html>)
> Safari is positive on the @counter-style rule as a whole,
> including this descriptor.
>
> Web developers: Strongly positive
> (https://bugs.chromium.org/p/chromium/issues/detail?id=687225
> <https://bugs.chromium.org/p/chromium/issues/detail?id=687225>)
> Developers are positive on the @counter-style rule as a whole,
> including this descriptor.
>
>
> Debuggability
>
> N/A; it's an extension to an already shipped feature,
> @counter-style. Note that we don't have DevTools support for
> @counter-style yet, as the requirement was imposed after
> @counter-style was shipped.
>
>
>
> Is this feature fully tested by web-platform-tests
> <https://chromium.googlesource.com/chromium/src/+/master/docs/testing/web_platform_tests.md>?
>
> No; will add tests.
>
>
>
> Requires code in //chrome?
>
> False
>
>
> Tracking bug
>
> https://bugs.chromium.org/p/chromium/issues/detail?id=1166766
> <https://bugs.chromium.org/p/chromium/issues/detail?id=1166766>
>
>
> Link to entry on the Chrome Platform Status
>
> https://chromestatus.com/feature/5687059677184000
> <https://chromestatus.com/feature/5687059677184000>
>
> This intent message was generated by Chrome Platform Status
> <https://www.chromestatus.com/>.
>
> --
> 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/CAFqEGharvKDFHWwio%3DU_jaUUYrm4fkCGhqt0wjMNn6XxFRd5hQ%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/CAL5BFfU18DSnuiORNrYYfhRc6CtU4%3DzXycQWNGqJrUyD2TLpgQ%40mail.gmail.com
> <https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAL5BFfU18DSnuiORNrYYfhRc6CtU4%3DzXycQWNGqJrUyD2TLpgQ%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/CAOMQ%2Bw-uPzTVQhj%3DN4WktRhQ6%2Bq%2B7DxmdipK1QSPpK05m-mm7w%40mail.gmail.com
> <https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAOMQ%2Bw-uPzTVQhj%3DN4WktRhQ6%2Bq%2B7DxmdipK1QSPpK05m-mm7w%40mail.gmail.com?utm_medium=email&utm_source=footer>.

Xiaocheng Hu

unread,
Jul 26, 2021, 2:12:02 PM7/26/21
to Manuel Rego Casasnovas, Chris Harrelson, Yoav Weiss, Xiaocheng Hu, blink-dev
Thanks for reviewing!

Also a question: What does LGTM on an I2P indicate? Does it mean that when I finish implementation, the I2S will automatically be approved?

Chris Harrelson

unread,
Jul 26, 2021, 2:31:53 PM7/26/21
to Xiaocheng Hu, Manuel Rego Casasnovas, Yoav Weiss, blink-dev
On Mon, Jul 26, 2021 at 11:11 AM Xiaocheng Hu <xiaoc...@chromium.org> wrote:
Thanks for reviewing!

Also a question: What does LGTM on an I2P indicate? Does it mean that when I finish implementation, the I2S will automatically be approved?

Oh sorry, I didn't notice it was just I2P. I think we approved for shipping, so yes you can just go ahead and consider this thread a intent to prototype and ship. :)  (Please update the chromestatus.com entry accordingly also.) 
 
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAFqEGhZwTnF-xKhep2TBAxW3Su8te4S50WBLEHt%2BuxNYpsL_mA%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages