implement the html5 inert attribute

REOPENED
Unassigned

Status

()

defect
P3
normal
REOPENED
6 years ago
6 months ago

People

(Reporter: faulkner.steve, Unassigned)

Tracking

(Blocks 1 bug, {dev-doc-needed})

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Updated

6 years ago
Component: HTML: Parser → DOM: Core & HTML

Updated

6 years ago
Keywords: dev-doc-needed

Comment 1

6 years ago
As far as I know, this isn't an issue for the HTML parser. The spec doesn't require any special parsing behavior for the "inert" attribute. But I don't know what other component would be appropriate instead.

Comment 2

6 years ago
Sorry for the noise, I see the component has already been changed. I'll shut up now...

Comment 3

4 years ago
There's no such attribute. If we implement this concept it'll be as part of <dialog>. There's no need for this bug as far as I can tell.
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → INVALID

Comment 4

4 years ago
Yeah, for the record here, the attribute was dropped from the spec more than year ago https://html5.org/r/8536
so, Chrome is bringing back the "inert" attribute: 

https://github.com/WICG/inert

Their intent to implemement:
https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/N--HhuYFJQI

Should we reconsider? Seems useful.
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Further to Chrome's intent to implement, it is shipping behind a flag now: https://twitter.com/rob_dodson/status/868296999375847424
Webkit bug is: https://bugs.webkit.org/show_bug.cgi?id=165279

Updated

2 years ago
Assignee: nobody → ntim.bugs
The little video in the tweet shows how tremendously useful this will be (beyond `dialog`).

[1] https://twitter.com/rob_dodson/status/868296999375847424

Comment 9

2 years ago
The video in the tweet illustrates one use case which is easy to show visually, but you could reasonably make the argument that a slide-in menu is <dialog> like.

However, a related, important case is when that slide-in menu is offscreen. You want to keep it laid out to avoid paying that cost each time it slides in and out, but if it's laid out then the focusable items in the menu are in the tab order. `inert` allows you to temporarily remove them from both the tab order and from assistive technology while not forcing the offscreen content to re-render each time you show it.

https://www.youtube.com/watch?v=fGLp_gfMMGU goes into this case in more detail.

Updated

2 years ago

Updated

2 years ago
Keywords: dev-doc-needed

Comment 10

2 years ago
Another video showing the modal dialog use case: https://www.youtube.com/watch?v=JS68faEUduk
Unassigning to reflect real status.
Assignee: ntim.bugs → nobody

Updated

10 months ago
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.