<list-style-type> glyphs have a different rendering through/with 'counter()' and 'display: list-item'
Categories
(Core :: Layout, defect)
Tracking
()
People
(Reporter: xavier, Assigned: MatsPalmgren_bugz)
References
Details
Attachments
(2 files)
| Reporter | ||
Comment 1•11 years ago
|
||
Comment 2•11 years ago
|
||
Comment 3•11 years ago
|
||
| Reporter | ||
Comment 5•10 years ago
|
||
Comment 6•10 years ago
|
||
| Assignee | ||
Comment 7•4 years ago
|
||
As Boris noted above, the CSS specs have always allowed UAs to render disc etc as they wish (not as text), CSS2 said:
Glyphs are specified with disc, circle, and square. Their exact rendering depends on the user agent.
https://www.w3.org/TR/CSS21/generate.html#propdef-list-style-type
The latest spec says:
Note: If the <counter-style> is one of the predefined symbolic styles, like disc, it might look different than when used in list-style-type. See CSS Counter Styles 3 §6.3 Symbolic: disc, circle, square, disclosure-open, disclosure-closed.
https://drafts.csswg.org/css-lists-3/#counter-functions
And, as he also noted, many fonts are either missing these glyphs or they look awful.
That is the reason we now render list-style-type:disc etc as text using a built-in font, with proper text anti-aliasing and scaling, so the bullets (disc, circle, square, disclosure-open, disclosure-closed) should now look great at any zoom level. We also honor an explicitly specified font-family in a ::marker rule, so an author can override that font with any font they wish. This change (bug 1542807) just landed so it's only in Nightly (91) so far and will take a few weeks to be reach the stable branch.
However, there's still an intentional rendering difference between list-style-type:disc and ::marker { content: counter(list-item, disc) } - only the former use the built-in font by default. You can override the font for either, by specifying a font with a ::marker { font-family: ... } rule, but please note that users may override your choice of font in the browser Preferences so using the built-in font is probably better.
Resolving as WONTFIX since we have no intention of changing this exactly as requested, but the default bullets should now look great anyway with bug 1542807 fixed, and there now is a way for authors to get the exact same rendering for list-style-type and content by adding a bit of ::marker styling.
Description
•