mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-24 00:49:46 +00:00
For example, this:
```css
.foo {
color: red;
&:hover {
color: green;
}
}
```
now has the same effect as this:
```css
.foo {
color: red;
}
.foo:hover {
color: green;
}
```
CSSStyleRule now has "absolutized selectors", which are its selectors
with any `&`s resolved. We use these instead of the "real" selectors
when matching them, meaning the style computer doesn't have to know or
care about where the selector appears in the CSS document.
|
||
|---|---|---|
| .. | ||
| ComponentValue.cpp | ||
| ComponentValue.h | ||
| Dimension.h | ||
| GradientParsing.cpp | ||
| Helpers.cpp | ||
| MediaParsing.cpp | ||
| Parser.cpp | ||
| Parser.h | ||
| ParsingContext.cpp | ||
| ParsingContext.h | ||
| SelectorParsing.cpp | ||
| Token.cpp | ||
| Token.h | ||
| Tokenizer.cpp | ||
| Tokenizer.h | ||
| TokenStream.h | ||
| Types.cpp | ||
| Types.h | ||