servo/components/style/properties
Martin Robinson 64febfbe9a style: Implement CSS 'contain: style'
Add an implementation of CSS `contain: style`. This introduces two new
data structures, the ContainStyleScope and ContainStyleScopeManager.

ContainStyleScope manages one `contain: style` "world" which has its own
counter and quote lists. The contents of these lists depend on their
parent scopes, but are not affected by their children.
ContainStyleScopeManager manages a tree of scopes starting at a root
scope which is outside of any `contain: style` element.

Scopes are stored in a hash table that is keyed off of the nsIContent
which establishes the `contain: style` scope. When modifying quote or
content lists, the ContainStyleScopeManager is responsible for finding
the appropriate `contain: style` scope to modify.

Perhaps the most complex part of this is that counters and quotes have
read access to the state of counters and quotes that are in ancestor
`contain: style` scopes. In the case of counters, USE nodes that are at
the beginning of counter lists might have a counter scope that starts in
an ancestor `contain: style` scope. When nsCounterNode::SetScope() is
called, the code may look upward in the `contain: style` scope tree to
find the start of the counter scope. In the case of quotes, the first
node in the quote list must look for the state of quotes in ancestor
`contain: style` scopes.

Differential Revision: https://phabricator.services.mozilla.com/D149508
2023-10-02 14:37:19 +00:00
..
helpers style: Move transitions and animations to nsStyleUIReset 2023-08-16 17:46:41 +02:00
longhands style: Support scroll-timeline-axis longhand in style system 2023-10-02 14:37:19 +00:00
shorthands style: Fix grid shorthand parsing to not incorrectly ignore the last token in one case 2023-10-02 14:37:19 +00:00
build.py Make the choice of layout runtime setting 2023-07-06 14:49:24 +02:00
cascade.rs style: Check for allowed colors recursively in forced-colors mode 2023-10-02 14:37:19 +00:00
computed_value_flags.rs style: Implement CSS 'contain: style' 2023-10-02 14:37:19 +00:00
counted_unknown_properties.py style: Parse scroll-snap-stop style and propagate it to APZ side 2023-08-16 17:46:41 +02:00
data.py style: Parse scroll-snap-stop style and propagate it to APZ side 2023-08-16 17:46:41 +02:00
declaration_block.rs style: Add support for the revert-layer keyword 2023-06-09 10:22:22 +02:00
gecko.mako.rs style: Move fixed-point font types to Rust 2023-10-02 14:37:19 +00:00
helpers.mako.rs Make the choice of layout runtime setting 2023-07-06 14:49:24 +02:00
Mako-1.1.2-py2.py3-none-any.whl style: Update mako in the style system. 2020-04-16 16:35:07 +02:00
properties.html.mako Generate apis.html and css-properties.json for docs as part of crates’ build scripts 2019-07-30 08:37:33 +02:00
properties.mako.rs style: Use ColorMix for interpolated colors in the computed style rather than ComplexColorRatios 2023-08-16 17:46:41 +02:00