Skip to content
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

[css-display] Add 'display:contents list-item' ? #4022

Closed
MatsPalmgren opened this issue Jun 8, 2019 · 4 comments
Closed

[css-display] Add 'display:contents list-item' ? #4022

MatsPalmgren opened this issue Jun 8, 2019 · 4 comments

Comments

@MatsPalmgren
Copy link

https://drafts.csswg.org/css-display/#propdef-display
Given that a display:contents element can generate ::before/::after boxes, it seems reasonable that it should also be able to generate a ::marker box. The box would be forced to be list-style-position:inside, just like for display:inline list-item.

@tabatkins
Copy link
Member

I mean, it could. But does it need to?

@astearns
Copy link
Member

@tabatkins one of the use cases you pointed to for subgrid last week was the table of contents for specs. While that specific case doesn't use list markers I can definitely imagine a TOC situation that did. Wouldn't you expect the display:contents workaround to work pretty much the same as subgrid in that case?

@ewilligers ewilligers added the css-display-3 Current Work label Aug 27, 2019
@tabatkins
Copy link
Member

Agenda+ to confirm that we're okay closing WONTFIX, just due to lack of use-case.

There's nothing theoretically wrong with this, it's just extra complexity without justification so far.

@css-meeting-bot
Copy link
Member

css-meeting-bot commented Aug 18, 2021

The CSS Working Group just discussed display: contents list-item, and agreed to the following:

  • RESOLVED: close wontfix for now
The full IRC log of that discussion <fantasai> Topic: display: contents list-item
<fantasai> github: https://github.com//issues/4022
<fantasai> astearns: Proposal is close wontfix?
<fantasai> TabAtkins: brought up that there's nothing theoretically wrong with 'display: contents list-item' which would generate a ::marker
<fantasai> TabAtkins: Currently the grammar doesn't allow combining these two
<fantasai> TabAtkins: My objection to this is just that we don't have any particularly strong reason to do so
<fantasai> TabAtkins: but there's nothing wrong with it
<fantasai> TabAtkins: so suggesting close no change
<fantasai> TabAtkins: but no objection to making it possible if someone thinks this is a useful thing that we should allow
<fantasai> astearns: My case in the comments is completely theoretically
<fantasai> TabAtkins: I can see it, but I think it's one more thing that we don't necessarily need
<fantasai> emilio: seems like one more case that we should avoid, so ok with no change
<fantasai> astearns: Any objections to no change?
<fantasai> RESOLVED: close wontfix
<emilio> s/case that we should/edge case we should
<fantasai> astearns: If Mats feels strongly, he could reopen it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants