Skip to content

Conversation

@foolip
Copy link
Collaborator

@foolip foolip commented Jul 17, 2025

No description provided.

@github-actions github-actions bot added the feature definition Creating or defining new features or groups of features. label Jul 17, 2025
@foolip
Copy link
Collaborator Author

foolip commented Jul 17, 2025

I'm not sure if a conscious decision was made here when the feature was defined. The two subfeatures and their support can be seen here:
https://developer.mozilla.org/en-US/docs/Web/CSS/display#browser_compatibility

I don't know what "Specific behavior of unusual elements when display: contents is applied to them" means because I don't know which elements are unusual.

"Elements with display: contents are focusable" is more straightforward to understand, but does it mean the feature shouldn't be Baseline?

@ddbeck
Copy link
Collaborator

ddbeck commented Jul 17, 2025

"Elements with display: contents are focusable" is more straightforward to understand, but does it mean the feature shouldn't be Baseline?

Yes, that's correct. There was extensive discussion about this at the time we addedd it: #1966 (comment). I think the major points were that display: contents does weird things that makes other features seem to not work in surprising ways and adding tests for this behavior was included in Interop 2024 (but resolving the failing tests was not). There are a number of blog posts complaining at this behavior and I think we'd be on the wrong side of developer expectations to say that this is working without the focusable feature.

I don't know what "Specific behavior of unusual elements when display: contents is applied to them" means because I don't know which elements are unusual.

This comes from the spec https://drafts.csswg.org/css-display/#unbox (the description used to contain a link to this, but then the schema forbade it—I've sent mdn/browser-compat-data#27318 to add a spec URL to the feature in BCD). It's quite an old part of BCD. I have no idea if this behavioral feature's data is very high quality. I'm less certain that this is required for the feature overall.

@foolip
Copy link
Collaborator Author

foolip commented Jul 18, 2025

OK, I'll abandon this since it was intentional to hold this back from being Baseline based on the focusable issue.

@foolip foolip closed this Jul 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature definition Creating or defining new features or groups of features.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants