Transition back to nested source elements
See original GitHub issueSee thread in #5 for more information.
As @mikkoh points out, <video>
is a good parallel with <model-viewer>
, and the precedent set on that tag is to allow a set of nested <source>
tags (with optional specification of mime types). Being in line with that allow us to avoid some overly specific names (like our current ios-src
), support additional types easily in the future, and be inline with other tags.
Specifically, I believe we should:
- Support nested
<source>
elements, with requiredsrc
and optionaltype
attributes - Remove the
ios-src
attribute (or deprecate it, moving towards a future removal) - Leave the
src
attribute as an easy fallback (this is in line with other elements)
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:12 (9 by maintainers)
Top Results From Across the Web
android - Transition of nested shared elements does not starts ...
I've debugged and shared elements have the same names in the source and destination. The Question (Again). Why this transition does not start ......
Read more >Edit from sequences loaded into the Source Monitor
Edit from sequences loaded into the Source Monitor ... is a nested sequence, containing its own series of clips, transitions, and effects.
Read more >Nested Scenes in OBS - Advanced OBS Tips & Tricks - YouTube
22.6K/50K In today's video, Chad talks about Nested Scenes in OBS. He covers what scene nesting is, when to use scene nesting, and...
Read more >How to Nest and Un-Nest Sequences in Premiere Pro
Find out how to Nest and Un-Nest sequences in Premiere Pro with the help of this video. COURSES (HOSTED ON SKILLSHARE)» After Effects: ......
Read more >Components Basics - Vue.js
It's common for an app to be organized into a tree of nested components: ... native <template> elements) - Vue will use its...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m cool using
<source>
if everyone else is 😂Excellent question @mrdoob . From the embedded content section of the HTML5 spec:
From the sounds of things, the attribute always takes precedence. Another interesting tidbit is this:
This suggests two important things:
src
is set tonull
(e.g., the attribute is removed), nothing should be loaded<source>
element URLs should not be considered fallbacks when thesrc
attribute is removed / set tonull
From elsewhere in the spec, it also has this to say about
<source>
elements:This is a very helpful simplification of the problem. Otherwise, we would have to create a
MutationObserver
just to know when thesrc
attribute on the<source>
elements has changed in a meaningful way.