W3C home > Mailing lists > Public > www-style@w3.org > April 2014

[css-counter-styles] About space between bullet and content

From: Xidorn Quan <quanxunzhen@gmail.com>
Date: Sun, 27 Apr 2014 16:14:19 +1000
Message-ID: <CAMdq69_C_G1_kr4M26M7+EhKme0cjbDTjsDHH1wgB-z8EEF1AQ@mail.gmail.com>
To: www-style list <www-style@w3.org>, David Baron <dbaron@dbaron.org>
Hi,

During implementing of this spec, one thing we noticed that is not
mentioned in the document is the space between bullet and content. Though I
do not think it is something necessary to be covered in spec, dbaron has a
different opinion.

Currently, for list-style-type defined before this spec, Gecko use
padding-end: 0.5em on bullet to separate bullet with content, and
WebKit/Blink seem to append a space character to the bullet. However, since
this spec introduces arbitrary suffix, a problem is present.

The problem is that, some suffixes like ideographic comma, the suffix of
cjk-decimal and some other East Asian counter styles, have space inside
themselves. If additional space is appended, the visual gap between bullet
and content will be too wide. To solve this problem, in Gecko, we suppress
the padding when the suffix is ideographic comma, and plan to also apply
this suppression to suffixes end with some other punctuations including
ideographic full stop, and fullwidth comma, full stop, and colon.

Since I find no normative text mentions the space between bullet and
content, any comment of this problem should not be normative, either.
However, the spec may want to mention it as an informative note, so that
future implementators can be aware of this problem.

Regards,
Xidorn Quan
Received on Sunday, 27 April 2014 06:15:28 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:21 UTC