Skip to content

Commit

Permalink
Clarify that toggle() and attr() are invalid in sizes. Fixes #241
Browse files Browse the repository at this point in the history
  • Loading branch information
zcorpan committed Sep 9, 2014
1 parent 78818aa commit 2e3de79
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -1442,6 +1442,8 @@ interface <dfn>HTMLImageElement</dfn> : <span>HTMLElement</span> {
it must be interpreted relative to the <code>img</code> element's <span>node document</span>'s viewport.
Other units must be interpreted the same as in Media Queries. <ref spec=MQ></p>

<p>A <span>source size</span> must not use CSS functions other than the <code data-x="">calc()</code> function.</p>

<p>When asked to <dfn>select an image source</dfn> for a given <code>img</code> element <var>el</var>,
user agents must do the following:</p>

Expand Down Expand Up @@ -1839,6 +1841,7 @@ interface <dfn>HTMLImageElement</dfn> : <span>HTMLElement</span> {
is a valid non-negative <span>&lt;source-size-value></span>,
let <var>size</var> be its value
and remove the <span>component value</span> from <var>unparsed size</var>.
Any CSS function other than the <code data-x="">calc()</code> function is invalid.
Otherwise, there is a <span data-x="concept-microsyntax-parse-error">parse error</span>;
continue to the next iteration of this algorithm.</p></li>

Expand Down

0 comments on commit 2e3de79

Please sign in to comment.