24

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?

Wai Ha Lee
  • 8,598
  • 83
  • 57
  • 92
KevinD
  • 1,769
  • 10
  • 25
  • *"does this mean browser support is currently very narrow"* - The answer is: yes, but I guess you already know that, since you linked to the CanIUse reference. It's unclear to me what your actual question is. – GolezTrol Oct 12 '15 at 08:33
  • 1
    Yeah, I can see the question isn't clear. I'll update it - but basically, "Where is the supported browser matrix for AMP?" – KevinD Oct 12 '15 at 10:04

2 Answers2

24

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 amp faq

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

mrroot5
  • 1,811
  • 3
  • 28
  • 33
Paul Irish
  • 47,354
  • 22
  • 98
  • 132
  • 1
    The description of supported browsers - used in this answer and in the official docs - is kinda' strange: IE11 will obviously be a major browser for a while to come. I realize that AMP is primarily targetted at mobile, but some sites will want to use it for desktop too and you seem to want to support that. I hope you will extend your "it might not be perfect but isn't broken" support to IE11. – Tom Feb 15 '16 at 18:07
0

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

niutech
  • 28,923
  • 15
  • 96
  • 106