home.social

#cssnesting — Public Fediverse posts

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

  1. I have a project where I can now use CSS Nesting in production and oh, it makes so many things nicer!

    There are a lot of cases where you’d normally have to duplicate many class names for child selectors, which can now just be wrapped by one selector.

    It also makes the structure of the rules more logical/clearer to read and can help group things together in a CSS file.

    The implementers did a great job removing the requirement of nested selectors starting with a symbol, too 👌

    #CSS #CSSNesting

  2. Okay, so CSS nesting is a thing that's neat and all, but why is codepen.io/freaktechnik/pen/vY linear and not exponential? #css #cssnesting

  3. A reminder that #CSSnesting is still a working draft in the #W3C under the #CSSWG. Please mind #webcompat when using this relatively new feature. IOW, don't make your #CSS break because you assumed everyone right now is using the latest version of #Chrome / #Chromium, #Firefox, #Safari, or #Edge. They might not even be using a mainstream #browser to visit your website (I am using #PaleMoon for example)... ​:seija_coffee:​

    RE:
    https://c.im/users/youronlyone/statuses/111884225846166170

  4. I just found out today that #CSSnesting is now out and supported by major browsers. I've completely forgotten about it when it first showed up as a CSSWG draft.

    Hooray!

    #CSS

    ---

    P.S.

    This is why I chose to create my own boilerplate from scratch. If I opted to use existing ones, what I'll be learning is “how to use their work” instead of “what's new in CSS”.

  5. #Development #Releases
    Native CSS nesting support arrives in the big three browsers · The release of Firefox 117.0 completes the trifecta ilo.im/150a5r

    _____
    #WebDev #Frontend #Browser #CSS #CssNesting #Chrome #Firefox #Safari #Sass #PostCSS

  6. Nesting is coming to native CSS! As of August 29th, with Firefox shipping v117, all modern browsers will have support for CSS Nesting. Let's learn CSS Nesting in 5 minutes!

    youtube.com/watch?v=dr6UAQUAiu4

  7. Two new articles about #CSS

    One about making components with nesting, where I conclude, among other things, that #CSSnesting with has() and not() is especially fun to write since the ancestor and descendant can have the same styling based on whether or not the descendant exists.

    8yd.no/article/making-componen

  8. I think we're going to regret #CSSNesting, at least the way it’s defined in the spec.

    #CSS has been going in a very strong direction for the past five years. There just aren’t any more “gotchas” or confusing/misleading parts of modern CSS, because the W3C has worked their asses off essentially refactoring them all away... except nesting.

    I think the sheer number of articles and posts coming out about “the gotchas of CSS nesting” should be a significant indicator to... notes.keithjgrant.com/notes/20