servo/components/servo_arc
Emilio Cobos Álvarez 93e0711194 style: [css-nesting] Process nested rules at cascade data rebuild
More nesting plumbing. Still does nothing because we don't parse the
nested rules.

Should be trivial to prove this patch doesn't change any behavior so
far, but I want to land it on its own because it can have performance
implications.

This follows the pattern of what we do with other rules like layers and
container conditions, that is, keep the ancestor selectors in a stack,
and poke at the last one in order to replace the ancestor.

This changes the behavior of replace_parent_selector as with the newer
version of the spec, stuff like:

  div {
    .foo {
      stuff
    }
  }

Should work as `div .foo`. A test is added for this case.

Differential Revision: https://phabricator.services.mozilla.com/D176560
2023-11-21 15:36:35 +01:00
..
Cargo.toml Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
lib.rs style: [css-nesting] Process nested rules at cascade data rebuild 2023-11-21 15:36:35 +01:00
LICENSE-APACHE Add apache license to servo_arc. 2022-09-06 09:11:48 -04:00
LICENSE-MIT Add MIT license to servo_arc. 2022-09-06 09:12:24 -04:00