gecko-dev/servo/components/style/gecko
David Shin c7ccd24b1c Bug 1974230: Add UA-only pseudo-selector for suppressing frame generation of elements during printing. r=firefox-style-system-reviewers,emilio
The plan is to apply this internal pseudo-selector during construction of print
selection subtree - Currently, every node outside of the selection is deleted,
but elements outside of the selection would have this pseudo-selector applied
instead. In the UA stylesheet, we ensure that elements matching this
pseudo-class have `display: none` applied.

This change would make print selection behave more consistently by preserving
matching for tree-structural pseudo-classes; however, the main reason for this
change is to allow the copied document for print selection can preserve the
relation between every `<style>` node and `Stylesheet`, which is required for
`@scope` with implicit scope to behave properly (As the implicit scope root is
defined as the parent of the style node).

Without this change, attempting to preserve relations between `<style>` and
`Stylesheet` would result in having all stylesheets deleted because `<style>`
nodes are never selected, and thus deleted, then causing the deletion of the
stylesheet.

Differential Revision: https://phabricator.services.mozilla.com/D255164
2025-07-04 18:49:07 +00:00
..
arc_types.rs
conversions.rs
data.rs
media_features.rs Bug 1940052 - Apply fixed position css to Android pip media query r=emilio,twisniewski 2025-04-29 14:33:50 +00:00
media_queries.rs Bug 1967139 - [x11] CSD decoration painting shouldn't honor text scale. r=stransky 2025-05-19 11:52:54 +00:00
mod.rs
non_ts_pseudo_class_list.rs Bug 1974230: Add UA-only pseudo-selector for suppressing frame generation of elements during printing. r=firefox-style-system-reviewers,emilio 2025-07-04 18:49:07 +00:00
pseudo_element.rs Bug 1964949 - Implement the selector matching for <pt-name-and-class-selector>. r=emilio,view-transitions-reviewers 2025-06-15 02:13:13 +00:00
pseudo_element_definition.mako.rs Bug 1972440 - Update mako templates to work with mako version 1.3.10 r=emilio 2025-06-19 22:30:58 +00:00
regen_atoms.py
restyle_damage.rs
selector_parser.rs Bug 1974386 - Implement :heading & :heading() selectors r=emilio 2025-06-30 19:23:49 +00:00
snapshot.rs
snapshot_helpers.rs
traversal.rs
url.rs
values.rs
wrapper.rs Bug 1974230: Add UA-only pseudo-selector for suppressing frame generation of elements during printing. r=firefox-style-system-reviewers,emilio 2025-07-04 18:49:07 +00:00