Support for picture element?

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

Re: Support for picture element?

Post by Albert Wiersch » Fri Jan 29, 2016 5:14 pm

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.
Image
Albert Wiersch

User avatar
RSteinwand
Rank VI - Professional
Rank VI - Professional
Posts: 550
Joined: Mon Jun 09, 2008 2:12 pm
Location: Fargo, ND
Contact:

Re: Support for picture element?

Post by RSteinwand » Fri Jan 29, 2016 5:23 pm

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

If that doesn't work:
Forget it.
Rick

User avatar
RSteinwand
Rank VI - Professional
Rank VI - Professional
Posts: 550
Joined: Mon Jun 09, 2008 2:12 pm
Location: Fargo, ND
Contact:

Re: Support for picture element?

Post by RSteinwand » Fri Apr 22, 2016 4:23 pm

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
Rank VI - Professional
Posts: 550
Joined: Mon Jun 09, 2008 2:12 pm
Location: Fargo, ND
Contact:

Re: Support for picture element?

Post by RSteinwand » Mon Dec 19, 2016 1:21 pm

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
Site Admin
Posts: 3221
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: Support for picture element?

Post by Albert Wiersch » Mon Dec 19, 2016 2:13 pm

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.
Image
Albert Wiersch

User avatar
RSteinwand
Rank VI - Professional
Rank VI - Professional
Posts: 550
Joined: Mon Jun 09, 2008 2:12 pm
Location: Fargo, ND
Contact:

Re: Support for picture element?

Post by RSteinwand » Mon Dec 19, 2016 2:43 pm

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
Site Admin
Posts: 3221
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: Support for picture element?

Post by Albert Wiersch » Mon Dec 19, 2016 2:52 pm

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.
Image
Albert Wiersch

User avatar
RSteinwand
Rank VI - Professional
Rank VI - Professional
Posts: 550
Joined: Mon Jun 09, 2008 2:12 pm
Location: Fargo, ND
Contact:

Re: Support for picture element?

Post by RSteinwand » Tue Dec 20, 2016 9:34 am

Perfect.

Thanks.
Rick

Post Reply