Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update core media type requirements for picture and img #1247

Merged
merged 2 commits into from
Mar 21, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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