This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 26608 - Provide a way to specify font for list-style-type
Summary: Provide a way to specify font for list-style-type
Status: RESOLVED NEEDSINFO
Alias: None
Product: CSS
Classification: Unclassified
Component: Lists and Counters (show other bugs)
Version: unspecified
Hardware: PC All
: P2 critical
Target Milestone: ---
Assignee: Tab Atkins Jr.
QA Contact: public-css-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-19 20:09 UTC by jc
Modified: 2014-09-07 14:24 UTC (History)
0 users

See Also:


Attachments

Description jc 2014-08-19 20:09:00 UTC
Please see the following link.
http://ahangama.com/sbpc/index.htm
The RHS top button switches the page to the Singhala translation. On that page, beneath the complex script is actually romanized Singhala (RS), somewhat like Icelandic. Since the Singhala font renders romanized Singhala in the native script, it is unable to show list-style-types roman / alpha in their expected letter shapes. Therefore, I was forced to use regular Arabic numbering for all sub lists in the Singhala copy.

Considering <ol>, it is only a container and has no text at its own level to show. Supposing there was a mechanism to define a font for the list-style-type, I would have had the chance to make those sub lists have roman numerals or English lowercase letters matching the English original. 

I understand that if I used Unicode Sinhala, using bare 'Plain Text', this would not have been a problem although you cannot find matching Roman and Unicode Singhala fonts. There is a practical reason that romanized Singhala is used. The Singhala page is Content Editable. That is so that people in the group can use slightly altered English keyboard to type Singhala. Only trained copy typists type Unicode Sinhala, which is considered a specialized IT skill in Lanka.

OTHER REASONS
The proposed selector would help better esthetics of a page with all the good stuff CSS brings.
Comment 1 Tab Atkins Jr. 2014-08-19 20:22:14 UTC
This is already handled in the spec by just specifying 'font' on ::marker.
Comment 2 jc 2014-09-07 01:28:44 UTC
Pardon me, but this old man could not find a way to specify 'font' on ::marker as Mr Atkins advices.
Please see CSS in this test page:
http://ahangama.com/tests/list.htm

What I am trying (or wish to have) is to change the font of the contents of the list while keeping the list numbers in the Latin script.

A little elaboration would be gratefully appreciated.

Thanks

JC
Comment 3 Tab Atkins Jr. 2014-09-07 14:24:35 UTC
(In reply to jc from comment #2)
> Pardon me, but this old man could not find a way to specify 'font' on
> ::marker as Mr Atkins advices.
> Please see CSS in this test page:
> http://ahangama.com/tests/list.htm
> 
> What I am trying (or wish to have) is to change the font of the contents of
> the list while keeping the list numbers in the Latin script.
> 
> A little elaboration would be gratefully appreciated.

::marker is not yet supported by any browser. It's just how this problem will be solved after browsers implement the spec.