Conditional CSS with:has and:nth-last-child

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com
CSS

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • csswg-drafts

    CSS Working Group Editor Drafts

  • The CSS Working Group has resolved to relax the syntax in https://github.com/w3c/csswg-drafts/issues/7961 so what you desire is coming :)

  • caniuse

    Raw browser/feature support data from caniuse.com

  • > Although :has still shouldn't be use because the spec isn't finalized (and so it's (rightfully) not supported by Firefox)

    I don't it's reasonable to hold off on using :has(), something web developers have wanted for close to 20 years just because it's not supported by Firefox. It's far too important and useful.

    Especially when 86.93% of the global web audience uses a browser that supports it [1]. And as much I admire Firefox and what they stand for, it's marketshare is 2.77% [2].

    It's been 14 months (March 14, 2022) since :has() first shipped in Safari 15.4 [3]; I think it should be okay to use :has() in production and lets hope Firefox catches up soon.

    [1]: https://caniuse.com/?search=%3Ahas

    [2]: https://gs.statcounter.com/browser-market-share

    [3]: https://www.webkit.org/blog/12445/new-webkit-features-in-saf...

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • A CSS framework for recreating Windows 7 UI

    1 project | news.ycombinator.com | 30 Apr 2024
  • Creating Scroll Animations Using ScrollReveal

    1 project | dev.to | 28 Apr 2024
  • RiotJS Routes

    3 projects | dev.to | 28 Apr 2024
  • Shared Data-Layer Setup For Micro Frontend Application with Nx Workspace

    4 projects | dev.to | 25 Apr 2024
  • Preline UI + Gowebly CLI = ❤️

    2 projects | dev.to | 25 Apr 2024