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

LibWeb: Implement inert subtree behaviors #3475

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

tcl3
Copy link
Member

@tcl3 tcl3 commented Feb 6, 2025

When a HTML element has the inert attribute, that attribute and all of its flat-tree descendants now implement the behaviors specified in https://html.spec.whatwg.org/multipage/interaction.html#inert-subtrees, namely:

Inert elements are:

  • Treated as not visible for hit-testing
  • Not selectable
  • Not editable
  • Ignored by find-in-page queries

@tcl3 tcl3 changed the title LibWeb: Implement LibWeb: Implement inert subtree behaviors Feb 6, 2025
@tcl3 tcl3 force-pushed the libweb_inert_attribute branch 3 times, most recently from d953754 to c2089cd Compare February 6, 2025 00:35
@tcl3 tcl3 marked this pull request as draft February 6, 2025 10:53
@tcl3 tcl3 force-pushed the libweb_inert_attribute branch from c2089cd to 8db9b3a Compare February 9, 2025 20:03
@tcl3 tcl3 marked this pull request as ready for review February 9, 2025 20:03
Libraries/LibWeb/HTML/HTMLElement.cpp Outdated Show resolved Hide resolved
@tcl3 tcl3 force-pushed the libweb_inert_attribute branch from 8db9b3a to f2e9d37 Compare February 10, 2025 23:06
@AtkinsSJ
Copy link
Member

I want to make you aware of this upcoming change, which connects inertness up to a CSS property: whatwg/html#10956

I don't know if/how much that'll affect your work here. Hopefully not much. 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants