[Webkit-unassigned] [Bug 133620] Add support for HTMLImageElement's sizes attribute

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jun 8 14:55:46 PDT 2014


Yoav Weiss <yoav at yoav.ws> changed:

           What    |Removed                     |Added
            Summary|Add support for             |Add support for
                   |HTMlImageElement's sizes    |HTMLImageElement's sizes
                   |attribute                   |attribute

--- Comment #2 from Yoav Weiss <yoav at yoav.ws>  2014-06-08 14:56:07 PST ---
This patch adds support for HTMLImageElement's sizes attribute and the related srcset extended syntax as defined in http://picture.responsiveimages.org/.
The sizes attribute syntax is added to the CSSGrammar and parsed by the CSSParser. 
The SourceSizeList class is generated by the parser, and used to get
the final source size.
HTMLImageElement and HTMLPreloadScanner send this value to HTMLSrcsetParser.
HTMLSrcsetParser uses this value in order to pick the right resource.

All these changes are behind a compile flag. I'm uploading this patch with the flag turned on by default, in order to make sure that the layout tests pass on the bots. Once they do, I intend to turn it off by default and add the test directories as skipped in TestExpectations.

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the webkit-unassigned mailing list