gpt4 book ai didi

internet-explorer - Microsoft Edge 会使用 -webkit- 或 -ms- 等前缀吗?

转载 作者:行者123 更新时间:2023-12-02 01:16:05 25 4
gpt4 key购买 nike

Microsoft Edge 是否会在未来的功能中使用 -webkit--ms- 等前缀或自己的新前缀?也许是类似 -me- 的东西?

最佳答案

tl;dr:是和否

现有的非常受欢迎的前缀属性将一直保留,直到获得 native 支持,但 Microsoft Edge 将不会引入新的功能前缀系统。相反,他们将使用功能标志(例如 Chrome 和 Firefox,用于客户端而不是开发人员端的实验功能)。

<小时/>

Direct Source

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:

http://az648995.vo.msecnd.net/win/2015/05/vendorprefixes1.png

Our support (or lack thereof) of prefixed APIs is data-driven with compatibility as the sole purpose for any that remain. As examples, -webkit-border-radius is still in use on over 60% of page loads and the MS-prefixed Encrypted Media Extensions APIs are still in use on top video streaming services. Because of the impact on interoperability across the Web, these are supported in Microsoft Edge for the time being.

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”.

(强调我的)

关于internet-explorer - Microsoft Edge 会使用 -webkit- 或 -ms- 等前缀吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30824665/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com