Open Bug 119753 Opened 18 years ago Updated 6 years ago

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

Categories

(Core :: CSS Parsing and Computation, enhancement, P4)

enhancement

Tracking

()

People

(Reporter: mpt, Unassigned)

References

(Depends on 1 open bug)

Details

(Keywords: css-moz, testcase)

Attachments

(1 file)

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
Attached file testcase
Target Milestone: --- → Future
Keywords: testcase
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 → ---
Blocks: 56362
Keywords: mozilla1.1css-moz, qawanted
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)
Assignee: dbaron → nobody
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.