Skip to content

Commit

Permalink
Merge pull request #1247 from w3c/fix/issue-1237/revised-cmt
Browse files Browse the repository at this point in the history
update core media type requirements for picture and img
  • Loading branch information
dauwhe authored Mar 21, 2019
2 parents ef26214 + 19ebdb4 commit 81e585d
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions epub32/spec/epub-contentdocs.html
Original file line number Diff line number Diff line change
Expand Up @@ -853,15 +853,23 @@ <h3>Foreign Resource Restrictions</h3>
><code>img</code> element</a>, the following fallback conditions apply to its use:</p>

<ul>
<li>A Core Media Type Resource MUST be specified in its <code>src</code> attribute when it is
the child of a <a
href="https://www.w3.org/TR/html/semantics-embedded-content.html#the-picture-element"
><code>picture</code> element</a>.</li>
<li>A Core Media Type Resource MUST be specified in its <code>src</code> attribute when it
specifies a <code>srcset</code> attribute.</li>
<li>A <a href="epub-packages.html#sec-foreign-restrictions-manifest">manifest fallback</a>
[[Packages32]] MUST be specified in all other cases when a Foreign Resource is referenced
from its <code>src</code> attribute.</li>
<li><p>If it is the child of a <a
href="https://www.w3.org/TR/html/semantics-embedded-content.html#the-picture-element"
><code>picture</code> element</a>:</p>
<ul>
<li>it MUST reference Core Media Type Resources from its <code>src</code> and
<code>srcset</code> attributes, when those attributes are specified; and</li>
<li>each sibling <a
href="https://www.w3.org/TR/html/semantics-embedded-content.html#the-source-element"
><code>source</code> element</a> MUST reference a Core Media Type Resource
from its <code>src</code> and <code>srcset</code> attributes unless it specifies a
media type in its <code>type</code> attribute that is not a Core Media Type.</li>
</ul>
</li>
<li>Otherwise, it MAY reference Foreign Resources in its <code>src</code> and
<code>srcset</code> attributes provided <a
href="epub-packages.html#sec-foreign-restrictions-manifest">manifest fallbacks</a>
[[Packages32]] are defined.</li>
</ul>

<p>The following [[!HTML]] elements can refer to <a href="epub-spec.html#sec-core-media-types"
Expand Down

0 comments on commit 81e585d

Please sign in to comment.