mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-30 11:37:16 +02:00
LibWeb/CSS: Reimplement var()/attr() as arbitrary substitution functions
"Arbitrary substitution functions" are a family of functions that includes var() and attr(). All of them resolve to an arbitrary set of component values that are not known at parse-time, so they have to be substituted at computed-value time. Besides it being nice to follow the spec closely, this means we'll be able to implement the others (such as `if()` and `inherit()`) more easily. The main omission here is the new "spread syntax", which can be implemented in the future.
This commit is contained in:
committed by
Tim Ledbetter
parent
b417d13a7b
commit
b6032b0fcd
Notes:
github-actions[bot]
2025-07-09 15:45:46 +00:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/LadybirdBrowser/ladybird/commit/b6032b0fcd2 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5226 Reviewed-by: https://github.com/tcl3 ✅
@@ -2,16 +2,15 @@ Harness status: OK
|
||||
|
||||
Found 11 tests
|
||||
|
||||
4 Pass
|
||||
7 Fail
|
||||
11 Pass
|
||||
Pass Self-cycle
|
||||
Pass Simple a/b cycle
|
||||
Pass Three-var cycle
|
||||
Fail Cycle that starts in the middle of a chain
|
||||
Fail Cycle with extra edge
|
||||
Fail Cycle with extra edge (2)
|
||||
Fail Cycle with extra edge (3)
|
||||
Fail Cycle with secondary cycle
|
||||
Fail Cycle with overlapping secondary cycle
|
||||
Fail Cycle with deeper secondary cycle
|
||||
Pass Cycle that starts in the middle of a chain
|
||||
Pass Cycle with extra edge
|
||||
Pass Cycle with extra edge (2)
|
||||
Pass Cycle with extra edge (3)
|
||||
Pass Cycle with secondary cycle
|
||||
Pass Cycle with overlapping secondary cycle
|
||||
Pass Cycle with deeper secondary cycle
|
||||
Pass Cycle in unused fallback
|
||||
Reference in New Issue
Block a user