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

Add the example for multiple formats for issue 21 #96

Merged
merged 1 commit into from
Oct 7, 2024
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
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
Loading