Microsoft Edge是否将使用-webkit-或-ms-之类的前缀? [英] Will Microsoft Edge use prefixes like -webkit- or -ms-?

查看:176
本文介绍了Microsoft Edge是否将使用-webkit-或-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暂时支持这些功能.

共识 此讲座(大约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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆