forked from Wilto/draft-prop
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change sizes from a <media-query> to a <media-condition>. Closes #132.
- Loading branch information
Showing
2 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -552,14 +552,14 @@ | |
</p> | ||
<h1 class="p-name no-ref" id=title>The picture Element</h1> | ||
<h2 class="no-num no-toc no-ref heading settled heading" id=subtitle><span class=content>Editor’s Draft, | ||
<span class=dt-updated><span class=value-title title=20140318>18 March 2014</span></span></span></h2> | ||
<span class=dt-updated><span class=value-title title=20140327>27 March 2014</span></span></span></h2> | ||
<div data-fill-with=spec-metadata><dl><dt>This version:<dd><a class=u-url href=http://picture.responsiveimages.org>http://picture.responsiveimages.org</a><dt>Editor’s Draft:<dd><a href=http://picture.responsiveimages.org>http://picture.responsiveimages.org</a><dt>Test Suite:<dd>None Yet<dt>Editors: | ||
<dd class="p-author h-card vcard"><a class="p-name fn u-url url" href=http://xanthir.com/contact/>Tab Atkins</a> (<span class="p-org org">Google</span>)<dd class="p-author h-card vcard"><span class="p-name fn">Marcos Cáceres</span> (<span class="p-org org">Mozilla</span>)<dd class="p-author h-card vcard"><a class="p-name fn u-url url" href=http://matmarquis.com/>Mat Marquis</a><dd class="p-author h-card vcard"><a class="p-name fn u-url url" href=http://blog.yoav.ws/>Yoav Weiss</a><dd class="p-author h-card vcard"><a class="p-name fn u-email email" href=mailto:[email protected]>Simon Pieters</a> (<span class="p-org org">Opera Software</span>)<dt>Version History:<dd><a href=https://github.com/ResponsiveImagesCG/picture-element/commits/gh-pages>Commit History</a><dd><a href=https://twitter.com/respimg_commits>Github commits on Twitter</a><dt>Participate:<dd><a href=http://w3c.responsiveimages.org>Join the Responsive Images Community Group</a><dd><a href=http://list.responsiveimages.org>Public Mailing List</a><dd><a href=irc://irc.w3.org:6665/#respimg>IRC: #respimg on W3C’s IRC</a><dd><a href=https://twitter.com/respimg>Twitter</a><dd><a href=https://github.com/ResponsiveImagesCG/picture-element>Github</a></dl></div> | ||
<div data-fill-with=warning></div> | ||
<p class=copyright data-fill-with=copyright><a href=http://creativecommons.org/publicdomain/zero/1.0/ rel=license><img alt=CC0 src=http://i.creativecommons.org/p/zero/1.0/80x15.png></a> | ||
To the extent possible under law, the editors have waived all copyright | ||
and related or neighboring rights to this work. | ||
In addition, as of 18 March 2014, | ||
In addition, as of 27 March 2014, | ||
the editors have made this specification available under the | ||
<a href=http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0 rel=license>Open Web Foundation Agreement Version 1.0</a>, | ||
which is available at http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0. | ||
|
@@ -1391,7 +1391,7 @@ <h4 class="heading settled heading" data-level=3.1.4 id=parse-sizes-attr><span c | |
parse the value of the element’s <code>sizes</code> attribute with the following grammar: | ||
|
||
<pre> <dfn class=css-code data-dfn-type=type data-export="" id=typedef-source-size-list><source-size-list><a class=self-link href=#typedef-source-size-list></a></dfn> = <a class="production css-code" data-link-type=type href=#typedef-source-size title="<source-size>"><source-size></a>#? | ||
<dfn class=css-code data-dfn-type=type data-export="" id=typedef-source-size><source-size><a class=self-link href=#typedef-source-size></a></dfn> = <a class="production css-code" data-link-type=type href=http://dev.w3.org/csswg/mediaqueries-4/#typedef-media-query title="<media-query>"><media-query></a>? <a class="production css-code" data-link-type=type href=http://dev.w3.org/csswg/css-values-3/#length-value title="<length>"><length></a> | ||
<dfn class=css-code data-dfn-type=type data-export="" id=typedef-source-size><source-size><a class=self-link href=#typedef-source-size></a></dfn> = <a class="production css-code" data-link-type=type href=http://dev.w3.org/csswg/mediaqueries-4/#typedef-media-condition title="<media-condition>"><media-condition></a>? <a class="production css-code" data-link-type=type href=http://dev.w3.org/csswg/css-values-3/#length-value title="<length>"><length></a> | ||
</pre> | ||
<p> The above grammar must be interpreted per the grammar definition in <a data-biblio-type=normative data-link-type=biblio href=#css3val title=css3val>[CSS3VAL]</a>. | ||
|
||
|
@@ -1405,18 +1405,18 @@ <h4 class="heading settled heading" data-level=3.1.4 id=parse-sizes-attr><span c | |
|
||
<ol> | ||
<li> | ||
If the parsed <a class="production css-code" data-link-type=type href=#typedef-source-size title="<source-size>"><source-size></a> does not contain a <a class="production css-code" data-link-type=type href=http://dev.w3.org/csswg/mediaqueries-4/#typedef-media-query title="<media-query>"><media-query></a>, | ||
If the parsed <a class="production css-code" data-link-type=type href=#typedef-source-size title="<source-size>"><source-size></a> does not contain a <a class="production css-code" data-link-type=type href=http://dev.w3.org/csswg/mediaqueries-4/#typedef-media-condition title="<media-condition>"><media-condition></a>, | ||
set <var>source size list</var>’s default size to the parsed <a class="production css-code" data-link-type=type href=http://dev.w3.org/csswg/css-values-3/#length-value title="<length>"><length></a>. | ||
<span class=note>This can be set multiple times; last wins.</span> | ||
Continue to the next <a class="production css-code" data-link-type=type href=#typedef-source-size title="<source-size>"><source-size></a>. | ||
|
||
<li> | ||
If the <a class="production css-code" data-link-type=type href=http://dev.w3.org/csswg/mediaqueries-4/#typedef-media-query title="<media-query>"><media-query></a> evaluates to false, | ||
If the <a class="production css-code" data-link-type=type href=http://dev.w3.org/csswg/mediaqueries-4/#typedef-media-condition title="<media-condition>"><media-condition></a> evaluates to false, | ||
continue to the next <a class="production css-code" data-link-type=type href=#typedef-source-size title="<source-size>"><source-size></a>. | ||
|
||
<li> | ||
Otherwise, | ||
create a new pair of the parsed <a class="production css-code" data-link-type=type href=http://dev.w3.org/csswg/mediaqueries-4/#typedef-media-query title="<media-query>"><media-query></a> and the parsed <a class="production css-code" data-link-type=type href=http://dev.w3.org/csswg/css-values-3/#length-value title="<length>"><length></a>, | ||
create a new pair of the parsed <a class="production css-code" data-link-type=type href=http://dev.w3.org/csswg/mediaqueries-4/#typedef-media-condition title="<media-condition>"><media-condition></a> and the parsed <a class="production css-code" data-link-type=type href=http://dev.w3.org/csswg/css-values-3/#length-value title="<length>"><length></a>, | ||
and append it to <var>source size list</var>. | ||
</ol> | ||
|
||
|