CSS语言的演进正在加速。Interop项目通过统一浏览器支持,已取得显著成果,其中CSS Subgrid在2023年被纳入该项目后,到年底已在所有现代浏览器中广泛可用1。
为进一步推动CSS生态发展,Interop 2027计划正在制定中,Mozilla团队建立了排名系统,邀请开发者投票选择最需要的功能1。该计划涵盖十大提案特性,包括CSS函数、corner-shape、border-shape、锚点容器查询、inherit()函数、滚动触发动画、reading-flow和reading-order、interpolate-size、gap decorations以及滚动状态容器查询1。
其中CSS函数提案已在Chromium浏览器中实现,允许定义和调用自定义CSS函数1;interpolate-size属性自2024年起在Chrome中实现,允许在auto等关键字之间实现动画过渡1。文章建议开发者了解并采用这些现代CSS特性作为渐进式增强,同时鼓励开发者参与投票,为Interop 2027的最终特性选择提供意见1。
The CSS landscape is evolving rapidly, driven by collaborative efforts to standardize browser support across the industry. The Interop project has achieved notable success in this regard, with CSS Subgrid serving as a prime example—after being included in Interop in 2023, the feature became widely available across all major modern browsers by year's end.1
Building on this momentum, Mozilla's team has launched Interop 2027, a new initiative that invites developers to participate in shaping the future of CSS through a voting system.1 The roadmap includes ten proposed features aimed at enhancing CSS capabilities, such as CSS functions—already implemented in Chromium browsers to enable the definition and invocation of custom CSS functions—alongside corner-shape, border-shape, anchor container queries, the inherit() function, scroll-triggered animations, reading-flow and reading-order properties, interpolate-size, gap decorations, and scroll state container queries.1 The interpolate-size property, which permits animated transitions between keywords like auto, has been available in Chrome since 2024.1 Developers are encouraged to vote for their preferred features to influence the final priorities of Interop 2027.1
评论
还没有评论,欢迎留下第一条。