servo/components/style/sharing
David Shin ff8100d396 style: Correct style sharing handling for any element that considered :has() in selector matching
For any element that anchors a `:has()` selector (i.e. Matches a selector that
contains a `:has()` on its rightmost side), we prevent style sharing altogether,
as evaluation of the `:has()` selector is required in the first place to
determine style sharing.

On the other hand, any element matching a rule containing `:has()` without
anchoring it can do style sharing for siblings, but not cousins.

Differential Revision: https://phabricator.services.mozilla.com/D176836
2023-11-24 08:57:14 +01:00
..
checks.rs style: Correct style sharing handling for any element that considered :has() in selector matching 2023-11-24 08:57:14 +01:00
mod.rs style: Correct style sharing handling for any element that considered :has() in selector matching 2023-11-24 08:57:14 +01:00