Microsoft Edge是否将使用-webkit-或-ms-之类的前缀? [英] Will Microsoft Edge use prefixes like -webkit- or -ms-?
问题描述
Microsoft Edge会为将来的功能使用诸如-webkit-
,-ms-
的前缀还是其自己的新前缀吗?也许是-me-
之类的东西?
Will Microsoft Edge use prefixes like -webkit-
, -ms-
, or its own new prefix for future functions? Something like -me-
, perhaps?
推荐答案
tl; dr:是和否
非常流行的现有前缀属性将保留,直到获得本机支持为止,但是Microsoft Edge将不引入新的功能前缀系统.取而代之的是,他们将使用功能标记(例如Chrome和Firefox在客户端(而不是开发人员)用于实验功能).
tl;dr: Yes and No
Existing prefixed properties that are hugely popular will remain until they have native support, but Microsoft Edge will not be introducing a new prefix system for features. Instead, they'll use feature flags (like Chrome and Firefox for experimental features on the client side, rather than the developer side).
一些值得注意的删除是Microsoft Edge支持最新标准API定义并删除了对MS前缀版本的API的支持.示例包括CSS转换,全屏API和指针事件.这就提出了一个重要的主题:供应商前缀.与IE相比,您会在Microsoft Edge中看到供应商前缀的趋势:
Some of the more notable removals are those where Microsoft Edge supports the latest standard API definition and removes support for MS prefixed versions of the APIs. Examples include CSS Transforms, Fullscreen API, and Pointer Events. This brings up an important topic: vendor prefixes. You’ll see a trend in the vendor prefixes in Microsoft Edge compared to IE: 我们对前缀API的支持(或不支持)是数据驱动的,具有兼容性,这是所有剩余API的唯一目的.例如,-webkit-border-radius仍在60%以上的页面加载中使用,并且MS前缀的Encrypted Media Extensions API仍在顶级视频流服务上使用. 由于会影响整个Web的互操作性,因此Microsoft Edge暂时支持这些功能. 共识 行业认为,厂商前缀带来的弊大于利,而支持其他厂商前缀的浏览器的必要性是一个很好的例子.展望未来,我们将使用功能标记(可通过导航至about:flags进行访问)来引入实验性API,并尽可能地铸造新的供应商前缀API.今天,您将在about:标志中找到诸如CSS过滤器,触摸事件和HTML5日期输入的早期实现之类的示例.我们还与其他浏览器供应商合作,探索实验API的新方法,该方法可以更轻松,更广泛地访问实验API,同时最大程度地减少前缀带来的兼容性负担.请查看此讲座(大约31分钟),以获取初步建议已经完成,临时命名为"API试用版". The consensus across the industry is that vendor prefixes cause more harm than good and the necessity of browsers supporting other vendor’s prefixes is a good example of why. Going forward, we’re using feature flags (accessible by navigating to about:flags) to introduce experimental APIs and minting new vendor prefixed APIs sparingly, if ever. Today, you’ll find examples like early implementations of CSS Filters, Touch Events, and HTML5 date inputs in about:flags. We’re also working with other browser vendors on exploring new approaches to experimental APIs that enable easier and broader access to experimental APIs while minimizing the compatibility burden that prefixes incur. Check out this talk (starts around 31 min mark) for an initial proposal we’ve made, tentatively named "API Trials". (强调我的) 这篇关于Microsoft Edge是否将使用-webkit-或-ms-之类的前缀?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!