servo/components/style/properties
Emilio Cobos Álvarez 8bb7d98f0c style: Add support for the revert-layer keyword
This patch looks bigger than it is, but it's mostly because
of plumbing.

To implement revert-layer we need not only the cascade origin of the
declaration, but the whole cascade level, plus also the layer order.

In order to do this, encapsulate these two things inside a 32-bit
`CascadePriority` struct and plumb it through the rule tree and so on.
This allows us to remove the packing and unpacking of CascadeLevel,
though I kept the ShadowCascadeOrder limit for now in case we need to
reintroduce it.

Fix `!important` behavior of layers while at it (implementing it in
`CascadeLevel::cmp`, spec quote included since it was tricky to find)
since some revert-layer tests were depending on it.

The style attribute test is failing now, but follow-up commit fixes
it, see spec issue.

In terms of the actual keyword implementation, it's sort of
straight-forward: We implement revert and revert-layer in a shared
way, by storing the cascade priority that reverted it.

Differential Revision: https://phabricator.services.mozilla.com/D133372
2023-06-09 10:22:22 +02:00
..
helpers style: Add support for the revert-layer keyword 2023-06-09 10:22:22 +02:00
longhands style: Implement parsing of the page property 2023-06-09 10:22:22 +02:00
shorthands style: Serialize text-decoration using Servo 2023-05-31 00:50:35 +02:00
build.py style: Part 2 - Add page-size attribute to nsStyleStruct and property parsing 2023-05-16 13:02:53 +02:00
cascade.rs style: Add support for the revert-layer keyword 2023-06-09 10:22:22 +02:00
computed_value_flags.rs style: Remove NS_AUTHOR_SPECIFIED_PADDING 2023-05-31 00:50:28 +02:00
counted_unknown_properties.py style: Implement parsing of the page property 2023-06-09 10:22:22 +02:00
data.py style: Support scrollbar-gutter in the style system 2023-06-09 10:22:19 +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: Part 1: Add animation-timeline longhand property in style system 2023-05-30 23:26:04 +02:00
helpers.mako.rs style: Add support for the revert-layer keyword 2023-06-09 10:22:22 +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: Add support for the revert-layer keyword 2023-06-09 10:22:22 +02:00