|
Post by account_disabled on Jan 3, 2024 23:28:52 GMT -6
在本文中,Philip Walton 将讨论 Houdini 将如何解决 CSS 功能问题,并列出目前正在开发的一些更令人兴奋的功能。他还将提供一些作为 Web 开发人员今天可以做的具体事情,以帮助使 Houdini 成为现实。 您是否曾经想使用特定的 CSS 功能,但因为并非所有浏览器都完全支持它而没有使用?或者,更糟糕的是,所有浏览器都支持它,但支持存在错误、不一致甚至完全不兼容?如果这发生在你身上——我敢打赌它已经发生了——那么你应该关心胡迪尼。 Houdini 是一个新的 W3C 工作组,其最终目标是让这个问题永远消失。它计划通过引入一组新的 API 来实现这一目标,这些 API 将首次为开发人员提供扩展 CSS 本身的能力,以及挂钩浏览器渲染引擎的样式和布局过。 程的工具。 但这具体意味着什么呢?这是个好主意吗?它将如何帮助我们开发者现在和将来构建网站? 在这篇文章中,我将尝试回答这些问题。但在我这样做之前,重要的是要弄清楚今天的问题是什么以及为什么需要改变。然后我将更具体地讨论 Houdini 将如何解决这 Whatsapp 号码列表 些问题,并列出一些目前正在开发的更令人兴奋的功能。最后,我将提供一些我们作为 Web 开发人员今天可以做的具体事情,以帮助使 Houdini 成为现实。 参加关于前端、设计和用户体验的精彩研讨会,包括实用要点、现场会议、视频录制和友好的问答。与布拉德·弗罗斯特、斯蒂芬·沃尔特和其他许多人一起。 跳转到研讨会 ↬ 功能面板 胡迪尼试图解决什么问题? 每当我写一篇文章或构建一个演示来展示一些全新的 CSS 功能时,评论中。 或 Twitter 上不可避免地有人会说:“这太棒了!太糟糕了,我们再过 10 年就无法使用它了。” 尽管这样的评论既烦人又没有建设性,但我理解这种情绪。从历史上看,功能提案需要数年时间才能获得广泛采用。原因是,纵观 Web 的历史,将新功能添加到 CSS 的唯一方法就是通过标准流程。 标准流程 标准过程中的步骤。(查看大图) 虽然我绝对不反对标准流程,但不可否认它可能需要很长时间! 例如,flexbox于 2009 年首次提出,开发者至今仍然抱怨由于缺乏浏览器支持而无法使用它。诚然,这个问题正在慢慢消失,因为现在几乎所有现代浏览器都会自动更新;但即使使用现代浏览器,提案与功能的普遍可用性之间也总会存在滞后。 有趣的是,并非所有网络领域都是如此。考虑一下 JavaScript 最近的。
|
|