Support for picture element?

For technical support and bug reports for all editions of CSS HTML Validator, including htmlval for Linux and Mac.
User avatar
Albert Wiersch
Site Admin
Posts: 3783
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: Support for picture element?

Post by Albert Wiersch »

Hi Rick,

Great. I'll leave the "picture" message as is.

I think what I'm using now may have the ability to "link the links" but if I recall there was some issue with it when I tried it a while back. I'll see if I can "flip that switch" again and see what happens. Hopefully it will be that simple.
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial
User avatar
RSteinwand
Rank VI - Professional
Posts: 596
Joined: Mon Jun 09, 2008 2:12 pm
Location: Fargo, ND
Contact:

Re: Support for picture element?

Post by RSteinwand »

Flip it.
Bug it.
Update it.
Use it.

If that doesn't work:
Forget it.
Rick
User avatar
RSteinwand
Rank VI - Professional
Posts: 596
Joined: Mon Jun 09, 2008 2:12 pm
Location: Fargo, ND
Contact:

Re: Support for picture element?

Post by RSteinwand »

PageSpeed Insights added support for the "Picture" element months ago. Prior to that it would dock me for having oversized images.
Rick
User avatar
RSteinwand
Rank VI - Professional
Posts: 596
Joined: Mon Jun 09, 2008 2:12 pm
Location: Fargo, ND
Contact:

Re: Support for picture element?

Post by RSteinwand »

As of Jan 2016, the "picture" element is considered an experimental HTML 5.1 element and is not currently supported in some of the major browsers. For example, Internet Explorer (including IE11) and Safari (including Safari 9) do not currently support this element. However, it is supported by default in Chrome 38+, Edge 13+, Firefox 38+, and Opera 25+. Visit http://caniuse.com/#search=picture for more information. This message is displayed only once.
CanIUse shows support for Opera 9.1+ so only IE, Opera Mini and old Android are unsupported.

Browsers ignore what they don't understand and in unsupported browsers if fails-over to an <img>.
Rick
User avatar
Albert Wiersch
Site Admin
Posts: 3783
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: Support for picture element?

Post by Albert Wiersch »

Thanks. I've updated the message:
As of Dec 2016, the "picture" element is considered an experimental HTML 5.1 element and is not currently supported in some of the major browsers. For example, Internet Explorer (including IE11) and Safari 9 and below do not currently support this element. However, it is supported by default in Chrome 38+, Edge 13+, Firefox 38+, Opera 25+, and Safari 9.1+. Visit http://caniuse.com/#search=picture for more information. This message is displayed only once.
This page still says it is experimental:
https://developer.mozilla.org/en-US/doc ... nt/picture

I think I will keep it as a warning though, because IE11 does not support it and I think it is important that web developers know that.
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial
User avatar
RSteinwand
Rank VI - Professional
Posts: 596
Joined: Mon Jun 09, 2008 2:12 pm
Location: Fargo, ND
Contact:

Re: Support for picture element?

Post by RSteinwand »

With the amount of browser support it has, I don't consider it experimental, but I agree it needs to be a warming because of IE.
Rick
User avatar
Albert Wiersch
Site Admin
Posts: 3783
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: Support for picture element?

Post by Albert Wiersch »

RSteinwand wrote:With the amount of browser support it has, I don't consider it experimental, but I agree it needs to be a warming because of IE.
Yes, I was thinking the same thing and am not sure that "experimental" designation still applies.

I've updated the message to (still a warning):
The "picture" element is not currently supported in some of the major browsers. For example, Internet Explorer (including IE11) and Safari 9 and below do not currently support this element. However, it is supported by default in Chrome 38+, Edge 13+, Firefox 38+, Opera 25+, and Safari 9.1+. Visit http://caniuse.com/#search=picture for more information. This message is displayed only once.
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial
User avatar
RSteinwand
Rank VI - Professional
Posts: 596
Joined: Mon Jun 09, 2008 2:12 pm
Location: Fargo, ND
Contact:

Re: Support for picture element?

Post by RSteinwand »

Perfect.

Thanks.
Rick
Post Reply