Closed Bug 1551583 Opened 5 years ago Closed 3 years ago

[Inactive CSS] Display a warning when list-style-* properties are used incorrectly

Categories

(DevTools :: Inspector: Rules, enhancement, P3)

enhancement

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: miker, Assigned: sebo)

References

(Blocks 1 open bug)

Details

(Whiteboard: [Importance: 25.1%])

Attachments

(1 file, 1 obsolete file)

Only this.style.listStyleType !== "none":

[
  "list-style-image",
]

[This property] doesn't have an effect because list-style-type is set to none. Try adding a property like list-style-type:disc.

Only elements with display:list-item

  "list-style",
  "list-style-image",
  "list-style-position",
  "list-style-type",
  "marker-side",

[This property] doesn't have an effect because display is not set to list-item. Try adding a property like display:list-item

Hello, is this bug still relevant? Is someone already working on it? If not, I would like to contribute to taking care of this issue.

Flags: needinfo?(mratcliffe)

The bug is yours :) Thanks for your help!

Assignee: nobody → eduar.mreyes
Flags: needinfo?(mratcliffe)
Priority: P2 → P3
Whiteboard: [Importance: 25.1%]

Regarding list-style-image it's actually the other way round. When an image is set, it makes list-style-type redundant.

Sebastian

Note that marker-side is still [under discussion in the specification] and not implemented in Gecko yet, so I didn't add it for now.

Sebastian

And sorry Eduar, for taking this from you! Though it looks like you didn't have the chance to work on it.

Sebastian

Assignee: eduar.mreyes → sebastianzartner
Status: NEW → ASSIGNED
Attachment #9196230 - Attachment description: Bug 1551583 - New inactive CSS rule to show warning when list-style-type is used on elements with list-style-image. r=gl → Bug 1551583 - New inactive CSS rule to show warning when list-style-type is used on elements with list-style-image. r=nchevobbe
Attachment #9196231 - Attachment description: Bug 1551583 - New inactive CSS rule to show warning when list-style-* is used on non-list-item elements. r=gl → Bug 1551583 - New inactive CSS rule to show warning when list-style-* is used on non-list-item elements. r=jdescottes
Attachment #9196230 - Attachment description: Bug 1551583 - New inactive CSS rule to show warning when list-style-type is used on elements with list-style-image. r=nchevobbe → Bug 1551583 - New inactive CSS rule to show warning when list-style-type is used on elements with list-style-image. r=ndescottes

Per my notes in bug 1583901 comment 9 onwards, and the code-comment added in bug 1688538, I think we shouldn't actually add a warning about these properties, because they are inherited-by-default, which makes it hard to reason about whether they're truly inactive (in the element's whole subtree) or not.

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → WONTFIX
Attachment #9196230 - Attachment is obsolete: true

Just as a note, there was another reason for marking list-style-type as inactive, as it doesn't have an effect when a marker image is set. Though as it can still serve as a fallback in case the marker image cannot be loaded, so there's not much value in marking it as inactive.

Sebastian

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: