Luce packages
LuceLuce BaseLuciaOS

dymokomi/luce-browser-engine

Source of release 0.6.0

0.6.0 / src / web / css / tests_computed_properties_cases.lucb

#==============================================================================================
#
#   tests_computed_properties_cases - ComputedProperties' readers pinned to the reference build
#
#   DESCRIPTION:
#       Generated (a test vector table) from the output of a local oracle that builds a
#       ComputedProperties from initial and declared values with the reference build's
#       StyleComputer::compute_value_of_property and calls one reader per case
#       (luce-browser-tools, oracles/luce-browser-engine/computed_properties: oracle.cpp,
#       cases.txt, gen_luce_cases.py).
#
#==============================================================================================

## One oracle case: the reader, the declarations ("property: value; ...") and the reference
## build's printout of the reader's result.
struct TestComputedPropertiesCase:
    let reader: str
    let declarations: str
    let expected: str

## Every oracle case, in cases.txt order.
let test_computed_properties_cases: TestComputedPropertiesCase[197] = [
    TestComputedPropertiesCase(reader = "initial_values", declarations = "", expected = "16 400 0 0px 4278190080 0 inline 2 3 4 3225436224 3235172552 0px 0px 0px 0px auto auto auto auto none 1px auto 0s none 012 1 | 16 4278190080 1 1 auto 0px 0px 0px 0px 1 50% 3 50% 1 50% 3 50% 50% 50% 0% 0px 1 11 0 0 0 00 1 1"),
    TestComputedPropertiesCase(reader = "font", declarations = "", expected = "16 400 100% 0 0 18"),
    TestComputedPropertiesCase(reader = "font", declarations = "font-size: 20px; font-weight: bold; line-height: 1.5", expected = "20 700 100% 0 0 30"),
    TestComputedPropertiesCase(reader = "font", declarations = "font-size: 2em; font-weight: 350; font-width: condensed; font-style: italic; line-height: normal", expected = "32 350 75% 1 0 37"),
    TestComputedPropertiesCase(reader = "font", declarations = "font-size: 13px; line-height: normal", expected = "13 400 100% 0 0 15"),
    TestComputedPropertiesCase(reader = "font", declarations = "font-size: 15px; line-height: 22px; font-style: oblique 20deg; font-optical-sizing: none", expected = "15 400 100% 2 1 22"),
    TestComputedPropertiesCase(reader = "font", declarations = "font-size: large; font-weight: lighter; line-height: 140%", expected = "19.1875 100 100% 0 0 22.40625"),
    TestComputedPropertiesCase(reader = "font", declarations = "font-size: calc(10px + 1em); font-width: 75%; line-height: calc(1px + 1.25em)", expected = "26 400 75% 0 0 21"),
    TestComputedPropertiesCase(reader = "size_value", declarations = "", expected = "auto auto none"),
    TestComputedPropertiesCase(reader = "size_value", declarations = "width: 50%; min-height: 10px; max-width: fit-content", expected = "50% 10px fit-content"),
    TestComputedPropertiesCase(reader = "size_value", declarations = "width: calc(100% - 20px); min-height: min-content; max-width: 20em", expected = "calc(100% - 20px) min-content 320px"),
    TestComputedPropertiesCase(reader = "size_value", declarations = "width: max-content; min-height: auto; max-width: none", expected = "max-content auto none"),
    TestComputedPropertiesCase(reader = "gap_value", declarations = "", expected = "normal-gap normal-gap"),
    TestComputedPropertiesCase(reader = "gap_value", declarations = "column-gap: 10px; row-gap: 5%", expected = "10px 5%"),
    TestComputedPropertiesCase(reader = "gap_value", declarations = "column-gap: calc(5px + 2%); row-gap: normal", expected = "calc(2% + 5px) normal-gap"),
    TestComputedPropertiesCase(reader = "length_box", declarations = "", expected = "0px 0px 0px 0px / auto auto auto auto"),
    TestComputedPropertiesCase(reader = "length_box", declarations = "margin-top: 10px; margin-right: 5%; margin-bottom: auto; margin-left: 2em; top: 0; right: 10%; bottom: calc(10px + 5%); left: auto", expected = "10px 5% auto 32px / 0px 10% calc(5% + 10px) auto"),
    TestComputedPropertiesCase(reader = "color", declarations = "", expected = "4278190080 0 4278190080"),
    TestComputedPropertiesCase(reader = "color", declarations = "color: red; background-color: rgb(1 2 3 / 50%); border-top-color: currentcolor", expected = "4294901760 2147549699 4278190080"),
    TestComputedPropertiesCase(reader = "color", declarations = "color: #12345678; background-color: hsl(120 50% 50%); border-top-color: transparent", expected = "2014458966 4282433344 0"),
    TestComputedPropertiesCase(reader = "color", declarations = "color: rebeccapurple; background-color: oklch(70% 0.1 200); border-top-color: color-mix(in srgb, red, blue)", expected = "4284887961 4282429879 4286578816"),
    TestComputedPropertiesCase(reader = "anchor_names", declarations = "", expected = "[]"),
    TestComputedPropertiesCase(reader = "anchor_names", declarations = "anchor-name: --a", expected = "[--a]"),
    TestComputedPropertiesCase(reader = "anchor_names", declarations = "anchor-name: --a, --b, --c", expected = "[--a | --b | --c]"),
    TestComputedPropertiesCase(reader = "color_interpolation", declarations = "", expected = "2"),
    TestComputedPropertiesCase(reader = "color_interpolation", declarations = "color-interpolation: linearrgb", expected = "1"),
    TestComputedPropertiesCase(reader = "color_interpolation", declarations = "color-interpolation: srgb", expected = "2"),
    TestComputedPropertiesCase(reader = "text_anchor", declarations = "text-anchor: middle", expected = "1"),
    TestComputedPropertiesCase(reader = "text_anchor", declarations = "text-anchor: end", expected = "2"),
    TestComputedPropertiesCase(reader = "dominant_baseline", declarations = "", expected = "-"),
    TestComputedPropertiesCase(reader = "dominant_baseline", declarations = "dominant-baseline: central", expected = "4"),
    TestComputedPropertiesCase(reader = "dominant_baseline", declarations = "dominant-baseline: alphabetic", expected = "1"),
    TestComputedPropertiesCase(reader = "text_align", declarations = "", expected = "2"),
    TestComputedPropertiesCase(reader = "text_align", declarations = "text-align: center", expected = "0"),
    TestComputedPropertiesCase(reader = "text_align", declarations = "text-align: justify", expected = "1"),
    TestComputedPropertiesCase(reader = "text_align", declarations = "text-align: -libweb-center", expected = "7"),
    TestComputedPropertiesCase(reader = "text_justify", declarations = "text-justify: inter-word", expected = "2"),
    TestComputedPropertiesCase(reader = "text_overflow", declarations = "text-overflow: ellipsis", expected = "1"),
    TestComputedPropertiesCase(reader = "text_rendering", declarations = "text-rendering: optimizeLegibility", expected = "2"),
    TestComputedPropertiesCase(reader = "text_underline_offset", declarations = "", expected = "2"),
    TestComputedPropertiesCase(reader = "text_underline_offset", declarations = "text-underline-offset: 3px", expected = "3"),
    TestComputedPropertiesCase(reader = "text_underline_offset", declarations = "text-underline-offset: 25%", expected = "4"),
    TestComputedPropertiesCase(reader = "text_underline_offset", declarations = "font-size: 20px; text-underline-offset: 0.5em", expected = "8"),
    TestComputedPropertiesCase(reader = "text_underline_position", declarations = "", expected = "0 0"),
    TestComputedPropertiesCase(reader = "text_underline_position", declarations = "text-underline-position: under", expected = "2 0"),
    TestComputedPropertiesCase(reader = "text_underline_position", declarations = "text-underline-position: from-font left", expected = "1 1"),
    TestComputedPropertiesCase(reader = "background_layers", declarations = "", expected = "[] clip=0"),
    TestComputedPropertiesCase(reader = "background_layers", declarations = "background-image: linear-gradient(red, blue)", expected = "[linear-gradient(red, blue) 2 2 0 0% 0% 2 auto auto 1 1 0] clip=0"),
    TestComputedPropertiesCase(reader = "background_layers", declarations = "background-image: linear-gradient(red, blue), none, radial-gradient(green, white); background-repeat: no-repeat, repeat-x; background-position-x: 10px, 50%; background-position-y: bottom 5px, top; background-size: cover, 10px auto, contain; background-clip: content-box; background-origin: border-box; background-attachment: fixed, local; background-blend-mode: multiply", expected = "[linear-gradient(red, blue) 0 0 1 10px calc(100% - 5px) 1 auto auto 0 0 1 | radial-gradient(green, white) 0 0 1 10px calc(100% - 5px) 0 auto auto 0 0 1] clip=1"),
    TestComputedPropertiesCase(reader = "background_layers", declarations = "background-image: none, none; background-clip: padding-box, text", expected = "[] clip=3"),
    TestComputedPropertiesCase(reader = "border_spacing", declarations = "", expected = "0px 0px"),
    TestComputedPropertiesCase(reader = "border_spacing", declarations = "border-spacing: 2px", expected = "2px 2px"),
    TestComputedPropertiesCase(reader = "border_spacing", declarations = "border-spacing: 2px 1em", expected = "2px 16px"),
    TestComputedPropertiesCase(reader = "caption_side", declarations = "caption-side: bottom", expected = "1"),
    TestComputedPropertiesCase(reader = "clip", declarations = "", expected = "1 auto auto auto auto"),
    TestComputedPropertiesCase(reader = "clip", declarations = "clip: rect(1px, 2px, 3px, 4px)", expected = "0 1px 2px 3px 4px"),
    TestComputedPropertiesCase(reader = "clip", declarations = "clip: rect(1px, auto, 3em, auto)", expected = "0 1px auto 48px auto"),
    TestComputedPropertiesCase(reader = "display", declarations = "", expected = "inline"),
    TestComputedPropertiesCase(reader = "display", declarations = "display: block", expected = "block"),
    TestComputedPropertiesCase(reader = "display", declarations = "display: inline-flex", expected = "inline-flex"),
    TestComputedPropertiesCase(reader = "display", declarations = "display: list-item", expected = "list-item"),
    TestComputedPropertiesCase(reader = "display", declarations = "display: none", expected = "none"),
    TestComputedPropertiesCase(reader = "display", declarations = "display: table-cell", expected = "table-cell"),
    TestComputedPropertiesCase(reader = "float", declarations = "float: left", expected = "1"),
    TestComputedPropertiesCase(reader = "float", declarations = "float: inline-end", expected = "4"),
    TestComputedPropertiesCase(reader = "clear", declarations = "clear: both", expected = "3"),
    TestComputedPropertiesCase(reader = "column_span", declarations = "column-span: all", expected = "1"),
    TestComputedPropertiesCase(reader = "content_visibility", declarations = "content-visibility: auto", expected = "1"),
    TestComputedPropertiesCase(reader = "cursor", declarations = "", expected = "[0]"),
    TestComputedPropertiesCase(reader = "cursor", declarations = "cursor: pointer", expected = "[5]"),
    TestComputedPropertiesCase(reader = "cursor", declarations = "cursor: url(foo.png) 2 3, text", expected = "[url(\"foo.png\") 2 3 | 10]"),
    TestComputedPropertiesCase(reader = "cursor", declarations = "cursor: grab", expected = "[17]"),
    TestComputedPropertiesCase(reader = "tab_size", declarations = "", expected = "number 8"),
    TestComputedPropertiesCase(reader = "tab_size", declarations = "tab-size: 4", expected = "number 4"),
    TestComputedPropertiesCase(reader = "tab_size", declarations = "tab-size: 20px", expected = "length 20px"),
    TestComputedPropertiesCase(reader = "tab_size", declarations = "tab-size: calc(2 * 3)", expected = "number 6"),
    TestComputedPropertiesCase(reader = "tab_size", declarations = "tab-size: calc(10px + 1em)", expected = "length 26px"),
    TestComputedPropertiesCase(reader = "white_space", declarations = "", expected = "0 000"),
    TestComputedPropertiesCase(reader = "white_space", declarations = "white-space-collapse: preserve; white-space-trim: discard-before discard-inner", expected = "2 101"),
    TestComputedPropertiesCase(reader = "white_space", declarations = "white-space-collapse: break-spaces; white-space-trim: discard-after", expected = "5 010"),
    TestComputedPropertiesCase(reader = "word_break", declarations = "word-break: break-all", expected = "2"),
    TestComputedPropertiesCase(reader = "spacing", declarations = "", expected = "0 0"),
    TestComputedPropertiesCase(reader = "spacing", declarations = "word-spacing: 3px; letter-spacing: -1px", expected = "3 -1"),
    TestComputedPropertiesCase(reader = "spacing", declarations = "word-spacing: 0.5em; letter-spacing: 10%", expected = "8 1.59375"),
    TestComputedPropertiesCase(reader = "spacing", declarations = "font-size: 20px; word-spacing: 1em; letter-spacing: calc(1px + 0.1em)", expected = "16 2.59375"),
    TestComputedPropertiesCase(reader = "line_style", declarations = "", expected = "0 1"),
    TestComputedPropertiesCase(reader = "line_style", declarations = "border-top-style: dashed; outline-style: auto", expected = "3 0"),
    TestComputedPropertiesCase(reader = "line_style", declarations = "border-top-style: double; outline-style: groove", expected = "5 6"),
    TestComputedPropertiesCase(reader = "text_decoration", declarations = "", expected = "[] 1 3 auto"),
    TestComputedPropertiesCase(reader = "text_decoration", declarations = "text-decoration-line: underline overline; text-decoration-skip-ink: none; text-decoration-style: wavy; text-decoration-thickness: from-font", expected = "[1 | 2] 2 4 from-font"),
    TestComputedPropertiesCase(reader = "text_decoration", declarations = "text-decoration-line: line-through; text-decoration-thickness: 3px", expected = "[3] 1 3 3px"),
    TestComputedPropertiesCase(reader = "text_decoration", declarations = "text-decoration-thickness: 10%", expected = "[] 1 3 10%"),
    TestComputedPropertiesCase(reader = "text_transform", declarations = "text-transform: uppercase", expected = "6"),
    TestComputedPropertiesCase(reader = "text_transform", declarations = "text-transform: full-width", expected = "2"),
    TestComputedPropertiesCase(reader = "text_indent", declarations = "", expected = "0px 00"),
    TestComputedPropertiesCase(reader = "text_indent", declarations = "text-indent: 10px each-line hanging", expected = "10px 11"),
    TestComputedPropertiesCase(reader = "text_indent", declarations = "text-indent: 5%", expected = "5% 00"),
    TestComputedPropertiesCase(reader = "text_wrap_mode", declarations = "text-wrap-mode: nowrap", expected = "1"),
    TestComputedPropertiesCase(reader = "list_style_position", declarations = "list-style-position: inside", expected = "0"),
    TestComputedPropertiesCase(reader = "flex", declarations = "", expected = "0 0 auto 0 1 0"),
    TestComputedPropertiesCase(reader = "flex", declarations = "flex-direction: column-reverse; flex-wrap: wrap; flex-basis: content; flex-grow: 2; flex-shrink: 0.5; order: -3", expected = "3 1 content 2 0.5 -3"),
    TestComputedPropertiesCase(reader = "flex", declarations = "flex-basis: 30%; flex-grow: 0.25; order: 7", expected = "0 0 30% 0.25 1 7"),
    TestComputedPropertiesCase(reader = "flex", declarations = "flex-basis: 10em", expected = "0 0 160px 0 1 0"),
    TestComputedPropertiesCase(reader = "accent_color", declarations = "", expected = "4282232553 4282232553"),
    TestComputedPropertiesCase(reader = "accent_color", declarations = "accent-color: green", expected = "4278222848 4278222848"),
    TestComputedPropertiesCase(reader = "alignment", declarations = "", expected = "0 5 0 0 5 0"),
    TestComputedPropertiesCase(reader = "alignment", declarations = "align-content: space-between; align-items: center; align-self: flex-end; justify-content: space-evenly; justify-items: start; justify-self: stretch", expected = "6 1 4 8 10 11"),
    TestComputedPropertiesCase(reader = "alignment", declarations = "align-items: baseline; justify-content: center; justify-items: center", expected = "0 0 0 5 1 0"),
    TestComputedPropertiesCase(reader = "appearance", declarations = "", expected = "7"),
    TestComputedPropertiesCase(reader = "appearance", declarations = "appearance: none", expected = "7"),
    TestComputedPropertiesCase(reader = "appearance", declarations = "appearance: button", expected = "0"),
    TestComputedPropertiesCase(reader = "appearance", declarations = "appearance: textfield", expected = "15"),
    TestComputedPropertiesCase(reader = "appearance", declarations = "appearance: menulist-button", expected = "6"),
    TestComputedPropertiesCase(reader = "appearance", declarations = "appearance: checkbox", expected = "0"),
    TestComputedPropertiesCase(reader = "filters", declarations = "", expected = "none / none"),
    TestComputedPropertiesCase(reader = "filters", declarations = "filter: blur(2px) brightness(50%); backdrop-filter: grayscale(1)", expected = "blur(2px) brightness(0.5) / grayscale(1)"),
    TestComputedPropertiesCase(reader = "filters", declarations = "filter: drop-shadow(1px 2px red)", expected = "drop-shadow(red 1px 2px) / none"),
    TestComputedPropertiesCase(reader = "opacities", declarations = "", expected = "1 1 1 1 1"),
    TestComputedPropertiesCase(reader = "opacities", declarations = "opacity: 0.5; fill-opacity: 25%; stroke-opacity: 0; stop-opacity: 2; flood-opacity: 0.1", expected = "0.5 0.25 0 1 0.10000000149011612"),
    TestComputedPropertiesCase(reader = "visibility", declarations = "", expected = "2"),
    TestComputedPropertiesCase(reader = "visibility", declarations = "visibility: hidden", expected = "1"),
    TestComputedPropertiesCase(reader = "visibility", declarations = "visibility: collapse", expected = "0"),
    TestComputedPropertiesCase(reader = "image_rendering", declarations = "image-rendering: pixelated", expected = "3"),
    TestComputedPropertiesCase(reader = "overflow", declarations = "", expected = "4 4"),
    TestComputedPropertiesCase(reader = "overflow", declarations = "overflow-x: hidden; overflow-y: scroll", expected = "2 3"),
    TestComputedPropertiesCase(reader = "overflow", declarations = "overflow-x: clip; overflow-y: auto", expected = "1 0"),
    TestComputedPropertiesCase(reader = "box_sizing", declarations = "box-sizing: border-box", expected = "0"),
    TestComputedPropertiesCase(reader = "pointer_events", declarations = "pointer-events: none", expected = "2"),
    TestComputedPropertiesCase(reader = "vertical_align", declarations = "", expected = "keyword 0"),
    TestComputedPropertiesCase(reader = "vertical_align", declarations = "vertical-align: middle", expected = "keyword 2"),
    TestComputedPropertiesCase(reader = "vertical_align", declarations = "vertical-align: 10px", expected = "10px"),
    TestComputedPropertiesCase(reader = "vertical_align", declarations = "vertical-align: -20%", expected = "-20%"),
    TestComputedPropertiesCase(reader = "font_variants", declarations = "", expected = "alternates - caps 0 east-asian - emoji 0 ligatures - numeric - position 0 kerning 0 language -"),
    TestComputedPropertiesCase(reader = "font_variants", declarations = "font-variant-alternates: historical-forms stylistic(foo) swash(bar); font-variant-caps: small-caps; font-variant-east-asian: jis78 full-width ruby; font-variant-emoji: emoji; font-variant-ligatures: common-ligatures no-discretionary-ligatures historical-ligatures no-contextual; font-variant-numeric: lining-nums tabular-nums diagonal-fractions ordinal slashed-zero; font-variant-position: super; font-kerning: none; font-language-override: \"TRK\"", expected = "alternates 1 0:foo 3:bar caps 1 east-asian 1 0 0 emoji 2 ligatures 0 0 1 0 1 numeric 11 0 1 0 position 2 kerning 2 language TRK"),
    TestComputedPropertiesCase(reader = "font_variants", declarations = "font-variant-alternates: historical-forms; font-variant-caps: small-caps; font-variant-east-asian: jis78 full-width ruby; font-variant-emoji: emoji; font-variant-ligatures: common-ligatures no-discretionary-ligatures historical-ligatures no-contextual; font-variant-numeric: lining-nums tabular-nums diagonal-fractions ordinal slashed-zero; font-variant-position: super; font-kerning: none; font-language-override: \"TRK\"", expected = "alternates 1 caps 1 east-asian 1 0 0 emoji 2 ligatures 0 0 1 0 1 numeric 11 0 1 0 position 2 kerning 2 language TRK"),
    TestComputedPropertiesCase(reader = "font_variants", declarations = "font-variant-ligatures: none; font-variant-east-asian: proportional-width; font-variant-numeric: oldstyle-nums", expected = "alternates - caps 0 east-asian 0 - 1 emoji 0 ligatures 1 - - - - numeric 00 1 - - position 0 kerning 0 language -"),
    TestComputedPropertiesCase(reader = "font_variants", declarations = "font-variant-alternates: styleset(a, b) character-variant(c); font-variant-ligatures: no-common-ligatures", expected = "alternates 0 1:a 1:b 2:c caps 0 east-asian - emoji 0 ligatures 0 1 - - - numeric - position 0 kerning 0 language -"),
    TestComputedPropertiesCase(reader = "font_settings", declarations = "", expected = "features 0 liga=- smcp=- kern=- ss01=- variations 0 wght=- wdth=- slnt=-"),
    TestComputedPropertiesCase(reader = "font_settings", declarations = "font-feature-settings: \"liga\" 0, \"smcp\", \"ss01\" 3; font-variation-settings: \"wght\" 650, \"wdth\" 75.5", expected = "features 3 liga=0 smcp=1 kern=- ss01=3 variations 2 wght=650 wdth=75.5 slnt=-"),
    TestComputedPropertiesCase(reader = "font_settings", declarations = "font-variation-settings: \"slnt\" -10", expected = "features 0 liga=- smcp=- kern=- ss01=- variations 1 wght=- wdth=- slnt=-10"),
    TestComputedPropertiesCase(reader = "grid", declarations = "", expected = "none / none / auto / auto / 10 / auto auto auto auto / areas 0 0x0"),
    TestComputedPropertiesCase(reader = "grid", declarations = "grid-template-columns: 1fr 2fr 100px; grid-template-rows: repeat(2, 50px); grid-auto-columns: minmax(10px, auto); grid-auto-rows: 20%; grid-auto-flow: column dense; grid-column-start: 2; grid-column-end: span 3; grid-row-start: foo; grid-row-end: -1", expected = "1fr 2fr 100px / repeat(2, 50px) / minmax(10px, auto) / 20% / 01 / 2 span 3 foo -1 / areas 0 0x0"),
    TestComputedPropertiesCase(reader = "grid", declarations = "grid-template-areas: \"a b\" \"a c\"; grid-auto-flow: dense", expected = "none / none / auto / auto / 11 / auto auto auto auto / areas 3 2x2"),
    TestComputedPropertiesCase(reader = "grid", declarations = "grid-template-columns: [a] auto [b c] min-content; grid-column-start: span foo", expected = "[a] auto [b c] min-content / none / auto / auto / 10 / span foo auto auto auto / areas 0 0x0"),
    TestComputedPropertiesCase(reader = "table", declarations = "", expected = "0 0 0"),
    TestComputedPropertiesCase(reader = "table", declarations = "border-collapse: collapse; empty-cells: hide; table-layout: fixed", expected = "1 1 1"),
    TestComputedPropertiesCase(reader = "object", declarations = "", expected = "0 1 50% 3 50%"),
    TestComputedPropertiesCase(reader = "object", declarations = "object-fit: cover; object-position: right 10px bottom 20%", expected = "2 1 calc(100% - 10px) 3 calc(80%)"),
    TestComputedPropertiesCase(reader = "object", declarations = "object-fit: scale-down; object-position: left top", expected = "4 1 0% 3 0%"),
    TestComputedPropertiesCase(reader = "writing", declarations = "", expected = "0 4 0"),
    TestComputedPropertiesCase(reader = "writing", declarations = "direction: rtl; unicode-bidi: isolate; writing-mode: vertical-rl", expected = "1 2 1"),
    TestComputedPropertiesCase(reader = "user_select", declarations = "", expected = "1 0 0"),
    TestComputedPropertiesCase(reader = "user_select", declarations = "user-select: none; isolation: isolate; mix-blend-mode: screen", expected = "3 1 2"),
    TestComputedPropertiesCase(reader = "touch_action", declarations = "", expected = "111111"),
    TestComputedPropertiesCase(reader = "touch_action", declarations = "touch-action: none", expected = "000000"),
    TestComputedPropertiesCase(reader = "touch_action", declarations = "touch-action: manipulation", expected = "111110"),
    TestComputedPropertiesCase(reader = "touch_action", declarations = "touch-action: pan-x pan-up", expected = "111000"),
    TestComputedPropertiesCase(reader = "touch_action", declarations = "touch-action: pan-left pan-down", expected = "100100"),
    TestComputedPropertiesCase(reader = "contain", declarations = "", expected = "00000 000"),
    TestComputedPropertiesCase(reader = "contain", declarations = "contain: strict; container-type: size", expected = "10111 100"),
    TestComputedPropertiesCase(reader = "contain", declarations = "contain: content; container-type: inline-size scroll-state", expected = "00111 011"),
    TestComputedPropertiesCase(reader = "contain", declarations = "contain: size layout style paint", expected = "10111 000"),
    TestComputedPropertiesCase(reader = "contain", declarations = "contain: inline-size; container-type: scroll-state", expected = "01000 001"),
    TestComputedPropertiesCase(reader = "contain", declarations = "contain: paint", expected = "00001 000"),
    TestComputedPropertiesCase(reader = "view_transition_name", declarations = "", expected = "-"),
    TestComputedPropertiesCase(reader = "view_transition_name", declarations = "view-transition-name: hero", expected = "hero"),
    TestComputedPropertiesCase(reader = "transforms", declarations = "", expected = "[] 4 0 50% 50% 0px - - - - 1 50% 3 50%"),
    TestComputedPropertiesCase(reader = "transforms", declarations = "transform: translate(10px, 20%) rotate(45deg) scale(2); transform-box: border-box; transform-style: preserve-3d; transform-origin: left top; rotate: 30deg; translate: 5px 6px; scale: 1.5; perspective: 100px; perspective-origin: right 10px top 20%", expected = "[translate(10px, 20%) | rotate(45deg) | scale(2)] 1 1 0% 0% 0px 30deg 5px 6px 1.5 100 1 calc(100% - 10px) 3 20%"),
    TestComputedPropertiesCase(reader = "transforms", declarations = "transform: matrix(1, 0, 0, 1, 5, 6); transform-origin: right bottom 10px; rotate: x 10deg", expected = "[matrix(1, 0, 0, 1, 5, 6)] 4 0 100% 100% 10px x 10deg - - - 1 50% 3 50%"),
    TestComputedPropertiesCase(reader = "transforms", declarations = "transform-origin: 20% 30px; perspective-origin: center", expected = "[] 4 0 20% 30px 0px - - - - 1 50% 3 50%"),
    TestComputedPropertiesCase(reader = "svg", declarations = "", expected = "[] 0 0 4 0 0 0 0"),
    TestComputedPropertiesCase(reader = "svg", declarations = "stroke-dasharray: 1 2px 3%; stroke-linecap: round; stroke-linejoin: bevel; stroke-miterlimit: 7; fill-rule: evenodd; clip-rule: evenodd; mask-type: alpha; shape-rendering: crispEdges", expected = "[1 | 2px | 3%] 2 2 7 1 1 1 2"),
    TestComputedPropertiesCase(reader = "svg", declarations = "stroke-dasharray: calc(1 + 2) calc(5px + 1em) 4", expected = "[3 | calc(21px) | 4] 0 0 4 0 0 0 0"),
    TestComputedPropertiesCase(reader = "paint_order", declarations = "", expected = "012"),
    TestComputedPropertiesCase(reader = "paint_order", declarations = "paint-order: stroke", expected = "102"),
    TestComputedPropertiesCase(reader = "paint_order", declarations = "paint-order: markers", expected = "201"),
    TestComputedPropertiesCase(reader = "paint_order", declarations = "paint-order: fill", expected = "012"),
    TestComputedPropertiesCase(reader = "paint_order", declarations = "paint-order: stroke markers", expected = "120"),
    TestComputedPropertiesCase(reader = "paint_order", declarations = "paint-order: markers fill", expected = "201"),
    TestComputedPropertiesCase(reader = "paint_order", declarations = "paint-order: fill markers", expected = "021"),
    TestComputedPropertiesCase(reader = "will_change", declarations = "", expected = "10000"),
    TestComputedPropertiesCase(reader = "will_change", declarations = "will-change: contents, opacity", expected = "01010"),
    TestComputedPropertiesCase(reader = "will_change", declarations = "will-change: scroll-position, transform, foo", expected = "00101"),
    TestComputedPropertiesCase(reader = "quotes", declarations = "", expected = "1"),
    TestComputedPropertiesCase(reader = "quotes", declarations = "quotes: none", expected = "0"),
    TestComputedPropertiesCase(reader = "quotes", declarations = "quotes: \"a\" \"b\" \"c\" \"d\"", expected = "2 ab cd"),
    TestComputedPropertiesCase(reader = "quotes", declarations = "quotes: auto", expected = "1"),
    TestComputedPropertiesCase(reader = "counters", declarations = "", expected = "[][][]"),
    TestComputedPropertiesCase(reader = "counters", declarations = "counter-reset: a 3 b c 7; counter-increment: a; counter-set: b -2", expected = "[a 0 3 | b 0 0 | c 0 7][a 0 1][b 0 -2]"),
    TestComputedPropertiesCase(reader = "counters", declarations = "counter-reset: x 5; counter-increment: none", expected = "[x 0 5][][]"),
    TestComputedPropertiesCase(reader = "scrollbar", declarations = "", expected = "0 0"),
    TestComputedPropertiesCase(reader = "scrollbar", declarations = "scrollbar-width: thin; resize: both", expected = "1 1"),
    TestComputedPropertiesCase(reader = "math", declarations = "", expected = "0 0"),
    TestComputedPropertiesCase(reader = "math", declarations = "math-style: compact; math-depth: 3", expected = "1 3"),
    TestComputedPropertiesCase(reader = "position", declarations = "", expected = "3 -"),
    TestComputedPropertiesCase(reader = "position", declarations = "position: absolute; z-index: 10", expected = "0 10"),
    TestComputedPropertiesCase(reader = "position", declarations = "position: sticky; z-index: -2", expected = "4 -2"),
]