正在加载视频...

视频加载失败

Move over Sass! CSS Selector Nesting dropped in Chrome Stable today.

114,745 次观看 • 3 年前 •via X (Twitter)

9 条评论

Wes Bos 的头像
Wes Bos3 年前

I know, but nesting is what most people use Sass for. That said, soon: Conditions = Style Queries Variables = Custom Properties Mixins = Add a class Functions = Houdini worklets. I wish there was a css-only function though, would be so nice to make a darken() function!

🦋 @eliostruyf.com 的头像
🦋 @eliostruyf.com3 年前

It is just amazing, I already loved that we didn't need SASS anymore, but that it is now supported 🤯

Daniel 🏴󠁧󠁢󠁷󠁬󠁳󠁿 的头像
Daniel 🏴󠁧󠁢󠁷󠁬󠁳󠁿3 年前

Great video! Short and concise. I had no idea this was already in stable browsers, I will need to give this a try.

Wes Bos 的头像
Wes Bos3 年前

Thanks! Longest short I've ever done haha

Ruud .Yireo.Academy 的头像
Ruud .Yireo.Academy3 年前

@Una Yes because CSS nesting is the only thing that makes SCSS useful

Fabian B. 的头像
Fabian B.3 年前

Finally 🎉 remember this discussion going on for years on how CSS should implement this natively.

Joel Stransky 的头像
Joel Stransky3 年前

Super exciting. But dart-sass still offers a lot of benefits.

Harry Ashton 的头像
Harry Ashton3 年前

Oh my 👀

Daniel F. Herz, PE 的头像
Daniel F. Herz, PE3 年前

Nice!

相关视频