amp-html – AMP浏览器支持?

考虑到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

相关文章

操作步骤 1、进入elasticsearch的plugin,进入ik。进入config。 2、在config下面建立以.dic为后缀的字典...
lengend data数据中若存在'',则表示换行,用''切割。
代码实现 option = { backgroundColor: '#080b30', tooltip: { trigger: &...
问题原因 原因在于直接在js中取的变量并复制给var变量。 于是就变成这样。 解决办法 var data = &#...
前言 最近做了一个调查问卷导出的功能,需求是将维护的题目,答案,导出成word,参考了几种方案之后,选...
对于很多人来说,用字符编码都是熟能生巧,而不清楚为什么是那样的字符编码,所以我在这列了一个表,翻...