Better (cycling) default list-style-type for ULs (unordered lists)

NEW
Unassigned

Status

()

Core
CSS Parsing and Computation
P4
enhancement
16 years ago
4 years ago

People

(Reporter: Matthew Paul Thomas, Unassigned)

Tracking

(Depends on: 1 bug, Blocks: 1 bug, {css-moz, testcase})

Trunk
css-moz, testcase
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

16 years ago
To reproduce:
1.  Open the attached testcase.

What you see:
*   1 reply beneath your current threshold.
    o   2 replies beneath your current threshold.
        #   3 replies beneath your current threshold.
            #   4 replies beneath your current threshold.
                #   5 replies beneath your current threshold.
                    #   6 replies beneath your current threshold.
                        #   7 replies beneath your current threshold.
                            #   8 replies beneath your current threshold.
                                #   9 replies beneath your current threshold.

What you should see:
*   1 reply beneath your current threshold.
    o   2 replies beneath your current threshold.
        #   3 replies beneath your current threshold.
            []  4 replies beneath your current threshold.
                *   5 replies beneath your current threshold.
                    o   6 replies beneath your current threshold.
                        #   7 replies beneath your current threshold.
                            []  8 replies beneath your current threshold.
                                *   9 replies beneath your current threshold.

where
*   = disc
o   = circle
#   = filledsquare
[]  = square

This is more typographically elegant, as well as making it easier to see where 
you are in highly nested lists.

Because Mozilla's rendering of HTML depends so heavily on CSS, this RFE would 
require implementation of two enhancements:
(1) a `filledsquare' (or `-moz-filledsquare') value for the list-style-type
    property;
(2) a modulo selector method for calculating the appropriate list-style-type no
    matter how highly nested the list is.

Then the current UL code in html.css can be changed to something like the 
following:
(ul,menu,dir)%4 (ul,menu,dir)
    {list-style-type: disc;}
(ul,menu,dir)%4 (ul,menu,dir) (ul,menu,dir)
    {list-style-type: circle;}
(ul,menu,dir)%4 (ul,menu,dir) (ul,menu,dir) (ul,menu,dir)
    {list-style-type: filledsquare;}
(ul,menu,dir)%4 (ul,menu,dir) (ul,menu,dir) (ul,menu,dir) (ul,menu,dir)
    {list-style-type: square;}

Problem occurs with:
*   Mozilla 2001020908, Mac OS 9.1

Problem does not occur with:
*   Microsoft Internet Explorer 5.0, Mac OS 9.1
(Reporter)

Comment 1

16 years ago
Created attachment 64726 [details]
testcase

Updated

16 years ago
Target Milestone: --- → Future
Keywords: testcase

Updated

16 years ago
Keywords: mozilla1.1
Over to CSS, since the new list style is trivial; the modulo selector is what's
hard.... the WG has been thinking of adding something like that to CSS3, but it
hasn't happened yet.
Assignee: attinasi → dbaron
Component: Layout → Style System (CSS)
QA Contact: chrispetersen → ian
Target Milestone: Future → ---

Updated

14 years ago
Blocks: 56362

Updated

14 years ago
Keywords: mozilla1.1 → css-moz, qawanted
Depends on: 363250
Blocks: 62892
QA Contact: ian → style-system
Summary: Better default list-style-type for ULs (unordered lists) → Better (cycling) default list-style-type for ULs (unordered lists)
Priority: -- → P4
Assignee: dbaron → nobody

Comment 3

4 years ago
Issue still reproducing on:
Mozilla/5.0 (X11; Linux i686; rv:26.0) Gecko/20100101 Firefox/26.0
Keywords: qawanted
You need to log in before you can comment on or make changes to this bug.