Luce packages
LuceLuce BaseLuciaOS

dymokomi/luce-browser-engine

Source of release 0.6.1

0.6.1 / src / web / css / tests_media_invalidation_cases.lucb

#==============================================================================================
#
#   tests_media_invalidation_cases - media query, @supports, @container and invalidation-set
#                                    cases pinned to the reference build
#
#   DESCRIPTION:
#       Generated (a test vector table) from the output of a local oracle that runs the
#       reference Ladybird build's LibWeb on the same inputs (luce-browser-tools,
#       oracles/luce-browser-engine/media_invalidation: cases.txt, oracle.cpp,
#       gen_luce_cases.py, build.sh). tests_media_invalidation runs each case through the port
#       and compares the output.
#
#==============================================================================================

## One oracle case: the mode, its arguments, and the reference build's output.
struct TestMediaInvalidationCase:
    let mode: str
    let arguments: str[4]
    let expected: str

## Every oracle case, in cases.txt order (0 more, marked "!" in cases.txt, wait for other regions).
let test_media_invalidation_cases: TestMediaInvalidationCase[195] = [
    TestMediaInvalidationCase(mode = "media", arguments = ["screen", "", "", ""], expected = "  list: screen\n  query: screen\n    matches: true\n    dump: Media condition: (matches = true)\n    dump:   Negated: false\n    dump:   Type: screen\n"),
    TestMediaInvalidationCase(mode = "media", arguments = ["print", "", "", ""], expected = "  list: print\n  query: print\n    matches: false\n    dump: Media condition: (matches = false)\n    dump:   Negated: false\n    dump:   Type: print\n"),
    TestMediaInvalidationCase(mode = "media", arguments = ["all", "", "", ""], expected = "  list: all\n  query: all\n    matches: true\n    dump: Media condition: (matches = true)\n    dump:   Negated: false\n    dump:   Type: all\n"),
    TestMediaInvalidationCase(mode = "media", arguments = ["not print", "", "", ""], expected = "  list: not print\n  query: not print\n    matches: true\n    dump: Media condition: (matches = true)\n    dump:   Negated: true\n    dump:   Type: print\n"),
    TestMediaInvalidationCase(mode = "media", arguments = ["not screen", "", "", ""], expected = "  list: not screen\n  query: not screen\n    matches: false\n    dump: Media condition: (matches = false)\n    dump:   Negated: true\n    dump:   Type: screen\n"),
    TestMediaInvalidationCase(mode = "media", arguments = ["only screen", "", "", ""], expected = "  list: screen\n  query: screen\n    matches: true\n    dump: Media condition: (matches = true)\n    dump:   Negated: false\n    dump:   Type: screen\n"),
    TestMediaInvalidationCase(mode = "media", arguments = ["tv", "", "", ""], expected = "  list: tv\n  query: tv\n    matches: false\n    dump: Media condition: (matches = false)\n    dump:   Negated: false\n    dump:   Type: tv\n"),
    TestMediaInvalidationCase(mode = "media", arguments = ["not tv", "", "", ""], expected = "  list: not tv\n  query: not tv\n    matches: true\n    dump: Media condition: (matches = true)\n    dump:   Negated: true\n    dump:   Type: tv\n"),
    TestMediaInvalidationCase(mode = "media", arguments = ["SCREEN and (color)", "", "", ""], expected = "  list: screen and (color)\n  query: screen and (color)\n    matches: false\n    dump: Media condition: (matches = false)\n    dump:   Negated: false\n    dump:   Type: SCREEN\n    dump:   Condition:\n    dump:     MediaFeature: (color)\n"),
    TestMediaInvalidationCase(mode = "media", arguments = ["(min-width: 100px)", "", "", ""], expected = "  list: (min-width: 100px)\n  query: (min-width: 100px)\n    matches: false\n    dump: Media condition: (matches = false)\n    dump:   Negated: false\n    dump:   Type: all\n    dump:   Condition:\n    dump:     MediaFeature: (min-width: 100px)\n"),
    TestMediaInvalidationCase(mode = "media", arguments = ["(width >= 600px)", "", "", ""], expected = "  list: (width >= 600px)\n  query: (width >= 600px)\n    matches: false\n    dump: Media condition: (matches = false)\n    dump:   Negated: false\n    dump:   Type: all\n    dump:   Condition:\n    dump:     MediaFeature: (width >= 600px)\n"),
    TestMediaInvalidationCase(mode = "media", arguments = ["(400px <= width < 800px)", "", "", ""], expected = "  list: (400px <= width < 800px)\n  query: (400px <= width < 800px)\n    matches: false\n    dump: Media condition: (matches = false)\n    dump:   Negated: false\n    dump:   Type: all\n    dump:   Condition:\n    dump:     MediaFeature: (400px <= width < 800px)\n"),
    TestMediaInvalidationCase(mode = "media", arguments = ["(max-width: 50em) and (orientation: landscape)", "", "", ""], expected = "  list: (max-width: 50em) and (orientation: landscape)\n  query: (max-width: 50em) and (orientation: landscape)\n    matches: false\n    dump: Media condition: (matches = false)\n    dump:   Negated: false\n    dump:   Type: all\n    dump:   Condition:\n    dump:     AND:\n    dump:       MediaFeature: (max-width: 50em)\n    dump:       MediaFeature: (orientation: landscape)\n"),
    TestMediaInvalidationCase(mode = "media", arguments = ["screen, print and (color)", "", "", ""], expected = "  list: screen, print and (color)\n  query: screen\n    matches: true\n    dump: Media condition: (matches = true)\n    dump:   Negated: false\n    dump:   Type: screen\n  query: print and (color)\n    matches: false\n    dump: Media condition: (matches = false)\n    dump:   Negated: false\n    dump:   Type: print\n    dump:   Condition:\n    dump:     MediaFeature: (color)\n"),
    TestMediaInvalidationCase(mode = "media", arguments = ["not all and (monochrome)", "", "", ""], expected = "  list: not all and (monochrome)\n  query: not all and (monochrome)\n    matches: true\n    dump: Media condition: (matches = true)\n    dump:   Negated: true\n    dump:   Type: all\n    dump:   Condition:\n    dump:     MediaFeature: (monochrome)\n"),
    TestMediaInvalidationCase(mode = "media", arguments = ["(color) or (hover)", "", "", ""], expected = "  list: (color) or (hover)\n  query: (color) or (hover)\n    matches: false\n    dump: Media condition: (matches = false)\n    dump:   Negated: false\n    dump:   Type: all\n    dump:   Condition:\n    dump:     OR:\n    dump:       MediaFeature: (color)\n    dump:       MediaFeature: (hover)\n"),
    TestMediaInvalidationCase(mode = "media", arguments = ["not (color)", "", "", ""], expected = "  list: not (color)\n  query: not (color)\n    matches: true\n    dump: Media condition: (matches = true)\n    dump:   Negated: false\n    dump:   Type: all\n    dump:   Condition:\n    dump:     NOT:\n    dump:       MediaFeature: (color)\n"),
    TestMediaInvalidationCase(mode = "media", arguments = ["(not (color)) and (hover: none)", "", "", ""], expected = "  list: (not (color)) and (hover: none)\n  query: (not (color)) and (hover: none)\n    matches: false\n    dump: Media condition: (matches = false)\n    dump:   Negated: false\n    dump:   Type: all\n    dump:   Condition:\n    dump:     AND:\n    dump:       (\n    dump:         NOT:\n    dump:           MediaFeature: (color)\n    dump:       )\n    dump:       MediaFeature: (hover: none)\n"),
    TestMediaInvalidationCase(mode = "media", arguments = ["(aspect-ratio: 16/9)", "", "", ""], expected = "  list: (aspect-ratio: 16 / 9)\n  query: (aspect-ratio: 16 / 9)\n    matches: false\n    dump: Media condition: (matches = false)\n    dump:   Negated: false\n    dump:   Type: all\n    dump:   Condition:\n    dump:     MediaFeature: (aspect-ratio: 16 / 9)\n"),
    TestMediaInvalidationCase(mode = "media", arguments = ["(min-resolution: 2dppx)", "", "", ""], expected = "  list: (min-resolution: 2dppx)\n  query: (min-resolution: 2dppx)\n    matches: false\n    dump: Media condition: (matches = false)\n    dump:   Negated: false\n    dump:   Type: all\n    dump:   Condition:\n    dump:     MediaFeature: (min-resolution: 2dppx)\n"),
    TestMediaInvalidationCase(mode = "media", arguments = ["(prefers-color-scheme: dark)", "", "", ""], expected = "  list: (prefers-color-scheme: dark)\n  query: (prefers-color-scheme: dark)\n    matches: false\n    dump: Media condition: (matches = false)\n    dump:   Negated: false\n    dump:   Type: all\n    dump:   Condition:\n    dump:     MediaFeature: (prefers-color-scheme: dark)\n"),
    TestMediaInvalidationCase(mode = "media", arguments = ["(scripting)", "", "", ""], expected = "  list: (scripting)\n  query: (scripting)\n    matches: false\n    dump: Media condition: (matches = false)\n    dump:   Negated: false\n    dump:   Type: all\n    dump:   Condition:\n    dump:     MediaFeature: (scripting)\n"),
    TestMediaInvalidationCase(mode = "media", arguments = ["(inverted-colors)", "", "", ""], expected = "  list: (inverted-colors)\n  query: (inverted-colors)\n    matches: false\n    dump: Media condition: (matches = false)\n    dump:   Negated: false\n    dump:   Type: all\n    dump:   Condition:\n    dump:     MediaFeature: (inverted-colors)\n"),
    TestMediaInvalidationCase(mode = "media", arguments = ["(foo)", "", "", ""], expected = "  list: (foo)\n  query: (foo)\n    matches: false\n    dump: Media condition: (matches = false)\n    dump:   Negated: false\n    dump:   Type: all\n    dump:   Condition:\n    dump:     GeneralEnclosed: (foo)\n"),
    TestMediaInvalidationCase(mode = "media", arguments = ["(width: bogus)", "", "", ""], expected = "  list: (width: bogus)\n  query: (width: bogus)\n    matches: false\n    dump: Media condition: (matches = false)\n    dump:   Negated: false\n    dump:   Type: all\n    dump:   Condition:\n    dump:     MediaFeature: (width: bogus)\n"),
    TestMediaInvalidationCase(mode = "media", arguments = ["screen and", "", "", ""], expected = "  list: not all\n  query: not all\n    matches: false\n    dump: Media condition: (matches = false)\n    dump:   Negated: true\n    dump:   Type: all\n"),
    TestMediaInvalidationCase(mode = "media", arguments = ["", "", "", ""], expected = "  list: \n"),
    TestMediaInvalidationCase(mode = "media", arguments = ["(width > 100px) and (width < 200px), (height)", "", "", ""], expected = "  list: (width > 100px) and (width < 200px), (height)\n  query: (width > 100px) and (width < 200px)\n    matches: false\n    dump: Media condition: (matches = false)\n    dump:   Negated: false\n    dump:   Type: all\n    dump:   Condition:\n    dump:     AND:\n    dump:       MediaFeature: (width > 100px)\n    dump:       MediaFeature: (width < 200px)\n  query: (height)\n    matches: false\n    dump: Media condition: (matches = false)\n    dump:   Negated: false\n    dump:   Type: all\n    dump:   Condition:\n    dump:     MediaFeature: (height)\n"),
    TestMediaInvalidationCase(mode = "media", arguments = ["(100px < width)", "", "", ""], expected = "  list: (100px < width)\n  query: (100px < width)\n    matches: false\n    dump: Media condition: (matches = false)\n    dump:   Negated: false\n    dump:   Type: all\n    dump:   Condition:\n    dump:     MediaFeature: (100px < width)\n"),
    TestMediaInvalidationCase(mode = "media", arguments = ["(color: 8)", "", "", ""], expected = "  list: (color: 8)\n  query: (color: 8)\n    matches: false\n    dump: Media condition: (matches = false)\n    dump:   Negated: false\n    dump:   Type: all\n    dump:   Condition:\n    dump:     MediaFeature: (color: 8)\n"),
    TestMediaInvalidationCase(mode = "media", arguments = ["(grid: 0)", "", "", ""], expected = "  list: (grid: 0)\n  query: (grid: 0)\n    matches: false\n    dump: Media condition: (matches = false)\n    dump:   Negated: false\n    dump:   Type: all\n    dump:   Condition:\n    dump:     MediaFeature: (grid: 0)\n"),
    TestMediaInvalidationCase(mode = "media", arguments = ["(display-mode: standalone)", "", "", ""], expected = "  list: (display-mode: standalone)\n  query: (display-mode: standalone)\n    matches: false\n    dump: Media condition: (matches = false)\n    dump:   Negated: false\n    dump:   Type: all\n    dump:   Condition:\n    dump:     MediaFeature: (display-mode: standalone)\n"),
    TestMediaInvalidationCase(mode = "media", arguments = ["screen and (monochrome) and (not (color))", "", "", ""], expected = "  list: screen and (monochrome) and (not (color))\n  query: screen and (monochrome) and (not (color))\n    matches: false\n    dump: Media condition: (matches = false)\n    dump:   Negated: false\n    dump:   Type: screen\n    dump:   Condition:\n    dump:     AND:\n    dump:       MediaFeature: (monochrome)\n    dump:       (\n    dump:         NOT:\n    dump:           MediaFeature: (color)\n    dump:       )\n"),
    TestMediaInvalidationCase(mode = "media", arguments = ["(min-color: 2) or (max-color: 1)", "", "", ""], expected = "  list: (min-color: 2) or (max-color: 1)\n  query: (min-color: 2) or (max-color: 1)\n    matches: false\n    dump: Media condition: (matches = false)\n    dump:   Negated: false\n    dump:   Type: all\n    dump:   Condition:\n    dump:     OR:\n    dump:       MediaFeature: (min-color: 2)\n    dump:       MediaFeature: (max-color: 1)\n"),
    TestMediaInvalidationCase(mode = "media", arguments = ["(hover: hover) or (pointer: fine)", "", "", ""], expected = "  list: (hover: hover) or (pointer: fine)\n  query: (hover: hover) or (pointer: fine)\n    matches: false\n    dump: Media condition: (matches = false)\n    dump:   Negated: false\n    dump:   Type: all\n    dump:   Condition:\n    dump:     OR:\n    dump:       MediaFeature: (hover: hover)\n    dump:       MediaFeature: (pointer: fine)\n"),
    TestMediaInvalidationCase(mode = "media", arguments = ["unknown-type and (color)", "", "", ""], expected = "  list: unknown-type and (color)\n  query: unknown-type and (color)\n    matches: false\n    dump: Media condition: (matches = false)\n    dump:   Negated: false\n    dump:   Type: unknown-type\n    dump:   Condition:\n    dump:     MediaFeature: (color)\n"),
    TestMediaInvalidationCase(mode = "media", arguments = ["not ANY", "", "", ""], expected = "  list: not any\n  query: not any\n    matches: true\n    dump: Media condition: (matches = true)\n    dump:   Negated: true\n    dump:   Type: ANY\n"),
    TestMediaInvalidationCase(mode = "supports", arguments = ["(display: grid)", "", "", ""], expected = "  text: (display: grid)\n  matches: true\n  dump: Supports condition: (matches = true)\n  dump:   (\n  dump:     Declaration: `display: grid`, matches=true\n  dump:   )\n"),
    TestMediaInvalidationCase(mode = "supports", arguments = ["(display: bogus)", "", "", ""], expected = "  text: (display: bogus)\n  matches: false\n  dump: Supports condition: (matches = false)\n  dump:   (\n  dump:     Declaration: `display: bogus`, matches=false\n  dump:   )\n"),
    TestMediaInvalidationCase(mode = "supports", arguments = ["not (display: grid)", "", "", ""], expected = "  text: not (display: grid)\n  matches: false\n  dump: Supports condition: (matches = false)\n  dump:   NOT:\n  dump:     (\n  dump:       Declaration: `display: grid`, matches=true\n  dump:     )\n"),
    TestMediaInvalidationCase(mode = "supports", arguments = ["(display: grid) and (color: red)", "", "", ""], expected = "  text: (display: grid) and (color: red)\n  matches: true\n  dump: Supports condition: (matches = true)\n  dump:   AND:\n  dump:     (\n  dump:       Declaration: `display: grid`, matches=true\n  dump:     )\n  dump:     (\n  dump:       Declaration: `color: red`, matches=true\n  dump:     )\n"),
    TestMediaInvalidationCase(mode = "supports", arguments = ["(display: grid) or (display: bogus)", "", "", ""], expected = "  text: (display: grid) or (display: bogus)\n  matches: true\n  dump: Supports condition: (matches = true)\n  dump:   OR:\n  dump:     (\n  dump:       Declaration: `display: grid`, matches=true\n  dump:     )\n  dump:     (\n  dump:       Declaration: `display: bogus`, matches=false\n  dump:     )\n"),
    TestMediaInvalidationCase(mode = "supports", arguments = ["selector(a > b)", "", "", ""], expected = "  text: selector(a > b)\n  matches: true\n  dump: Supports condition: (matches = true)\n  dump:   Selector: `a > b` matches=true\n"),
    TestMediaInvalidationCase(mode = "supports", arguments = ["selector(:bogus)", "", "", ""], expected = "  text: selector(:bogus)\n  matches: false\n  dump: Supports condition: (matches = false)\n  dump:   Selector: `:bogus` matches=false\n"),
    TestMediaInvalidationCase(mode = "supports", arguments = ["font-tech(color-COLRv1)", "", "", ""], expected = "  text: font-tech(color-COLRv1)\n  matches: true\n  dump: Supports condition: (matches = true)\n  dump:   FontTech: `color-COLRv1` matches=true\n"),
    TestMediaInvalidationCase(mode = "supports", arguments = ["font-tech(bogus)", "", "", ""], expected = "  text: font-tech(bogus)\n  matches: false\n  dump: Supports condition: (matches = false)\n  dump:   FontTech: `bogus` matches=false\n"),
    TestMediaInvalidationCase(mode = "supports", arguments = ["font-format(woff2)", "", "", ""], expected = "  text: font-format(woff2)\n  matches: true\n  dump: Supports condition: (matches = true)\n  dump:   FontFormat: `woff2` matches=true\n"),
    TestMediaInvalidationCase(mode = "supports", arguments = ["font-format(bogus)", "", "", ""], expected = "  text: font-format(bogus)\n  matches: false\n  dump: Supports condition: (matches = false)\n  dump:   FontFormat: `bogus` matches=false\n"),
    TestMediaInvalidationCase(mode = "supports", arguments = ["env(safe-area-inset-top)", "", "", ""], expected = "  text: font-format(safe-area-inset-top)\n  matches: true\n  dump: Supports condition: (matches = true)\n  dump:   FontFormat: `safe-area-inset-top` matches=true\n"),
    TestMediaInvalidationCase(mode = "supports", arguments = ["env(bogus)", "", "", ""], expected = "  text: font-format(bogus)\n  matches: false\n  dump: Supports condition: (matches = false)\n  dump:   FontFormat: `bogus` matches=false\n"),
    TestMediaInvalidationCase(mode = "supports", arguments = ["(color: red) and (not (display: bogus))", "", "", ""], expected = "  text: (color: red) and (not (display: bogus))\n  matches: true\n  dump: Supports condition: (matches = true)\n  dump:   AND:\n  dump:     (\n  dump:       Declaration: `color: red`, matches=true\n  dump:     )\n  dump:     (\n  dump:       NOT:\n  dump:         (\n  dump:           Declaration: `display: bogus`, matches=false\n  dump:         )\n  dump:     )\n"),
    TestMediaInvalidationCase(mode = "supports", arguments = ["foo(bar)", "", "", ""], expected = "  text: foo(bar)\n  matches: false\n  dump: Supports condition: (matches = false)\n  dump:   GeneralEnclosed: foo(bar)\n"),
    TestMediaInvalidationCase(mode = "supports", arguments = ["bogus", "", "", ""], expected = "  none\n"),
    TestMediaInvalidationCase(mode = "supports", arguments = ["((display: grid))", "", "", ""], expected = "  text: ((display: grid))\n  matches: true\n  dump: Supports condition: (matches = true)\n  dump:   (\n  dump:     (\n  dump:       Declaration: `display: grid`, matches=true\n  dump:     )\n  dump:   )\n"),
    TestMediaInvalidationCase(mode = "container", arguments = ["@container (width > 100px) { a {} }", "", "", ""], expected = "  query: (width > 100px)\n    matches: false\n    dump: Container query: (matches = false)\n    dump:   GeneralEnclosed: (width > 100px)\n"),
    TestMediaInvalidationCase(mode = "container", arguments = ["@container card (orientation: portrait) { a {} }", "", "", ""], expected = "  query: (orientation: portrait)\n    matches: false\n    dump: Container query: (matches = false)\n    dump:   GeneralEnclosed: (orientation: portrait)\n"),
    TestMediaInvalidationCase(mode = "container", arguments = ["@container name { a {} }", "", "", ""], expected = "  no query\n"),
    TestMediaInvalidationCase(mode = "container", arguments = ["@container (min-width: 10px) and (max-height: 20px), other (inline-size) { a {} }", "", "", ""], expected = "  query: (min-width: 10px) and (max-height: 20px)\n    matches: false\n    dump: Container query: (matches = false)\n    dump:   AND:\n    dump:     GeneralEnclosed: (min-width: 10px)\n    dump:     GeneralEnclosed: (max-height: 20px)\n  query: (inline-size)\n    matches: false\n    dump: Container query: (matches = false)\n    dump:   GeneralEnclosed: (inline-size)\n"),
    TestMediaInvalidationCase(mode = "container", arguments = ["@container not (width) { a {} }", "", "", ""], expected = "  query: not (width)\n    matches: true\n    dump: Container query: (matches = true)\n    dump:   NOT:\n    dump:     GeneralEnclosed: (width)\n"),
    TestMediaInvalidationCase(mode = "container", arguments = ["@container (foo: bar) { a {} }", "", "", ""], expected = "  query: (foo: bar)\n    matches: false\n    dump: Container query: (matches = false)\n    dump:   GeneralEnclosed: (foo: bar)\n"),
    TestMediaInvalidationCase(mode = "invalidation", arguments = [".a", "", "", ""], expected = "  plan .a {self }\n"),
    TestMediaInvalidationCase(mode = "invalidation", arguments = ["#b", "", "", ""], expected = "  plan #b {self }\n"),
    TestMediaInvalidationCase(mode = "invalidation", arguments = ["div", "", "", ""], expected = "  plan div {self }\n"),
    TestMediaInvalidationCase(mode = "invalidation", arguments = ["[data-x]", "", "", ""], expected = "  plan [data-x] {self }\n"),
    TestMediaInvalidationCase(mode = "invalidation", arguments = ["*", "", "", ""], expected = ""),
    TestMediaInvalidationCase(mode = "invalidation", arguments = [".a .b", "", "", ""], expected = "  plan .a {desc([.b] => {self }) }\n  plan .b {self }\n"),
    TestMediaInvalidationCase(mode = "invalidation", arguments = [".a > .b", "", "", ""], expected = "  plan .a {desc([.b] => {self }) }\n  plan .b {self }\n"),
    TestMediaInvalidationCase(mode = "invalidation", arguments = [".a + .b", "", "", ""], expected = "  plan .a {adjacent([.b] => {self }) }\n  plan .b {self }\n"),
    TestMediaInvalidationCase(mode = "invalidation", arguments = [".a ~ .b", "", "", ""], expected = "  plan .a {subsequent([.b] => {self }) }\n  plan .b {self }\n"),
    TestMediaInvalidationCase(mode = "invalidation", arguments = [".a .b .c", "", "", ""], expected = "  plan .a {desc([.b] => {desc([.c] => {self }) }) }\n  plan .b {desc([.c] => {self }) }\n  plan .c {self }\n"),
    TestMediaInvalidationCase(mode = "invalidation", arguments = [".a > * .c", "", "", ""], expected = "  plan .a {desc(any => {desc([.c] => {self }) }) }\n  plan .c {self }\n"),
    TestMediaInvalidationCase(mode = "invalidation", arguments = ["div.a#b[c]", "", "", ""], expected = "  plan #b {self }\n  plan .a {self }\n  plan [c] {self }\n  plan div {self }\n"),
    TestMediaInvalidationCase(mode = "invalidation", arguments = [":not(.foo)", "", "", ""], expected = "  plan .foo {self }\n"),
    TestMediaInvalidationCase(mode = "invalidation", arguments = [".bar :not(.foo)", "", "", ""], expected = "  plan .bar {subtree }\n  plan .foo {self }\n"),
    TestMediaInvalidationCase(mode = "invalidation", arguments = [":is(.a, .b) .c", "", "", ""], expected = "  plan .a {self desc([.c] => {self }) }\n  plan .b {self desc([.c] => {self }) }\n  plan .c {self }\n"),
    TestMediaInvalidationCase(mode = "invalidation", arguments = [":where(.a .b) > .c", "", "", ""], expected = "  plan .a {desc([.b] => {self }) }\n  plan .b {self desc([.c] => {self }) }\n  plan .c {self }\n"),
    TestMediaInvalidationCase(mode = "invalidation", arguments = [".a:has(.b)", "", "", ""], expected = "  plan .a {self }\n  plan :has {self }\n  has-class b: .b/1\n"),
    TestMediaInvalidationCase(mode = "invalidation", arguments = [".a:has(> .b)", "", "", ""], expected = "  plan .a {self }\n  plan :has {self }\n  has-class b: > .b/0\n"),
    TestMediaInvalidationCase(mode = "invalidation", arguments = [".a:has(+ .b)", "", "", ""], expected = "  plan .a {self }\n  plan :has {self }\n  has-class b: + .b/2\n"),
    TestMediaInvalidationCase(mode = "invalidation", arguments = [".a:has(~ .b)", "", "", ""], expected = "  plan .a {self }\n  plan :has {self }\n  has-class b: ~ .b/3\n"),
    TestMediaInvalidationCase(mode = "invalidation", arguments = [".a:has(.b .c)", "", "", ""], expected = "  plan .a {self }\n  plan :has {self }\n  has-class b: .b .c/1\n  has-class c: .b .c/1\n"),
    TestMediaInvalidationCase(mode = "invalidation", arguments = [".a:has(:is(.b .c))", "", "", ""], expected = "  plan .a {self }\n  plan .b {subtree }\n  plan :has {self }\n  has-class b: :is(.b .c)/1\n  has-class c: :is(.b .c)/1\n"),
    TestMediaInvalidationCase(mode = "invalidation", arguments = [".a:has(*)", "", "", ""], expected = "  plan .a {self }\n  plan :has {self }\n  featureless-sensitive\n"),
    TestMediaInvalidationCase(mode = "invalidation", arguments = [".a:has(:not(.x))", "", "", ""], expected = "  plan .a {self }\n  plan :has {self }\n  has-class x: :not(.x)/1\n  featureless-sensitive\n"),
    TestMediaInvalidationCase(mode = "invalidation", arguments = [".a:has(:focus)", "", "", ""], expected = "  plan .a {self }\n  plan :has {self }\n  featureless-sensitive\n"),
    TestMediaInvalidationCase(mode = "invalidation", arguments = [":has(:checked) .x", "", "", ""], expected = "  plan .x {self }\n  plan :has {desc([.x] => {self }) }\n  has-pseudo checked: :checked/1\n"),
    TestMediaInvalidationCase(mode = "invalidation", arguments = [":is(:has(.x) .y)", "", "", ""], expected = "  plan .y {self }\n  plan :has {self subtree }\n  has-class x: .x/1\n"),
    TestMediaInvalidationCase(mode = "invalidation", arguments = ["p:nth-child(even of #t1, #t2)", "", "", ""], expected = "  plan #t1 {self subtree }\n  plan #t2 {self subtree }\n  plan p {self }\n"),
    TestMediaInvalidationCase(mode = "invalidation", arguments = ["li:first-child", "", "", ""], expected = "  plan li {self }\n"),
    TestMediaInvalidationCase(mode = "invalidation", arguments = ["input:disabled", "", "", ""], expected = "  plan :disabled {self }\n  plan input {self }\n"),
    TestMediaInvalidationCase(mode = "invalidation", arguments = ["a:link, a:any-link", "", "", ""], expected = "  plan :any-link {self }\n  plan :link {self }\n  plan a {self }\n"),
    TestMediaInvalidationCase(mode = "invalidation", arguments = [":empty", "", "", ""], expected = "  plan :empty {self }\n"),
    TestMediaInvalidationCase(mode = "invalidation", arguments = [":hover .x", "", "", ""], expected = "  plan .x {self }\n"),
    TestMediaInvalidationCase(mode = "invalidation", arguments = [".a, .b > .c, #d ~ .e", "", "", ""], expected = "  plan #d {subsequent([.e] => {self }) }\n  plan .a {self }\n  plan .b {desc([.c] => {self }) }\n  plan .c {self }\n  plan .e {self }\n"),
    TestMediaInvalidationCase(mode = "invalidation", arguments = ["::slotted(.x)", "", "", ""], expected = "  plan .x {self }\n"),
    TestMediaInvalidationCase(mode = "invalidation", arguments = [".a::before", "", "", ""], expected = "  plan .a {self }\n"),
    TestMediaInvalidationCase(mode = "invalidation", arguments = [":host(.x) .y", "", "", ""], expected = "  plan .x {self desc([.y] => {self }) }\n  plan .y {self }\n"),
    TestMediaInvalidationCase(mode = "invalidation", arguments = [".a:has(.b):has(#c)", "", "", ""], expected = "  plan .a {self }\n  plan :has {self }\n  has-id c: #c/1\n  has-class b: .b/1\n"),
    TestMediaInvalidationCase(mode = "invalidation", arguments = ["section:has(> h1.title)", "", "", ""], expected = "  plan :has {self }\n  plan section {self }\n  has-class title: > h1.title/0\n  has-tag h1: > h1.title/0\n"),
    TestMediaInvalidationCase(mode = "invalidation", arguments = [".a .b, .c .b", "", "", ""], expected = "  plan .a {desc([.b] => {self }) }\n  plan .b {self }\n  plan .c {desc([.b] => {self }) }\n"),
    TestMediaInvalidationCase(mode = "invalidation", arguments = [".x || .y", "", "", ""], expected = "  plan .x {subtree }\n  plan .y {self }\n"),
    TestMediaInvalidationCase(mode = "invalidation", arguments = [":root .a", "", "", ""], expected = "  plan .a {self }\n"),
    TestMediaInvalidationCase(mode = "invalidation", arguments = [":defined", "", "", ""], expected = "  plan :defined {self }\n"),
    TestMediaInvalidationCase(mode = "invalidation", arguments = [".a:has(:checked, :required)", "", "", ""], expected = "  plan .a {self }\n  plan :has {self }\n  has-pseudo checked: :checked/1\n  has-pseudo required: :required/1\n"),
    TestMediaInvalidationCase(mode = "invalidation", arguments = [".p .q + .r ~ .s > .t", "", "", ""], expected = "  plan .p {desc([.q] => {adjacent([.r] => {subsequent([.s] => {desc([.t] => {self }) }) }) }) }\n  plan .q {adjacent([.r] => {subsequent([.s] => {desc([.t] => {self }) }) }) }\n  plan .r {subsequent([.s] => {desc([.t] => {self }) }) }\n  plan .s {desc([.t] => {self }) }\n  plan .t {self }\n"),
    TestMediaInvalidationCase(mode = "sheetset", arguments = [".a {}", "", "", ""], expected = "  set [.a]\n  may-match-shadow-host false\n  may-match-light-dom false\n"),
    TestMediaInvalidationCase(mode = "sheetset", arguments = [".a .b {}", "", "", ""], expected = "  set [.b]\n  may-match-shadow-host false\n  may-match-light-dom false\n"),
    TestMediaInvalidationCase(mode = "sheetset", arguments = [".a, #b {}", "", "", ""], expected = "  set [#b .a]\n  may-match-shadow-host false\n  may-match-light-dom false\n"),
    TestMediaInvalidationCase(mode = "sheetset", arguments = ["* {}", "", "", ""], expected = "  set [*]\n  may-match-shadow-host false\n  may-match-light-dom false\n"),
    TestMediaInvalidationCase(mode = "sheetset", arguments = [".a::before {}", "", "", ""], expected = "  set [.a]\n  may-match-shadow-host false\n  may-match-light-dom false\n"),
    TestMediaInvalidationCase(mode = "sheetset", arguments = [".a .b::after {}", "", "", ""], expected = "  set [.b]\n  may-match-shadow-host false\n  may-match-light-dom false\n"),
    TestMediaInvalidationCase(mode = "sheetset", arguments = [".a > * {}", "", "", ""], expected = "  set []\n  may-match-shadow-host false\n  may-match-light-dom false\n  trailing-universal-rule [.a] - 1\n"),
    TestMediaInvalidationCase(mode = "sheetset", arguments = [".a + * {}", "", "", ""], expected = "  set []\n  may-match-shadow-host false\n  may-match-light-dom false\n  trailing-universal-rule [.a] - 3\n"),
    TestMediaInvalidationCase(mode = "sheetset", arguments = [".a * {}", "", "", ""], expected = "  set []\n  may-match-shadow-host false\n  may-match-light-dom false\n  trailing-universal-rule [.a] - 2\n"),
    TestMediaInvalidationCase(mode = "sheetset", arguments = ["* > * {}", "", "", ""], expected = "  set [*]\n  may-match-shadow-host false\n  may-match-light-dom false\n"),
    TestMediaInvalidationCase(mode = "sheetset", arguments = [":host {}", "", "", ""], expected = "  set [*]\n  may-match-shadow-host true\n  may-match-light-dom false\n"),
    TestMediaInvalidationCase(mode = "sheetset", arguments = [":host > * {}", "", "", ""], expected = "  set [*]\n  may-match-shadow-host true\n  may-match-light-dom true\n"),
    TestMediaInvalidationCase(mode = "sheetset", arguments = ["::slotted(.x) {}", "", "", ""], expected = "  set [.x]\n  may-match-shadow-host false\n  may-match-light-dom true\n"),
    TestMediaInvalidationCase(mode = "sheetset", arguments = [".a:has(.b) {}", "", "", ""], expected = "  set [.a :has]\n  may-match-shadow-host false\n  may-match-light-dom false\n"),
    TestMediaInvalidationCase(mode = "sheetset", arguments = [".a .b:has(.c) {}", "", "", ""], expected = "  set [.b :has]\n  may-match-shadow-host false\n  may-match-light-dom false\n"),
    TestMediaInvalidationCase(mode = "sheetset", arguments = ["div {} .x::marker {} .y ~ * {}", "", "", ""], expected = "  set [.x div]\n  may-match-shadow-host false\n  may-match-light-dom false\n  trailing-universal-rule [.y] - 4\n"),
    TestMediaInvalidationCase(mode = "sheetset", arguments = [":hover {}", "", "", ""], expected = "  set [*]\n  may-match-shadow-host false\n  may-match-light-dom false\n"),
    TestMediaInvalidationCase(mode = "sheetset", arguments = [".a { .b {} }", "", "", ""], expected = "  set [.a]\n  may-match-shadow-host false\n  may-match-light-dom false\n"),
    TestMediaInvalidationCase(mode = "lightdom", arguments = [":host", "", "", ""], expected = "  may-match-light-dom false\n"),
    TestMediaInvalidationCase(mode = "lightdom", arguments = [":host > *", "", "", ""], expected = "  may-match-light-dom true\n"),
    TestMediaInvalidationCase(mode = "lightdom", arguments = ["::slotted(.x)", "", "", ""], expected = "  may-match-light-dom true\n"),
    TestMediaInvalidationCase(mode = "lightdom", arguments = [".a", "", "", ""], expected = "  may-match-light-dom false\n"),
    TestMediaInvalidationCase(mode = "lightdom", arguments = [":host .x, .y", "", "", ""], expected = "  may-match-light-dom false\n"),
    TestMediaInvalidationCase(mode = "lightdom", arguments = [":bogus", "", "", ""], expected = "  may-match-light-dom false\n"),
    TestMediaInvalidationCase(mode = "outcome", arguments = ["section#r(article#a.x(b#b1 i#i1) article#c(b#b2))", ".x b { color: red }", "attr #c class x", ""], expected = "  full: false\n  document -C-\n  section#r -C-\n  article#a ---\n  b#b1 ---\n  i#i1 ---\n  article#c -C-\n  b#b2 N--\n"),
    TestMediaInvalidationCase(mode = "outcome", arguments = ["section#r(article#a.x(b#b1 i#i1) article#c(b#b2))", ".x b { color: red }", "attr #a class y", ""], expected = "  full: false\n  document -C-\n  section#r -C-\n  article#a -C-\n  b#b1 N--\n  i#i1 ---\n  article#c ---\n  b#b2 ---\n"),
    TestMediaInvalidationCase(mode = "outcome", arguments = ["section#r(article#a(b#b1) article#c(b#b2))", ".y { color: red }", "attr #b1 class y", ""], expected = "  full: false\n  document -C-\n  section#r -C-\n  article#a -C-\n  b#b1 N--\n  article#c ---\n  b#b2 ---\n"),
    TestMediaInvalidationCase(mode = "outcome", arguments = ["section#r(article#a(b#b1) article#c(b#b2))", "#c > b { color: red }", "attr #a id c", ""], expected = "  full: false\n  document -C-\n  section#r -C-\n  article#c -C-\n  b#b1 N--\n  article#c ---\n  b#b2 ---\n"),
    TestMediaInvalidationCase(mode = "outcome", arguments = ["section#r(article#a(b#b1) article#c(b#b2))", "[data-x] i { color: red }", "attr #r data-x 1", ""], expected = "  full: false\n  document ---\n  section#r ---\n  article#a ---\n  b#b1 ---\n  article#c ---\n  b#b2 ---\n"),
    TestMediaInvalidationCase(mode = "outcome", arguments = ["section#r(article#a(b#b1) article#c(b#b2))", ".z { color: red }", "attr #a class q", ""], expected = "  full: false\n  document ---\n  section#r ---\n  article#a ---\n  b#b1 ---\n  article#c ---\n  b#b2 ---\n"),
    TestMediaInvalidationCase(mode = "outcome", arguments = ["section#r(article#a(b#b1) article#c(b#b2))", ".a + .b { color: red }", "attr #a class a", ""], expected = "  full: false\n  document ---\n  section#r ---\n  article#a ---\n  b#b1 ---\n  article#c ---\n  b#b2 ---\n"),
    TestMediaInvalidationCase(mode = "outcome", arguments = ["section#r(article#a.a(b#b1) article#c.b(b#b2) article#d.b)", ".a ~ .b { color: red }", "rmattr #a class", ""], expected = "  full: false\n  document -C-\n  section#r -C-\n  article#a ---\n  b#b1 ---\n  article#c N--\n  b#b2 ---\n  article#d N--\n"),
    TestMediaInvalidationCase(mode = "outcome", arguments = ["section#r(article#a(b#b1) article#c(b#b2))", "b { color: red }", "append #a i#n1", ""], expected = "  full: false\n  document -C-\n  section#r -C-\n  article#a NC-\n  b#b1 ---\n  i#n1 N--\n  article#c ---\n  b#b2 ---\n"),
    TestMediaInvalidationCase(mode = "outcome", arguments = ["section#r(article#a(b#b1) article#c(b#b2) article#d)", "article:first-child { color: red }", "before #a article#n", ""], expected = "  full: false\n  document -C-\n  section#r NC-\n  article#n N--\n  article#a N--\n  b#b1 ---\n  article#c N--\n  b#b2 ---\n  article#d N--\n"),
    TestMediaInvalidationCase(mode = "outcome", arguments = ["section#r(article#a(b#b1) article#c(b#b2) article#d)", "article:last-child { color: red }", "remove #d", ""], expected = "  full: false\n  document -C-\n  section#r NC-\n  article#a N--\n  b#b1 ---\n  article#c N--\n  b#b2 ---\n"),
    TestMediaInvalidationCase(mode = "outcome", arguments = ["section#r(article#a(b#b1) article#c(b#b2) article#d)", "article + article { color: red }", "remove #a", ""], expected = "  full: false\n  document -C-\n  section#r NC-\n  article#c N--\n  b#b2 ---\n  article#d ---\n"),
    TestMediaInvalidationCase(mode = "outcome", arguments = ["section#r(article#a.p(b#b1.q) article#c(b#b2))", ".p:has(.q) { color: red }", "rmattr #b1 class", ""], expected = "  full: false\n  document -C-\n  section#r -C-\n  article#a N--\n  b#b1 ---\n  article#c ---\n  b#b2 ---\n"),
    TestMediaInvalidationCase(mode = "outcome", arguments = ["section#r(article#a.p(b#b1) article#c(b#b2))", ".p:has(.q) { color: red }", "attr #b1 class q", ""], expected = "  full: false\n  document -C-\n  section#r -C-\n  article#a N--\n  b#b1 ---\n  article#c ---\n  b#b2 ---\n"),
    TestMediaInvalidationCase(mode = "outcome", arguments = ["section#r(article#a.p(b#b1) article#c(b#b2))", ".p:has(> i) { color: red }", "append #a i#n", ""], expected = "  full: false\n  document -C-\n  section#r -C-\n  article#a NC-\n  b#b1 ---\n  i#n N--\n  article#c ---\n  b#b2 ---\n"),
    TestMediaInvalidationCase(mode = "outcome", arguments = ["section#r(article#a(b#b1) article#c(b#b2))", ":not(.x) > b { color: red }", "attr #a class x", ""], expected = "  full: false\n  document -C-\n  section#r -C-\n  article#a NC-\n  b#b1 N--\n  article#c ---\n  b#b2 ---\n"),
    TestMediaInvalidationCase(mode = "outcome", arguments = ["section#r(article#a(b#b1) article#c(b#b2))", "section:has(+ aside) b { color: red }", "attr #c class w", ""], expected = "  full: false\n  document ---\n  section#r ---\n  article#a ---\n  b#b1 ---\n  article#c ---\n  b#b2 ---\n"),
    TestMediaInvalidationCase(mode = "outcome", arguments = ["section#r(article#a(b#b1) article#c(b#b2))", "* { color: red }", "attr #b2 title t", ""], expected = "  full: false\n  document -C-\n  section#r -C-\n  article#a ---\n  b#b1 ---\n  article#c -C-\n  b#b2 N--\n"),
    TestMediaInvalidationCase(mode = "outcome", arguments = ["section#r(article#a(b#b1) article#c(b#b2))", ".x .y { color: red }", "attr #a class x;attr #b2 class y", ""], expected = "  full: false\n  document -C-\n  section#r -C-\n  article#a ---\n  b#b1 ---\n  article#c -C-\n  b#b2 N--\n"),
    TestMediaInvalidationCase(mode = "outcome", arguments = ["section#r(article#a(b#b1 'text') article#c(b#b2))", "b:empty { color: red }", "append #b2 'more'", ""], expected = "  full: false\n  document -C-\n  section#r -C-\n  article#a ---\n  b#b1 ---\n  text ---\n  article#c -C-\n  b#b2 NC-\n  text N--\n"),
    TestMediaInvalidationCase(mode = "outcome", arguments = ["section#r(article#a.a article#b article#c)", ".a:has(+ .b) { color: red }", "attr #b class b", ""], expected = "  full: false\n  document -C-\n  section#r -C-\n  article#a N--\n  article#b ---\n  article#c ---\n"),
    TestMediaInvalidationCase(mode = "outcome", arguments = ["section#r(article#a.a article#b article#c)", ".a:has(~ .z) { color: red }", "attr #c class z", ""], expected = "  full: false\n  document -C-\n  section#r -C-\n  article#a N--\n  article#b ---\n  article#c ---\n"),
    TestMediaInvalidationCase(mode = "outcome", arguments = ["section#r(article#a article#b article#c)", "article:nth-child(2) { color: red }", "before #a article#n", ""], expected = "  full: false\n  document -C-\n  section#r NC-\n  article#n N--\n  article#a N--\n  article#b N--\n  article#c N--\n"),
    TestMediaInvalidationCase(mode = "outcome", arguments = ["section#r(article#a article#b article#c)", "article:nth-last-child(1) b { color: red }", "append #r article#n(b#nb)", ""], expected = "  full: false\n  document -C-\n  section#r NC-\n  article#a ---\n  article#b ---\n  article#c ---\n  article#n NC-\n  b#nb N--\n"),
    TestMediaInvalidationCase(mode = "outcome", arguments = ["section#r(article#a.x article#b article#c)", ".x ~ article { color: red }", "before #b article#n", ""], expected = "  full: false\n  document -C-\n  section#r NC-\n  article#a ---\n  article#n N--\n  article#b N--\n  article#c N--\n"),
    TestMediaInvalidationCase(mode = "outcome", arguments = ["section#r(article#a article#b.y article#c)", ".x + .y { color: red }", "before #b article#n.x", ""], expected = "  full: false\n  document -C-\n  section#r NC-\n  article#a ---\n  article#n N--\n  article#b N--\n  article#c ---\n"),
    TestMediaInvalidationCase(mode = "outcome", arguments = ["section#r(article#a[data-k=1](b#b1) article#c)", "[data-k=\"2\"] b { color: red }", "attr #a data-k 2", ""], expected = "  full: false\n  document -C-\n  section#r -C-\n  article#a -C-\n  b#b1 N--\n  article#c ---\n"),
    TestMediaInvalidationCase(mode = "outcome", arguments = ["section#r(article#a(b#b1) article#c)", "#a b, #c b { color: red }", "attr #a id z;attr #c id a", ""], expected = "  full: false\n  document -C-\n  section#r -C-\n  article#z -C-\n  b#b1 N--\n  article#a ---\n"),
    TestMediaInvalidationCase(mode = "outcome", arguments = ["section#r(article#a.p(i#i1(b#b1)) article#c)", ".p > i > b { color: red }", "rmattr #a class", ""], expected = "  full: false\n  document -C-\n  section#r -C-\n  article#a -C-\n  i#i1 -C-\n  b#b1 N--\n  article#c ---\n"),
    TestMediaInvalidationCase(mode = "outcome", arguments = ["section#r(article#a.p(i#i1(b#b1)) article#c)", ".p * { color: red }", "rmattr #a class", ""], expected = "  full: false\n  document -C-\n  section#r -C-\n  article#a NC-\n  i#i1 NC-\n  b#b1 N--\n  article#c ---\n"),
    TestMediaInvalidationCase(mode = "outcome", arguments = ["section#r(article#a(i#i1(b#b1)) article#c)", "section:has(.q) article { color: red }", "attr #b1 class q", ""], expected = "  full: false\n  document -C-\n  section#r -C-\n  article#a N--\n  i#i1 ---\n  b#b1 ---\n  article#c N--\n"),
    TestMediaInvalidationCase(mode = "outcome", arguments = ["section#r(article#a(i#i1(b#b1)) article#c)", "section:has(article > i .q) { color: red }", "attr #b1 class q", ""], expected = "  full: false\n  document -C-\n  section#r N--\n  article#a ---\n  i#i1 ---\n  b#b1 ---\n  article#c ---\n"),
    TestMediaInvalidationCase(mode = "outcome", arguments = ["section#r(article#a(i#i1(b#b1)) article#c)", ":is(.m .n) b { color: red }", "attr #a class m", ""], expected = "  full: false\n  document ---\n  section#r ---\n  article#a ---\n  i#i1 ---\n  b#b1 ---\n  article#c ---\n"),
    TestMediaInvalidationCase(mode = "outcome", arguments = ["section#r(article#a(b#b1) article#c)", "x-foo { color: red }", "append #c x-foo#xf", ""], expected = "  full: false\n  document -C-\n  section#r -C-\n  article#a ---\n  b#b1 ---\n  article#c NC-\n  x-foo#xf N--\n"),
    TestMediaInvalidationCase(mode = "outcome", arguments = ["section#r(article#a(b#b1) article#c)", "b:empty { color: red }", "append #b1 i#n", ""], expected = "  full: false\n  document -C-\n  section#r -C-\n  article#a -C-\n  b#b1 NC-\n  i#n N--\n  article#c ---\n"),
    TestMediaInvalidationCase(mode = "outcome", arguments = ["section#r(article#a(b#b1) article#c(b#b2))", "article:has(b) { color: red }", "remove #b2", ""], expected = "  full: false\n  document -C-\n  section#r -C-\n  article#a ---\n  b#b1 ---\n  article#c NC-\n"),
    TestMediaInvalidationCase(mode = "outcome", arguments = ["section#r(article#a(b#b1) article#c(b#b2))", "article:has(:empty) { color: red }", "append #b1 'x'", ""], expected = "  full: false\n  document -C-\n  section#r -C-\n  article#a NC-\n  b#b1 NC-\n  text N--\n  article#c ---\n  b#b2 ---\n"),
    TestMediaInvalidationCase(mode = "outcome", arguments = ["section#r(article#a(b#b1) article#c(b#b2))", ".x { color: red }", "attr #a class x;rmattr #a class", ""], expected = "  full: false\n  document -C-\n  section#r -C-\n  article#a N--\n  b#b1 ---\n  article#c ---\n  b#b2 ---\n"),
    TestMediaInvalidationCase(mode = "outcome", arguments = ["section#r(article#a.x(b#b1) article#c(b#b2))", ":not(.x) b { color: red }", "rmattr #a class", ""], expected = "  full: false\n  document -C-\n  section#r -C-\n  article#a NC-\n  b#b1 N--\n  article#c ---\n  b#b2 ---\n"),
    TestMediaInvalidationCase(mode = "propinv", arguments = ["color", "red", "blue", ""], expected = "  repaint 1 stacking 0 relayout 0 layout-tree 0 visual-contexts 0 none 0 full 0\n"),
    TestMediaInvalidationCase(mode = "propinv", arguments = ["color", "red", "red", ""], expected = "  repaint 0 stacking 0 relayout 0 layout-tree 0 visual-contexts 0 none 1 full 0\n"),
    TestMediaInvalidationCase(mode = "propinv", arguments = ["color", "-", "-", ""], expected = "  repaint 0 stacking 0 relayout 0 layout-tree 0 visual-contexts 0 none 1 full 0\n"),
    TestMediaInvalidationCase(mode = "propinv", arguments = ["display", "block", "inline", ""], expected = "  repaint 1 stacking 1 relayout 1 layout-tree 1 visual-contexts 0 none 0 full 1\n"),
    TestMediaInvalidationCase(mode = "propinv", arguments = ["position", "static", "absolute", ""], expected = "  repaint 1 stacking 1 relayout 1 layout-tree 1 visual-contexts 0 none 0 full 1\n"),
    TestMediaInvalidationCase(mode = "propinv", arguments = ["content", "\"a\"", "\"b\"", ""], expected = "  repaint 1 stacking 1 relayout 1 layout-tree 1 visual-contexts 0 none 0 full 1\n"),
    TestMediaInvalidationCase(mode = "propinv", arguments = ["text-transform", "none", "uppercase", ""], expected = "  repaint 1 stacking 0 relayout 1 layout-tree 1 visual-contexts 0 none 0 full 0\n"),
    TestMediaInvalidationCase(mode = "propinv", arguments = ["overflow-x", "visible", "hidden", ""], expected = "  repaint 1 stacking 1 relayout 1 layout-tree 1 visual-contexts 0 none 0 full 1\n"),
    TestMediaInvalidationCase(mode = "propinv", arguments = ["counter-reset", "none", "a 1", ""], expected = "  repaint 0 stacking 0 relayout 0 layout-tree 1 visual-contexts 0 none 0 full 0\n"),
    TestMediaInvalidationCase(mode = "propinv", arguments = ["visibility", "visible", "hidden", ""], expected = "  repaint 1 stacking 0 relayout 0 layout-tree 0 visual-contexts 0 none 0 full 0\n"),
    TestMediaInvalidationCase(mode = "propinv", arguments = ["visibility", "visible", "collapse", ""], expected = "  repaint 1 stacking 0 relayout 1 layout-tree 0 visual-contexts 0 none 0 full 0\n"),
    TestMediaInvalidationCase(mode = "propinv", arguments = ["width", "10px", "20px", ""], expected = "  repaint 1 stacking 0 relayout 1 layout-tree 0 visual-contexts 0 none 0 full 0\n"),
    TestMediaInvalidationCase(mode = "propinv", arguments = ["z-index", "auto", "1", ""], expected = "  repaint 1 stacking 1 relayout 0 layout-tree 0 visual-contexts 0 none 0 full 0\n"),
    TestMediaInvalidationCase(mode = "propinv", arguments = ["z-index", "1", "2", ""], expected = "  repaint 1 stacking 1 relayout 0 layout-tree 0 visual-contexts 0 none 0 full 0\n"),
    TestMediaInvalidationCase(mode = "propinv", arguments = ["transform", "none", "rotate(10deg)", ""], expected = "  repaint 1 stacking 1 relayout 0 layout-tree 0 visual-contexts 1 none 0 full 0\n"),
    TestMediaInvalidationCase(mode = "propinv", arguments = ["transform", "rotate(10deg)", "rotate(20deg)", ""], expected = "  repaint 1 stacking 0 relayout 0 layout-tree 0 visual-contexts 1 none 0 full 0\n"),
    TestMediaInvalidationCase(mode = "propinv", arguments = ["filter", "none", "blur(2px)", ""], expected = "  repaint 1 stacking 1 relayout 0 layout-tree 0 visual-contexts 1 none 0 full 0\n"),
    TestMediaInvalidationCase(mode = "propinv", arguments = ["isolation", "auto", "isolate", ""], expected = "  repaint 1 stacking 0 relayout 1 layout-tree 0 visual-contexts 0 none 0 full 0\n"),
    TestMediaInvalidationCase(mode = "propinv", arguments = ["mix-blend-mode", "normal", "multiply", ""], expected = "  repaint 1 stacking 0 relayout 0 layout-tree 0 visual-contexts 1 none 0 full 0\n"),
    TestMediaInvalidationCase(mode = "propinv", arguments = ["clip-path", "none", "inset(1px)", ""], expected = "  repaint 1 stacking 1 relayout 0 layout-tree 0 visual-contexts 1 none 0 full 0\n"),
    TestMediaInvalidationCase(mode = "propinv", arguments = ["perspective", "none", "10px", ""], expected = "  repaint 1 stacking 0 relayout 1 layout-tree 0 visual-contexts 1 none 0 full 0\n"),
    TestMediaInvalidationCase(mode = "propinv", arguments = ["transform-style", "flat", "preserve-3d", ""], expected = "  repaint 1 stacking 0 relayout 1 layout-tree 0 visual-contexts 0 none 0 full 0\n"),
    TestMediaInvalidationCase(mode = "propinv", arguments = ["translate", "none", "10px", ""], expected = "  repaint 1 stacking 1 relayout 0 layout-tree 0 visual-contexts 1 none 0 full 0\n"),
    TestMediaInvalidationCase(mode = "propinv", arguments = ["will-change", "auto", "transform", ""], expected = "  repaint 1 stacking 0 relayout 0 layout-tree 0 visual-contexts 0 none 0 full 0\n"),
    TestMediaInvalidationCase(mode = "propinv", arguments = ["background-color", "red", "-", ""], expected = "  repaint 1 stacking 0 relayout 0 layout-tree 0 visual-contexts 0 none 0 full 0\n"),
    TestMediaInvalidationCase(mode = "propinv", arguments = ["margin-left", "1px", "2px", ""], expected = "  repaint 1 stacking 0 relayout 1 layout-tree 0 visual-contexts 0 none 0 full 0\n"),
    TestMediaInvalidationCase(mode = "propinv", arguments = ["transform-origin", "1px", "2px", ""], expected = "  repaint 1 stacking 0 relayout 0 layout-tree 0 visual-contexts 1 none 0 full 0\n"),
]