2 篇文章
前端工程化前沿与 Spec-Driven UI 当前分类
查看全部分类 →
Web前端 01// @scope、Container Queries 与 :has() 的 CSS 新特性落地 02bind(state, view); // 数据驱动 03on(event, update); // 组件交互 04requestAnimationFrame(paint); ❯_ JS · UTF-8 · LF Ln 4, Col 8
01 37 阅读

@scope、Container Queries 与 :has() 的 CSS 新特性落地

这几个特性的可用程度差得很远:@scope(Chrome 118+)、Container Queries、:has() 和 text-wrap 可以按渐进增强铺开,scroll-driven animations 只适合做装饰性动效,masonry 还在语法分歧里,先别写进组件库。

Web前端 前端工程化前沿与 Spec-Driven UI
阅读全文
Web前端 01// OPFS、多屏与设备接口的浏览器平台能力 API 02bind(state, view); // 数据驱动 03on(event, update); // 组件交互 04requestAnimationFrame(paint); ❯_ JS · UTF-8 · LF Ln 4, Col 8
02 32 阅读

OPFS、多屏与设备接口的浏览器平台能力 API

这七类能力应该按同一条路子接:当作渐进增强层,启动时探测、用户手势内授权、拿不到就走显式降级,主流程不依赖任何一条。

Web前端 前端工程化前沿与 Spec-Driven UI
阅读全文