AMP browser support?

混江龙づ霸主 提交于 2019-12-05 09:20:19

问题


Looking at the AMP spec, given the reliance on CSS variables to custom style elements, this means current browser support is narrow. See: Can I use reference

I'm guessing there is a 'graceful fallback' to non custom styled, since browsers not understanding the CSS variables will just ignore that CSS.

Is there a browser compatibility/support matrix for AMP?


回答1:


Browser Support

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.

from DEVELOPING.md#supported-browsers

But.. CSS Variables?

The use of CSS custom properties (aka CSS Variables) is 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.

from spec/amp-html-components.md




回答2:


In addition to what Paul Irish said, there is now a dedicated desktop web browser for AMP pages: AMP Browser based on Chromium.



来源:https://stackoverflow.com/questions/33076515/amp-browser-support

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!