mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-02 17:28:50 +02:00
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 |
||
|---|---|---|
| .. | ||
| arc_types.rs | ||
| conversions.rs | ||
| data.rs | ||
| media_features.rs | ||
| media_queries.rs | ||
| mod.rs | ||
| non_ts_pseudo_class_list.rs | ||
| pseudo_element.rs | ||
| pseudo_element_definition.mako.rs | ||
| regen_atoms.py | ||
| restyle_damage.rs | ||
| selector_parser.rs | ||
| snapshot.rs | ||
| snapshot_helpers.rs | ||
| traversal.rs | ||
| url.rs | ||
| values.rs | ||
| wrapper.rs | ||