amp-html – AMP浏览器支持?

amp-html – AMP浏览器支持?,第1张

概述考虑到AMP规范,考虑到将CSS变量依赖于自定义样式元素,这意味着当前的浏览器支持很窄。见: Can I use reference 我猜想非自定义样式有一个“优雅的回退”,因为浏览器不了解CSS变量将忽略该CSS。 是否有AMP的浏览器兼容性/支持矩阵? 浏览器支持 In general we support the 2 latest versions of major browsers lik 考虑到AMP规范,考虑到将CSS变量依赖于自定义样式元素,这意味着当前的浏览器支持很窄。见: Can I use reference

我猜想非自定义样式有一个“优雅的回退”,因为浏览器不了解CSS变量将忽略该CSS。

是否有AMP的浏览器兼容性/支持矩阵?

解决方法 浏览器支持

In general we support the 2 latest versions of major browsers like Chrome,firefox,Edge,Safari and Opera. We support desktop,phone,tablet and the web vIEw version of these respective browsers.

Beyond that the core AMP library and builtin elements should aim for very wIDe browser support and we accept fixes for all browsers with market share greater than 1 percent.

In particular,we try to maintain “it might not be perfect but isn’t broken”-support for the AndroID 4.0 system browser and Chrome 28+ on phones.

从DEVELOPING.md#supported-browsers

但是.. CSS变量?

CSS自定义属性(也称为CSS变量)的使用是polyfilled:

AMP HTML components that are more complex and nested … may be styled with an explicitly defined set of CSS Custom PropertIEs. These are propagated to any children elements that are dynamically created by the runtime,to achIEve the desired style.

从spec/amp-html-components.md

总结

以上是内存溢出为你收集整理的amp-html – AMP浏览器支持?全部内容,希望文章能够帮你解决amp-html – AMP浏览器支持?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1115472.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-29
下一篇 2022-05-29

发表评论

登录后才能评论

评论列表(0条)

保存