You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Is an immersiveElement attribute needed for immersive model presentation? #162
The getter is currently on Document. It returns the current immersive model, retargeted against the document for shadow DOM, or null when no model is immersive. WebKit exposes this attribute today.
Do we need this attribute in the specification, or can the API expose sufficient state through another mechanism?
Points to discuss:
What author use cases require identifying the current immersive element, rather than only knowing whether immersive presentation is active?
Could per-model state, a boolean, or richer immersivechange events provide the necessary information instead?
Without the getter, how would authors reliably handle browser-initiated exits, model replacement, removal, and listeners attached after presentation starts?
If the attribute is retained, is nullable Element with shadow-DOM retargeting the appropriate shape?
The draft currently uses the getter to observe presentation state and update exit controls. This issue records whether the attribute should be retained or replaced; it does not remove it yet.
Activity
cabanier commentedon Oct 14, 2026
/tpac
Define immersive model presentation APIs and native-scale rendering
Define immersive model presentation APIs and native-scale rendering
Define immersive model presentation APIs and native-scale rendering