Skip to content

Commit

Permalink
Add the example for multiple formats for issue 21 (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
zachernuk authored Oct 7, 2024
1 parent ec2f47f commit 7d48b5e
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,21 @@ <h3>
<h3>
Supporting multiple formats
</h3>
<aside class="issue" data-number="21"></aside>
<aside class="example">
<p>
The following example shows a list of potential source formats
that can be selected from:
</p>
<pre class="html">
&lt;model&gt;
&lt;source src="3d-assets/teapot.usdz" type="model/vnd.pixar.usd"&gt;
&lt;source src="3d-assets/teapot.gltf" type="model/gltf-binary"&gt;
&lt;/model&gt;
</pre>
`&lt;model&gt;` source selection follows `&lt;video&gt;` selection,
where the top-level `src` attribute takes precedence if present,
followed by the first compatible `&lt;source&gt;` element encountered.
</aside>
<h3>
Providing fallback content for legacy user agents
</h3>
Expand Down

0 comments on commit 7d48b5e

Please sign in to comment.