-
Notifications
You must be signed in to change notification settings - Fork 711
[css-lists] Clarify whether ::before and ::after pseudo-elements can be list-items and increment the list-item counter. #3766
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
In #1793 (comment) it was resolved that
So ::before and ::after can be list-items and have a marker. |
…spec a bit more closely. r=mats The HTML restriction doesn't match any browser. This matches Edge, though I filed w3c/csswg-drafts#3766 about the pseudo-element condition. Differential Revision: https://phabricator.services.mozilla.com/D24936 --HG-- extra : moz-landing-system : lando
…spec a bit more closely. r=mats The HTML restriction doesn't match any browser. This matches Edge, though I filed w3c/csswg-drafts#3766 about the pseudo-element condition. Differential Revision: https://phabricator.services.mozilla.com/D24936
…e closely. The HTML restriction doesn't match any browser. This matches Edge, though I filed w3c/csswg-drafts#3766 about the pseudo-element condition. Differential Revision: https://phabricator.services.mozilla.com/D24936 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1539267 gecko-commit: 1803e27751d646abe24ff364147c64bfe55920b4 gecko-integration-branch: central gecko-reviewers: mats
…e closely. The HTML restriction doesn't match any browser. This matches Edge, though I filed w3c/csswg-drafts#3766 about the pseudo-element condition. Differential Revision: https://phabricator.services.mozilla.com/D24936 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1539267 gecko-commit: 1803e27751d646abe24ff364147c64bfe55920b4 gecko-integration-branch: central gecko-reviewers: mats
@emilio Any list item in the box tree will increment the counter, ::before/::after aren't excluded here: if it's allowed to be a list item, then it increments list-item. I think the spec is clear on this point, lmk if you'd like something edited? |
@fantasai I think that the sentence "list items generate ::marker pseudo-elements" is a bit confusing, since pseudos don't generate other ::marker pseudos generally. Maybe a note noting that the ::marker pseudo-elements generated by ::before and ::after are not addressable via selectors would clarify it? It's not clear to me what the model is there. |
I agree with @Loirooriol, we agreed last time that |
The HTML restriction doesn't match any browser. This matches Edge, though I filed w3c/csswg-drafts#3766 about the pseudo-element condition. Differential Revision: https://phabricator.services.mozilla.com/D24936
The HTML restriction doesn't match any browser. This matches Edge, though I filed w3c/csswg-drafts#3766 about the pseudo-element condition. Differential Revision: https://phabricator.services.mozilla.com/D24936
Per w3c/csswg-drafts#3766 Differential Revision: https://phabricator.services.mozilla.com/D27122 --HG-- extra : moz-landing-system : lando
Per w3c/csswg-drafts#3766 Differential Revision: https://phabricator.services.mozilla.com/D27122 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1543758 gecko-commit: e4d51df238b69028b2cc7511efcea9bfe5f777a6 gecko-integration-branch: central gecko-reviewers: mats
Per w3c/csswg-drafts#3766 Differential Revision: https://phabricator.services.mozilla.com/D27122 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1543758 gecko-commit: e4d51df238b69028b2cc7511efcea9bfe5f777a6 gecko-integration-branch: central gecko-reviewers: mats
Added a clarification along the lines of #3826 (comment) |
…e closely. The HTML restriction doesn't match any browser. This matches Edge, though I filed w3c/csswg-drafts#3766 about the pseudo-element condition. Differential Revision: https://phabricator.services.mozilla.com/D24936 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1539267 gecko-commit: 1803e27751d646abe24ff364147c64bfe55920b4 gecko-integration-branch: central gecko-reviewers: mats
Per w3c/csswg-drafts#3766 Differential Revision: https://phabricator.services.mozilla.com/D27122 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1543758 gecko-commit: e4d51df238b69028b2cc7511efcea9bfe5f777a6 gecko-integration-branch: central gecko-reviewers: mats
…spec a bit more closely. r=mats The HTML restriction doesn't match any browser. This matches Edge, though I filed w3c/csswg-drafts#3766 about the pseudo-element condition. Differential Revision: https://phabricator.services.mozilla.com/D24936 UltraBlame original commit: 1803e27751d646abe24ff364147c64bfe55920b4
Per w3c/csswg-drafts#3766 Differential Revision: https://phabricator.services.mozilla.com/D27122 UltraBlame original commit: e4d51df238b69028b2cc7511efcea9bfe5f777a6
…spec a bit more closely. r=mats The HTML restriction doesn't match any browser. This matches Edge, though I filed w3c/csswg-drafts#3766 about the pseudo-element condition. Differential Revision: https://phabricator.services.mozilla.com/D24936 UltraBlame original commit: 1803e27751d646abe24ff364147c64bfe55920b4
…spec a bit more closely. r=mats The HTML restriction doesn't match any browser. This matches Edge, though I filed w3c/csswg-drafts#3766 about the pseudo-element condition. Differential Revision: https://phabricator.services.mozilla.com/D24936 UltraBlame original commit: 1803e27751d646abe24ff364147c64bfe55920b4
Per w3c/csswg-drafts#3766 Differential Revision: https://phabricator.services.mozilla.com/D27122 UltraBlame original commit: e4d51df238b69028b2cc7511efcea9bfe5f777a6
Per w3c/csswg-drafts#3766 Differential Revision: https://phabricator.services.mozilla.com/D27122 UltraBlame original commit: e4d51df238b69028b2cc7511efcea9bfe5f777a6
The following renders differently across browsers:
List item is defined in https://drafts.csswg.org/css-lists/#list-item / https://drafts.csswg.org/css-lists/#declaring-a-list-item, but it doesn't clarify if ::before or ::after are supposed to increment the list item counter.
cc @MatsPalmgren @fantasai @tabatkins
The text was updated successfully, but these errors were encountered: