Closed Bug 1539267 Opened 7 months ago Closed 7 months ago

List items shouldn't just be HTML elements.

Categories

(Core :: CSS Parsing and Computation, enhancement)

enhancement
Not set

Tracking

()

RESOLVED FIXED
mozilla68
Tracking Status
firefox68 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

Attachments

(1 file)

https://drafts.csswg.org/css-lists/#list-item:

A list item is any element with its display property set to list-item. List items generate ::marker pseudo-elements.

No reason to exclude non-HTML elements.

The HTML restriction doesn't match any browser.

This matches Edge, though I filed
https://github.com/w3c/csswg-drafts/issues/3766 about the pseudo-element
condition.

Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1803e27751d6
Bug 1539171 - Follow the list-item definition from the spec a bit more closely. r=mats
Status: NEW → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/16162 for changes under testing/web-platform/tests
You need to log in before you can comment on or make changes to this bug.