[Bug 24111] New: (Rendering) Proposal for styles inheritance on lists numbers and bullets (actually :before and :after pseudo-elements)

https://www.w3.org/Bugs/Public/show_bug.cgi?id=24111

            Bug ID: 24111
           Summary: (Rendering) Proposal for styles inheritance on lists
                    numbers and bullets (actually :before and :after
                    pseudo-elements)
           Product: HTML WG
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: CR HTML5 spec
          Assignee: robin@w3.org
          Reporter: f.knabben@cksource.com
        QA Contact: public-html-bugzilla@w3.org
                CC: public-html-admin@w3.org

# Problem

List item numbers and bullets (or pseudo-elements created by :before and
:after) don't inherit styles present in the list item contents.

# Examples

A few examples can be found here:
http://jsfiddle.net/P3vRJ/1/

# Proposal

If any style apply to the whole contents of list items (or any element defining
:before and :after pseudo-elements), the item numbers and bullets (or related
pseudo-elements) should inherit such style.

To avoid breaking the web, a CSS property could be made available for it,
enabling this inheritance on all pseudo-elements created by :before and :after
(touching <li> at this point, I assume).

This is a rendering suggestion proposal, eventually touching this:
http://www.w3.org/TR/html5/rendering.html

# Reasoning / Background / tl;dr

This proposal is a follow-up for the following CKEditor issue:
http://dev.ckeditor.com/ticket/8741

While HTML and CSS provide some control for web developers to style lists and
their numbers/bullets, more and more HTML content (actually the great majority
of it) is produced by non-technical people, using web-based tools like
CKEditor.

Many times, understanding the user intentions based on his/her behavior is
difficult and in some situations, even if the intention is clearly understood,
HTML brings limitations hard to both accept by end-users and to workaround by
editing tools producers.

The described lists numbers and bullets case is a good example for the above.
While it is doable to provide tools to write and style list item contents,
transporting styles applied to list items contents to their relative
numbers/bullets is very hard in some basic cases (e.g. bold and del) and even
impossible in many other situations (e.g. header and classes).

The only real solution for this issue is relying on browsers, expecting that
they can handle such situations. All this must, of course, be normalized into
well accepted standards, guaranteeing its wider adoption.

Hopefully this proposal can be taken in consideration.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Monday, 16 December 2013 12:13:21 UTC