Files
ladybird/Tests/LibWeb/Text/expected/wpt-import/css/css-values/random-computed.tentative.txt
Andreas Kling 61d79a1e47 LibWeb: Parse CSS image-set()
Add an abstract image style value for image-set() and parse both the
standard and -webkit-prefixed spellings through the existing <image>
value path. The parser accepts URL and string image candidates,
optional resolution descriptors, and type() filters.

Track attr-taint through substituted component values so image-set()
candidates using attr()-derived URL-producing tokens are rejected when
resolved for URL-using properties.

Update the relevant WPT baselines now that image-set() parsing is
supported in additional value contexts.
2026-04-25 14:54:10 +02:00

157 lines
11 KiB
Plaintext

Harness status: OK
Found 150 tests
127 Pass
23 Fail
Pass Property scale value 'random(1, 11)'
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)'
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)'
Pass Property scale value 'random(40, 50, -5)'
Pass Property scale value 'random(5 * 1, 30 / 2)'
Pass Property scale value 'calc(2 * random(6, 16))'
Pass Property scale value 'random(NaN, 100)'
Pass Property scale value 'random(10, NaN)'
Pass Property scale value 'random(NaN, NaN)'
Pass Property scale value 'random(NaN, 100, 10)'
Pass Property scale value 'random(10, NaN, 10)'
Pass Property scale value 'random(NaN, NaN, 10)'
Pass Property scale value 'random(NaN, 100, NaN)'
Pass Property scale value 'random(10, NaN, NaN)'
Pass Property scale value 'random(NaN, NaN, NaN)'
Pass Property scale value 'random(10, 100, NaN)'
Pass Property scale value 'calc(10 + random(NaN, 100))'
Pass Property scale value 'calc(10 + random(10, NaN))'
Pass Property scale value 'calc(10 + random(NaN, NaN))'
Pass Property scale value 'calc(10 + random(NaN, 100, 10))'
Pass Property scale value 'calc(10 + random(10, NaN, 10))'
Pass Property scale value 'calc(10 + random(NaN, NaN, 10))'
Pass Property scale value 'calc(10 + random(NaN, 100, NaN))'
Pass Property scale value 'calc(10 + random(10, NaN, NaN))'
Pass Property scale value 'calc(10 + random(NaN, NaN, NaN))'
Pass Property scale value 'calc(10 + random(10, 100, NaN))'
Pass Property scale value 'random(infinity, 100)'
Pass Property scale value 'random(infinity, infinity)'
Pass Property scale value 'random(infinity, 100, 10)'
Pass Property scale value 'random(infinity, infinity, 10)'
Pass Property scale value 'random(infinity, 100, infinity)'
Pass Property scale value 'random(infinity, infinity, infinity)'
Pass Property scale value 'calc(10 + random(infinity, 100))'
Pass Property scale value 'calc(10 + random(infinity, infinity))'
Pass Property scale value 'calc(10 + random(infinity, infinity, 10))'
Pass Property scale value 'calc(10 + random(infinity, 100, infinity))'
Pass Property scale value 'calc(10 + random(infinity, infinity, infinity))'
Pass Property scale value 'calc(10 + random(infinity, 100, 10))'
Pass Property scale value 'random(10, infinity)'
Pass Property scale value 'random(10, infinity, 10)'
Pass Property scale value 'random(10, infinity, infinity)'
Pass Property scale value 'calc(10 + random(10, infinity))'
Pass Property scale value 'calc(10 + random(10, infinity, 10))'
Pass Property scale value 'calc(10 + random(10, infinity, infinity))'
Pass Property scale value 'random(10, 100, infinity)'
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(1, 300000)'
Pass Property scale value on pseudo element '::before' 'random(--bar, 1, 300000)'
Pass Property scale value on pseudo element '::before' 'random(element-shared, 1, 300000)'
Pass Property scale value on pseudo element '::before' 'random(element-shared --foo, 1, 300000)'
Pass Property translate value 'random(10%, 100%)'
Pass Property translate value 'random(3 * 10% , 10 * 10%)'
Pass Property translate value 'random(10%, 1%)'
Pass Property translate value 'random(--identifier element-shared, 10%, 100%)'
Pass Property text-indent value 'random(10%, 30%)'
Pass Property flex-basis value 'random(10%, 30%)'
Fail Property offset-distance value 'random(10%, 30%)'
Pass Property shape-margin value 'random(10%, 30%)'
Pass Property stroke-dasharray value 'random(10%, 30%)'
Pass Property stroke-dashoffset value 'random(10%, 30%)'
Pass Property stroke-width value 'random(10%, 30%)'
Pass Property background-position-x value 'random(10%, 30%)'
Pass Property background-position-y value 'random(10%, 30%)'
Pass Property border-top-left-radius value 'random(10%, 30%)'
Pass Property border-top-right-radius value 'random(10%, 30%)'
Pass Property border-bottom-left-radius value 'random(10%, 30%)'
Pass Property border-bottom-right-radius value 'random(10%, 30%)'
Fail Property scroll-padding-top value 'random(10%, 30%)'
Fail Property scroll-padding-bottom value 'random(10%, 30%)'
Fail Property scroll-padding-left value 'random(10%, 30%)'
Fail Property scroll-padding-right value 'random(10%, 30%)'
Pass Property cx value 'random(10%, 30%)'
Pass Property cy value 'random(10%, 30%)'
Pass Property rx value 'random(10%, 30%)'
Pass Property ry value 'random(10%, 30%)'
Pass Property x value 'random(10%, 30%)'
Pass Property y value 'random(10%, 30%)'
Fail Property border-image-slice value 'random(10%, 30%)'
Pass Property background-color value 'rgb(225, 215, 0, random(30%, 10%))'
Pass Property font-size value 'random(30%, 10%)'
Pass Property font-size value 'random(10px * 10% / 1%, 0%)'
Fail Property --percent value 'random(10%, 30%)'
Pass Property width value 'random(fixed random(1, 2), 10px, 100px)'
Pass Property translate value 'random(fixed random(-2, -1), 10%, 100%)'
Pass Property color value 'rgb(random(30, 10) random(60, 10) random(90, 10))'
Fail Property color value 'rgb(from blue random(51, 10) random(g + 51, g) random(b, b))'
Pass Property color value 'color-mix(in srgb, rgb(random(30, 10) 0 0), rgb(random(21, 10) 0 0))'
Pass Property math-depth value 'add(random(30, 10))'
Fail Property view-transition-name value 'ident("myident" random(30, 10))'
Pass Property background-image value 'image-set(url("http://example.com/image.png") calc(random(fixed 0.3, 0, 10) * 1x))'
Pass Property aspect-ratio value 'random(3, 1) / random(9, 6)'
Pass Property filter value 'drop-shadow(random(3px, 1px) random(6px, 1px) random(9px, 1px) black)'
Pass Property font-variation-settings value '"wght" random(300, 100)'
Pass Property font-feature-settings value '"liga" random(3, 1)'
Pass Property font-style value 'oblique random(90deg, 10deg)'
Fail Property font-palette value 'palette-mix(in lch, --blue calc(90% * random(1, 0)), --yellow 10%)'
Fail Property font-palette value 'palette-mix(in lch, --blue random(90%, 10%), --yellow 10%)'
Pass Property animation-timeline value 'view(random(10px, 10px) random(30px, 10px))'
Pass Property color value 'light-dark(rgb(random(30, 10) random(60, 10) random(90, 10)), rgb(random(30, 10) random(60, 10) random(90, 10)))'
Pass Property rotate value 'random(1, 0) random(1, 0) 1 90deg'
Pass Property rotate value 'x random(90deg, 30deg)'
Pass Property corner-shape value 'superellipse(random(3, 1))'
Fail Property offset-path value 'ray(random(30deg, 10deg))'
Fail Shared by property 'color' with values 'color-mix(in srgb, rgb(from blue random(10, 30) random(g, g + 30) random(b, b)), rgb(random(10, 90) 0 0))', 'color-mix(in srgb, rgb(from blue random(element-shared, 10, 30) random(element-shared, g, g + 30) random(element-shared, b, b)), rgb(random(element-shared, 10, 90) 0 0))'
Pass Shared by property 'math-depth' with values 'add(random(1, 30000))', 'add(random(element-shared, 1, 30000))'
Fail Shared by property 'view-transition-name' with values 'ident("myident" random(1, 300000))', 'ident("myident" random(element-shared, 1, 300000))'
Pass Shared by property 'aspect-ratio' with values 'random(1, 3000000, 1) / random(3000000, 9000000, 1)', 'random(element-shared, 1, 3000000, 1) / random(element-shared, 3000000, 9000000, 1)'
Pass Shared by property 'filter' with values 'drop-shadow(random(1px, 300000px) random(1px, 600000px) random(1px, 900000px) black)', 'drop-shadow(random(element-shared, 1px, 300000px) random(element-shared, 1px, 600000px) random(element-shared, 1px, 900000px) black)'
Pass Shared by property 'font-variation-settings' with values '"wght" random(100, 900)', '"wght" random(element-shared, 100, 900)'
Pass Shared by property 'font-style' with values 'oblique random(10deg, 90deg)', 'oblique random(element-shared, 10deg, 90deg)'
Fail Shared by property 'font-palette' with values 'palette-mix(in lch, --blue calc(90% * random(0, 1)), --yellow)', 'palette-mix(in lch, --blue calc(90% * random(element-shared, 0, 1)), --yellow)'
Fail Shared by property 'font-palette' with values 'palette-mix(in lch, --blue random(10%, 90%), --yellow)', 'palette-mix(in lch, --blue random(element-shared, 10%, 90%), --yellow)'
Pass Shared by property 'animation-timeline' with values 'view(random(1px, 300000px) random(300000px, 600000px))', 'view(random(element-shared, 1px, 300000px) random(element-shared, 300000px, 600000px))'
Pass Shared by property 'color' with values 'light-dark(rgb(random(10, 30) random(10, 60) random(10, 90)), rgb(random(30, 10) random(60, 10) random(90, 10)))', 'light-dark(rgb(random(element-shared, 10, 30) random(element-shared, 10, 60) random(element-shared, 10, 90)),
rgb(random(element-shared, 30, 10) random(element-shared, 60, 10) random(element-shared, 90, 10)))'
Pass Maximum random: 'random(a, b)'
Pass Maximum random - shorthand: random(a, b)
Pass Shared by property name and value index: random(element-shared, a, b)
Pass Shared by property and index in list value: random(a, b)
Fail Nested in fixed value random() function used for custom property: 'random(a, b)'
Fail random() in different custom properties on the same element should not be shared
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, random inside color functions: random(element-shared, a, b)
Pass Shared between elements within a property, unresolved percentage values: random(element-shared, a, b)
Fail Shared between elements within a property - shorthand: random(element-shared, a, b)
Pass Shared globally: random(--identifier element-shared, a, b)
Pass Shared globally - shorthand: random(element-shared --other-identifier, a, b)
Pass Shared by property - shorthand and longhand: random(element-shared, a, b)
Pass Shared by property - logical and physical property: random(element-shared, a, b)
Fail Fixed: random(fixed <number>, a, b)
Fail Custom property with random() inside transform() should not have 'fixed'
Fail random() with percentages inside multiple nested functions should have 'fixed'
Pass random(--identifier, ...) should be different between elements
Pass random() values should not be allowed as initial values in @property
Pass random() shared by property in var()
Fail random() shared by custom property in var()
Pass random() shared by shorthand property in var(), test random() value index
Pass random() shared by property in attr()
Pass random() shared by property in typed attr()