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 25496 - Interaction between style of lists and CSS counter styles spec
Summary: Interaction between style of lists and CSS counter styles spec
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-29 05:47 UTC by Xidorn Quan
Modified: 2014-07-21 21:21 UTC (History)
3 users (show)

See Also:


Attachments

Description Xidorn Quan 2014-04-29 05:47:55 UTC
Currently, in Rendering/Lists section, there are many declaractions of list-style-type property. Since in the new spec "CSS counter styles" [COUNTERS], all builtin styles except none and decimal can be overridden by author, I think it might be better to make it clear that whether author-defined counter style with the same name used here could affect these style declaraction of html elements.

[COUNTERS] http://dev.w3.org/csswg/css-counter-styles/
Comment 1 Ian 'Hixie' Hickson 2014-04-29 21:39:21 UTC
Tab, what should I do here?
Comment 2 Tab Atkins Jr. 2014-04-29 21:51:50 UTC
Xidorn's just asking for an informative note that, say, replacing the 'upper-alpha' counter style will affect rendering of <ol type=A> elements.

Nothing needs to be done normatively.
Comment 3 Xidorn Quan 2014-04-29 23:09:43 UTC
(In reply to Tab Atkins Jr. from comment #2)
> Xidorn's just asking for an informative note that, say, replacing the
> 'upper-alpha' counter style will affect rendering of <ol type=A> elements.
> 
> Nothing needs to be done normatively.

Not exactly. I supposed that author-defined counter styles would not affect the 'type' attribute. Therefore I was suprised when I saw the behavior is defined using CSS. Though, I'd welcome the behavior that author-defineds affect, since it could simplify the impl.
Comment 4 Tab Atkins Jr. 2014-04-29 23:13:33 UTC
The HTML spec defines <ol type=A>, etc in terms of a CSS list-style-type rule, so the fact that "@counter-style upper-alpha {...}" would affect that seems to fall out of what's defined.
Comment 5 Ian 'Hixie' Hickson 2014-04-30 18:12:50 UTC
It seems weird that you can redefine spec-defined counter types, but that's your call. If it's going to be allowed, I agree that it makes sense that it would affect <ol type>.
Comment 6 Ian 'Hixie' Hickson 2014-05-05 23:25:39 UTC
I guess I'll add a note to the <ol> section saying that this relies on CSS and you can override the counter styles which will indirectly affect the type="" attribute, just like you could directly override it with list-style-type.
Comment 7 Xidorn Quan 2014-05-05 23:30:25 UTC
(In reply to Ian 'Hixie' Hickson from comment #6)
> I guess I'll add a note to the <ol> section saying that this relies on CSS
> and you can override the counter styles which will indirectly affect the
> type="" attribute, just like you could directly override it with
> list-style-type.

That's fine. One problem I am aware of is that, the word "override" has a different meaning in counter styles spec. To avoid confusion, I suggest using "redefine" before "the counter styls" instead.
Comment 8 Ian 'Hixie' Hickson 2014-05-06 18:30:29 UTC
Thanks. Will do.
Comment 9 Ian 'Hixie' Hickson 2014-07-21 21:21:48 UTC
Added. (Change will be in a future update to the spec, rolled up with some other fixes. I'm debugging my pipeline today and so can't publish just this change right now.)