Skip to content

Conversation

dletorey
Copy link
Contributor

@dletorey dletorey commented Aug 5, 2025

Summary

  • Created the following BCD files:
    • :heading pseudo-class - css/selectors/heading.json
    • :heading pseudo-class function - css/selectors/headingfunction.json

Test results and supporting details

  • Not supported in:
    • Google Chrome
    • Safari
    • Opera
  • Tested in Firefox with this CodePen using the feature flag layout.css.heading-selector.enabled:
    • Firefox 141.0.2 - flag not present
    • Firefox Beta 142.0b7 - works as expected
    • Firefox Developer Edition 142.0b7 - works as expected
    • Firefox Nightly 143.0a1 - works as expected

Related issues

@github-actions github-actions bot added data:css Compat data for CSS features. https://developer.mozilla.org/docs/Web/CSS size:m [PR only] 25-100 LoC changed labels Aug 5, 2025
Copy link
Contributor

github-actions bot commented Aug 5, 2025

Tip: Review these changes grouped by change (recommended for most PRs), or grouped by feature (for large PRs).

Copy link
Member

@Elchi3 Elchi3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not add web-feature tags for the moment. It's better we let the web-feature maintainers decide where these new selectors belong to. Maybe it is a new feature.

@Elchi3 Elchi3 changed the title created BCD files for :heading and ;heading() selectors Add CSS :heading and heading() selectors Aug 6, 2025
@Elchi3 Elchi3 changed the title Add CSS :heading and heading() selectors Add CSS :heading and :heading() selectors Aug 6, 2025
Copy link
Member

@Elchi3 Elchi3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @dletorey 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:css Compat data for CSS features. https://developer.mozilla.org/docs/Web/CSS size:m [PR only] 25-100 LoC changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants