Lack of @counter-style support |
||||
Issue descriptionChrome Version: 56 OS: All Related w3 document: https://www.w3.org/TR/css-counter-styles-3/ What steps will reproduce the problem? data:text/html,<style>@counter-style negplus { system: numeric; symbols: '-' '+'; } ol { list-style: negplus }</style><ol><li>1</li><li>2</li></ol> What is the expected result? Like Firefox, you should see something +. 1 +-. 2 What happens instead? Whole @counter-style is not supported it seems.
,
Feb 1 2017
A couple of examples of use cases: A call for this came from the arabic layout requirements task force at the W3C yesterday, since Iranians want more control over defining list counters. Working on vertical text recently i have also seen a need to allow users to define counters such as circled-decimal (http://w3c.github.io/predefined-counter-styles/#circled-decimal) so that counters in vertical text stand upright. Firefox already has good support for the counter-styles spec.
,
Feb 1 2017
I put up some basic tests and results. See https://www.w3.org/International/tests/repo/results/counter-styles.en.html (click on the large text in the left-most column to run the tests)
,
Feb 1 2017
,
Feb 1 2017
Another use case is traditional in Russian typography list bullet. Not a dot •, but — medium dash. It’s currently not possible to use it easily, apart from pseudo-element with content way, which is quite a workaround. So it should look like this: — One — Two — Three @counter-style would make it possible.
,
Feb 1 2017
> Another use case is traditional in Russian typography list bullet. Not a dot •, but — medium dash. It’s currently not possible to use it easily, apart from pseudo-element with content way, which is quite a workaround. That doesn't necessarily need @counter-style, though. list-style-type accepts string, though that is only supported in Gecko at the moment as well.
,
Feb 2 2017
Okay filed another issue for that on Issue 687946 and https://bugs.webkit.org/show_bug.cgi?id=167729
,
Feb 12 2017
,
Feb 15 2017
In traditional French typography list are also introduced by a dash (tiret) rather than a bullet (puce).
,
Dec 6 2017
,
Dec 9 2017
It also affects Japanese, Chinese and Korean numbering, which should use "、" or "," instead of "." after each counter. See https://github.com/w3c/jlreq/issues/12 as discussed in w3c Japanese layout requirements task force.
,
Feb 7 2018
Additional requirements. Current implementations support myanmar and shan digit based lists, although the prefixes and suffixes used are inappropriate and may be used parentheses before and after the list or use a section marker as a suffix. Likewise language specific Myanmar script consonant lists are unsupported, nor are doubled consonant lists. Likewise ELreq has more detail on lists and counters: http://w3c.github.io/elreq/#x3-5-lists-and-counters
,
Jan 16
The implementation of this feature would allow other Google products such as Google Docs to display customized heading style. Please consider this feature implementation this year.
,
Jan 16
And if the developers do not wish to add @counter-style can we at least expand the number of defined list types. A couple of hundred more (as a conservative estimate) should do it. |
||||
►
Sign in to add a comment |
||||
Comment 1 by kojii@chromium.org
, Jan 31 2017Labels: OS-All