mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb: Support non-fixed <random-value-sharing>
This works by generating random values using XorShift128PlusRNG at compute time and then caching them on the document using the relevant random-caching-key
This commit is contained in:
Notes:
github-actions[bot]
2025-12-01 11:01:47 +00:00
Author: https://github.com/Calme1709 Commit: https://github.com/LadybirdBrowser/ladybird/commit/12e8f503aa4 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6707 Reviewed-by: https://github.com/AtkinsSJ ✅ Reviewed-by: https://github.com/gmta
@@ -2,16 +2,15 @@ Harness status: OK
|
||||
|
||||
Found 72 tests
|
||||
|
||||
59 Pass
|
||||
13 Fail
|
||||
72 Pass
|
||||
Pass Property scale value 'random(1, 11)'
|
||||
Fail Property scale value 'random(--foo, 2, 12)'
|
||||
Fail Property scale value 'random(--foo element-shared, 3, 13)'
|
||||
Fail Property scale value 'random(element-shared --foo, 4, 14)'
|
||||
Pass Property scale value 'random(--foo, 2, 12)'
|
||||
Pass Property scale value 'random(--foo element-shared, 3, 13)'
|
||||
Pass Property scale value 'random(element-shared --foo, 4, 14)'
|
||||
Pass Property scale value 'random(0, 10, 5)'
|
||||
Fail Property scale value 'random(--foo, 10, 20, 5)'
|
||||
Fail Property scale value 'random(--foo element-shared, 20, 30, 5)'
|
||||
Fail Property scale value 'random(element-shared --foo, 30, 40, 5)'
|
||||
Pass Property scale value 'random(--foo, 10, 20, 5)'
|
||||
Pass Property scale value 'random(--foo element-shared, 20, 30, 5)'
|
||||
Pass Property scale value 'random(element-shared --foo, 30, 40, 5)'
|
||||
Pass Property scale value 'random(100, 10)'
|
||||
Pass Property scale value 'random(-10, -100)'
|
||||
Pass Property scale value 'random(-100, -10)'
|
||||
@@ -61,18 +60,18 @@ Pass Property scale value 'calc(10 + random(10, 100, infinity))'
|
||||
Pass Property scale value 'random(10, 100, -infinity)'
|
||||
Pass Property scale value 'calc(10 + random(10, 100, -infinity))'
|
||||
Pass Property scale value on pseudo element '::before' 'random(7, 17)'
|
||||
Fail Property scale value on pseudo element '::before' 'random(--bar, 8, 18)'
|
||||
Fail Property scale value on pseudo element '::before' 'random(element-shared, 9, 19)'
|
||||
Fail Property scale value on pseudo element '::before' 'random(element-shared --foo, 10, 20)'
|
||||
Pass Property scale value on pseudo element '::before' 'random(--bar, 8, 18)'
|
||||
Pass Property scale value on pseudo element '::before' 'random(element-shared, 9, 19)'
|
||||
Pass Property scale value on pseudo element '::before' 'random(element-shared --foo, 10, 20)'
|
||||
Pass Property translate value 'random(10%, 100%)'
|
||||
Pass Property translate value 'random(fixed random(1, 2), 10%, 100%)'
|
||||
Pass Property translate value 'random(fixed random(-2, -1), 10%, 100%)'
|
||||
Fail Maximum random: 'random(a, b)'
|
||||
Fail Maximum random - shorthand: random(a, b))
|
||||
Fail Shared by name within an element: 'random(--identifier, a, b)'
|
||||
Pass Maximum random: 'random(a, b)'
|
||||
Pass Maximum random - shorthand: random(a, b))
|
||||
Pass Shared by name within an element: 'random(--identifier, a, b)'
|
||||
Pass Shared by name within an element - shorthand: random(--identifier, a, b))
|
||||
Pass Shared between elements within a property: random(element-shared, a, b)
|
||||
Pass Shared between elements within a property - shorthand: random(element-shared, a, b))
|
||||
Fail Shared globally: random(--identifier element-shared, a, b)
|
||||
Pass Shared globally: random(--identifier element-shared, a, b)
|
||||
Pass Shared globally - shorthand: random(element-shared, a, b))
|
||||
Pass Fixed: random(fixed <number>, a, b)
|
||||
Reference in New Issue
Block a user