As of 19 February, the CSS working group has decided to move away from ! and towards :has() for indicating subject selectors. Sass should support this.
Based on the discussion linked above, it looks like the syntax will be E:has(F), where F can be any arbitrary selector, including one starting with a combinator (e.g. E:has(> F)).
As of 19 February, the CSS working group has decided to move away from
!and towards:has()for indicating subject selectors. Sass should support this.Based on the discussion linked above, it looks like the syntax will be
E:has(F), whereFcan be any arbitrary selector, including one starting with a combinator (e.g.E:has(> F)).