mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
Adds support for `sibling-index()` and `sibling-count()` when parsing
`<number>` and `<integer>`. This is achieved by a new
`TreeCountingFunctionStyleValue` class which is converted within
`absolutized` to `NumberStyleValue` and `IntegerStyleValue` respectively
There are still a few kinks to work out in order to support these
everywhere, namely:
- There are some `StyleValue`s which aren't absolutized (i.e. those
which are stored within another `StyleValue` without an
`absolutize()` method.
- We don't have a way to represent this new `StyleValue` within
`{Number,Integer}OrCalculated`. This would be fixed if we were to
instead just use the `StyleValue` classes until style computation at
which time they would be absolutized into their respective
primitives (double, i64, etc) bypassing the need for *OrCalculated
entirely.
|
||
|---|---|---|
| .. | ||
| calc-sibling-function-in-shadow-dom.txt | ||
| calc-sibling-function-parsing.txt | ||
| calc-sibling-function.txt | ||
| sibling-function-container-query-invalidation.txt | ||
| sibling-function-container-query.txt | ||
| sibling-function-descriptors.tentative.txt | ||
| sibling-function-invalidation.txt | ||
| sibling-function-media-query.tentative.txt | ||
| sibling-index-keyframe-font-style-dynamic.txt | ||
| sibling-index-keyframe-font-variation-settings-dynamic.txt | ||
| sibling-index-keyframe-font-weight-dynamic.txt | ||
| sibling-index-keyframe-length-value-dynamic.txt | ||
| sibling-index-keyframe-palette-mix-dynamic.txt | ||
| sibling-index-keyframe-percent-dynamic.txt | ||
| sibling-index-keyframe-registered-properties-dynamic.txt | ||
| sibling-index-keyframe-rotate-dynamic.txt | ||
| sibling-index-keyframe-scale-dynamic.txt | ||
| sibling-index-keyframe-transform-dynamic.txt | ||
| sibling-index-keyframe-value-dynamic.txt | ||
| tree-scoped-sibling-function.txt | ||