Skip to content

@scope #183

Closed
Closed

Description

@andruud

Description

This proposal includes the @scope rule, as specified by: https://drafts.csswg.org/css-cascade-6/#scope-atrule

It does not include:

Rationale

It’s on the list of missing features in the State of CSS survey.

https://2021.stateofcss.com/en-US/opinions/#currently_missing_from_css_wins

Specification

https://drafts.csswg.org/css-cascade-6/#scope-atrule

Tests

https://wpt.fyi/results/css/css-cascade/*scope*:

at-scope-parsing.html
scope-deep.html
scope-evaluation.html
scope-invalidation.html
scope-proximity.html
scope-specificity.html

Activity

  1. added this to the milestone on Oct 5, 2022
  2. moved this to Proposed in Interop 2023on Oct 7, 2022
  3. removed this from the milestone on Oct 7, 2022
  4. tbondwilkinson commented on Nov 1, 2022

    @tbondwilkinson

    This is the most important feature for CSS infrastructure in Google.

    "Even without widespread browser implementations, a solid CSS scoping spec gives the CSS team a target for our polyfills and designs for the next generation of component scoping, allowing us to stay in line with standard CSS rather than needing to reinvent the wheel"

  5. foolip commented on Nov 11, 2022

    @foolip
    Member

    There were a handful of mentions of scoping in State of CSS 2022, although not enough to make the top list in #248. There were two direct mentions of @scope, and a few others like these:

    • Scoping is a somewhat solved issue, but no real way to handle it in native CSS without plugins.
    • too many solutions for scoping
    • styling of scoped content (overriding)
  6. gsnedders commented on Nov 11, 2022

    @gsnedders
    Member

    There were two direct mentions of @scope

    Are you just looking at the interoperability_features_freeform, and not the other freeform responses? If you look across all the freeform responses, there's four direct mentions, plus about another 32 mentions of scoping (most of which just say "scope" with no further detail)?

  7. foolip commented on Nov 11, 2022

    @foolip
    Member

    @gsnedders yes, just the results of that question in what I'm reporting from #248. I haven't vetted the results of the other two questions, and I think #155 is the only case so far where I happened to notice a lot of mentions and called that out.

    Going through the results of those two questions systematically would be great, if you or anyone else has time. I might spend time on it next week, but can't promise.

  8. foolip commented on Nov 11, 2022

    @foolip
    Member

    In the MDN short survey on CSS & HTML, "CSS scoping (@scope at-rule)" was selected by ~16% of survey takers, putting it in the middle third of the 20 options. (There is some uncertainty as with any survey data.)

  9. nairnandu commented on Feb 1, 2023

    @nairnandu
    Contributor

    Thank you for proposing @scope for inclusion in Interop 2023.

    We wanted to let you know that this proposal was not selected to be part of Interop this year. We had many strong proposals, and could not accept them all. However this should not be taken as a comment on the technology as a whole, and resubmitting a proposal for this feature as part of a future round of Interop would be welcome.

    For an overview of our process, see the proposal selection summary. Thank you again for contributing to Interop 2023!

    Posted on behalf of the Interop team.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    focus-area-proposal

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions