The inert attribute allows web authors to mark parts of the DOM tree as inert: When a node is inert, then the user agent must act as if the node was absent for the purposes of targeting user interaction events, may ignore the node for the purposes of text search user interfaces (commonly known as "find in page"), and may prevent the user from selecting text in that node.
Contact emails
abox...@chromium.orgExplainer
https://github.com/WICG/inert/blob/main/explainer.mdSpecification
https://github.com/whatwg/html/pull/4288API spec
YesDesign docs
https://github.com/WICG/inert#tldr
https://discourse.wicg.io/t/inert-attribute/1838/
https://developer.mozilla.org/en-US/docs/Web/API/HTMLElementSummary
The inert attribute allows web authors to mark parts of the DOM tree as inert: When a node is inert, then the user agent must act as if the node was absent for the purposes of targeting user interaction events, may ignore the node for the purposes of text search user interfaces (commonly known as "find in page"), and may prevent the user from selecting text in that node.
Blink component
Blink>HTMLSearch tags
inert, focus, accessibility, keyboard, events, pointerTAG review
Risks
Interoperability and Compatibility
Gecko: Worth prototyping (https://mozilla.github.io/standards-positions/#inert-attr)
WebKit: No signal
Is this feature fully tested by web-platform-tests?
YesTracking bug
http://crbug.com/692360Sample links
https://wicg.github.io/inert/demo/Link to entry on the Chrome Platform Status
https://chromestatus.com/feature/5703266176335872Links to previous Intent discussions
Intent to prototype: https://groups.google.com/a/chromium.org/g/blink-dev/c/N--HhuYFJQI/m/bmwhhHDZCQAJThis intent message was generated by Chrome Platform Status.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAMQHGLzU8G2HpCmNsr63qaYePWWv_m%3DFuVD1ytquESLvTLqp0w%40mail.gmail.com.
Risks
Interoperability and Compatibility
Gecko: Worth prototyping (https://mozilla.github.io/standards-positions/#inert-attr)
WebKit: No signalCould you ask for a signal? https://bit.ly/blink-signals
Contact emails
abox...@chromium.orgExplainer
https://github.com/WICG/inert/blob/main/explainer.mdSpecification
https://github.com/whatwg/html/pull/4288
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/aa08991b-a16e-45de-ac56-16b6680b7889n%40chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/7e3e2030-3103-48e2-b048-005bfa98462cn%40chromium.org.
I also think this looks quite reasonable, and I think it's a good addition to the platform. That said, I think Yoav's questions about the details and Mozilla's approach are good ones. Alice, how do you think we should handle them?-mikeOn Thu, Apr 8, 2021 at 12:45 AM 'Alex Russell' via blink-dev <blin...@chromium.org> wrote:Glad to see this moving forward. LGTM1On Saturday, April 3, 2021 at 7:20:05 AM UTC-7 PhistucK wrote:Is this something like (CSS) -[inert]{pointer-events: none;user-select: none;}Plus no-keyboard-access and find-in-page-invisibility?
Will there be a way to override it (a-la-Alt + drag to select text in a link without activating a link)?
☆PhistucKOn Thu, Apr 1, 2021 at 9:15 AM Yoav Weiss <yoav...@chromium.org> wrote:On Tuesday, March 30, 2021 at 5:58:24 AM UTC+2 A Boxhall wrote:Contact emails
abox...@chromium.orgExplainer
https://github.com/WICG/inert/blob/main/explainer.mdSpecification
https://github.com/whatwg/html/pull/4288Any particular reason the PR hasn't landed? It seems like there's support from MozillaAlso, Mozilla folks mentioned 2 blocking issues for shipping this by default. Are those issues blocking the PR? How did we handle those issues?
On 4/15/21 14:07, Manuel Rego Casasnovas wrote:
> I'm also supportive of "inert", it's nice to see it coming to the browsers.
>
> I'm curious about the interop status, the feature hasn't shipped in
> Firefox yet so I'm not sure if this reflects the reality or not:
> https://wpt.fyi/results/inert?label=experimental&label=master&aligned
> Are Chromium and Firefox implementations interoperable?
>
> Apart from that, we haven't asked for signals to WebKit yet
> (https://bit.ly/blink-signals) unless I missed the mail.
wpt.fyi doesn't seem to be using the Firefox implementation of inert
because it's disabled by default. We enable it on automation and fail
some tests[1]. From a quick look:
* inert-node-is-uneditable.tentative.html fails because send_keys is
not implemented in Firefox, but if I do it manually, the test passes, so
it's not an issue.
* inert-node-is-unselectable.tentative.html is a false positive as
well (the inert node is in fact unselectable), but the test uses
document.execCommand("selectAll"), and that is not working as expected
in Firefox. I filed [2] for an expert on our editing code to weigh in,
but again inert seems to be behaving correctly.
* The iner-retargeting-*.html tests however are a known difference
between Firefox and Chrome. We don't want to implement special
hit-testing behavior for inert that is not exposed to CSS in other ways.
So if inert needs magic hit-testing behavior (and pointer-events: none
doesn't cut it for some reason) it should probably be a new
pointer-events value. This is tracked in [3] and there's some background
discussion in [4], and it doesn't seem there's consensus there...
More to the point, the main behavior difference is that `inert` in
Firefox is implemented in terms of CSS primitives, and does affect the
computed style of inert nodes (to have user-select: none,
pointer-events: none, cursor, etc [5]). I believe that's simpler
behavior to both implement and specify.
There also seems to be some other rather important spec issues that
haven't been resolved like [6], which I think we should get consensus on
before shipping.
> * Secondly, the value of inert is largely that it makes content
> non-interactive for /all/ modalities, rather than just pointers.
> This is a deliberate choice, because vast amounts of content is
> built exclusively considering the needs of users who used
> pointer-based devices, creating poor experiences for users of other
> modalities. I would like to encourage authors to use inert/instead
> of/ pointer-events: none (or pointer-events: inertif/when such a
> thing eventuates) as much as possible.
Sure, this I totally agree with! But that doesn't mean that inert
shouldn't be implemented in terms of other pre-existing primitives like
user-select, pointer-events, etc when those are already available, IMO.
> * Thirdly, I haven't seen an urgent use case for authors needing a way
> to detect when (inert) content matches pointer-events: none. That
> doesn't mean that it doesn't exist, but that I don't see any reason
> to consider not having it to be a blocking issue. Even if it does
> ship later, the risk that code could depend on inert content
> /not/ matching pointer-events: none seems non-existent.
I think that seems fair. To be clear that we can't think of an use case
for it doesn't mean that that doesn't exist, but I agree it's probably
not a blocking issue.
We can probably define the precise hit-testing behavior we want
somewhere like in this CSSWG issue[1], and then using it from inert?
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/eca4575a-42ad-40a4-8698-311e43d55c4en%40chromium.org.
Oriol, I've made you an owner of the Chromestatus entry. Could you please update it, fill in all fields to the new status, and mark it as review for intent-to-ship?Right now I see a few things that need update
* Description of feature (maybe?)* Milestone when it'll ship* Debuggability analysis
Done. I set 101 as the milestone since we are very close to the
branch point for 100.
I didn't find "review for intent-to-ship", chose "prepare to
ship".
-- Oriol Brufau
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/0a5fdb6e-2ba2-0f51-29c8-ea596b758459%40igalia.com.