home.social

#scopedcss — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #scopedcss, aggregated by home.social.

  1. Dammit @FirefoxNightly, I'm going for it: Scope is going in the book. I hope you're ready to get on board with Chrome & Safari on this.

    github.com/mozilla/standards-p

    #ScopedCSS #webdev #css

  2. Why is @scope different than Shadow DOM? There are a number of similarities, but a couple things make @scope different:

    * it's more lightweight, so it's easy to sprinkle onto the page where Shadow DOM would be overkill
    * it allows for multiple scopes to overlap and provides control over styles when they do
    * it offers fine-grained control over which styles do or do not reach from an outer scope into an inner one

    #css #webdev #ScopedCSS

    keithjgrant.com/posts/2023/04/