uBlock/platform/mv3/extension/js/scripting
Raymond Hill 52b46eb98b
Add procedural operator `:shadow()` -- status is experimental
For internal use by filter list maintainers, do not open issues
about this. Left undocumented on purpose.

This new procedural operator allows to target elements in the
shadow root of an element.

subject:shadow(arg)

- Description: Look-up matching elements inside the shadow root (if
  present) of _subject_.
- Chainable: Yes
- _subject_: Can be a plain or procedural selector.
- _arg_: A plain or a procedural selector for the elements to target
  inside the shadowroot.

Example:

..##body > div:not([class]):shadow(div[style]):has(:shadow([data-i18n^="#ad"]))
2024-03-13 14:28:53 -04:00
..
css-declarative.js Change official description in source code top comment 2023-12-04 12:10:34 -05:00
css-generic.js Change official description in source code top comment 2023-12-04 12:10:34 -05:00
css-procedural.js Add procedural operator `:shadow()` -- status is experimental 2024-03-13 14:28:53 -04:00
css-specific.js Change official description in source code top comment 2023-12-04 12:10:34 -05:00