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 22152 - Pointless to set list-style-type on DL elements
Summary: Pointless to set list-style-type on DL elements
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-23 11:03 UTC by Jukka K. Korpela
Modified: 2013-06-11 22:24 UTC (History)
2 users (show)

See Also:


Attachments

Description Jukka K. Korpela 2013-05-23 11:03:45 UTC
In clause 14.3.8 Lists,
http://www.whatwg.org/specs/web-apps/current-work/multipage/rendering.html#lists
there are rules like 

dir dl {  list-style-type: circle; }

This is pointless because list-style-type does not affect a dl element or its children, and for any inner list that might be affected, there is a rule that applies to the inner list, so inheritance does not apply.

So this would have an effect only if invalid markup, with li as a child of dl, were used or (rather abnormally) display: list-item were set on the dl or its child.
Comment 1 Ian 'Hixie' Hickson 2013-06-11 22:22:55 UTC
Oops.
Comment 2 contributor 2013-06-11 22:24:00 UTC
Checked in as WHATWG revision r7957.
Check-in comment: Wow, long-standing typo with the selector rules for nested list bullets
http://html5.org/tools/web-apps-tracker?from=7956&to=7957