[Inactive CSS] Display a warning when list-style-* properties are used incorrectly
Categories
(DevTools :: Inspector: Rules, enhancement, P3)
Tracking
(Not tracked)
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
Comment 1•5 years ago
|
||
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.
Comment 2•5 years ago
|
||
The bug is yours :) Thanks for your help!
Updated•5 years ago
|
Reporter | ||
Updated•5 years ago
|
Assignee | ||
Comment 3•3 years ago
|
||
Regarding list-style-image
it's actually the other way round. When an image is set, it makes list-style-type
redundant.
Sebastian
Assignee | ||
Comment 4•3 years ago
|
||
Assignee | ||
Comment 5•3 years ago
|
||
Depends on D101261
Assignee | ||
Comment 6•3 years ago
|
||
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
Assignee | ||
Comment 7•3 years ago
|
||
And sorry Eduar, for taking this from you! Though it looks like you didn't have the chance to work on it.
Sebastian
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Comment 8•3 years ago
|
||
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.
Updated•3 years ago
|
Assignee | ||
Comment 9•3 years ago
|
||
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
Description
•