[–] 1 point 2 weeks ago

CSS becoming more Javascript (aka: dynamic) is not really something that entices me. I'm worried many of these features can be naturally used to fingerprint visitors, which might in turn lead to something like a culture of anti-JS, but for CSS, like with CSS blocking lists for uBO etc.

  • source
  • [–] 3 points 3 weeks ago

    Also note that this leaves out changes after compression—this was not part of the experiment but would be fair to test, too.

    This seems extremely relevant actually because gzip/brotli use chunk deduplication as one of their core concepts.

  • source
  • [–] 6 points 3 weeks ago

    I always have found her highly opinionated (and sometimes even pedantic) but with interesting thoughts. However here I feel she's solving a problem that doesn't exist. Yes, the mask hack is still a hack and styling svg pseudoelements should be a problem that CSS should solve, but there is no better way to author icons than SVG. You can inspect them, tweak them, change them in any way you like with the aid of webtools in your browser as you would do with regular HTML. Moving all of that to the stylesheet just because "they are design tokens" just adds a huge layer of clutter to the already bloated modern CSS stylesheets.

  • source
  • [–] 3 points 1 month ago

    These are good, assuming you're taking the care to see which ones are supported.

    Kevin Powell's youtube is worth a shoutout here since he has showcases of his and other's new techniques that become available because of these new rules (he's more interested in applications rather than new rules themselves).

  • source
  • [–] 3 points 1 month ago

    Very cool. I used to make JS-free navigation menus by using a hidden checkbox for keeping the state of whether it should be displayed. Cool to see more proper APIs being introduced for this.

  • source
  • [–] 2 points 1 month ago

    It’s available in all relevant browsers since 2024 so there is not one single real reason to not use it.

    I still prefer the prefers-color-scheme media query because it makes it easier to properly separate the color schemes in code.

  • source
  • [–] 2 points 1 month ago

    I mean, light-dark is great as a function to have to enbrief specifically the use-case of light vs dark themes, but that duality is so limited I don't even use the function. I use media queries and prefers-color-scheme to be able to support arbitrary themes easily. This way I have to worry about compatibility far less, too.

  • source
  • [–] 1 point 1 month ago

    Lol clicked the link thinking it was a giant movie list colab list, then saw it was CSS styling and was disappointed. But to be fair I should have checked the thread it was posted on haha.

  • source
  • view more: next ›