Summary

Harness status: OK

Found 7 tests

Details

ResultTest NameMessage
PassStyle attribute should create CSS declaration block based on its content
Asserts run
Pass
assert_equals("z-index: 10;", "z-index: 10;")
    at Test.<anonymous> ( /css/cssom/css-style-attr-decl-block.html:17:3)
PassChanges to style attribute should reflect on CSS declaration block
Asserts run
Pass
assert_equals("z-index: 20;", "z-index: 20;")
    at Test.<anonymous> ( /css/cssom/css-style-attr-decl-block.html:23:3)
Pass
assert_equals("z-index: 21;", "z-index: 21;", "CSS declaration block after changing the style attribute")
    at assert_css_text ( /css/cssom/css-style-attr-decl-block.html:25:5)
Pass
assert_equals("", "", "CSS declaration block after removing the style attribute")
    at assert_css_text ( /css/cssom/css-style-attr-decl-block.html:25:5)
Pass
assert_equals("position: absolute;", "position: absolute;", "CSS declaration block after adding style attribute again")
    at assert_css_text ( /css/cssom/css-style-attr-decl-block.html:25:5)
PassChanges to CSS declaration block should reflect on style attribute
Asserts run
Pass
assert_equals("z-index: 30;", "z-index: 30;")
    at Test.<anonymous> ( /css/cssom/css-style-attr-decl-block.html:38:3)
Pass
assert_equals("z-index: 31;", "z-index: 31;", "style attribute after changing property in CSS declaration block")
    at assert_attr ( /css/cssom/css-style-attr-decl-block.html:40:5)
Pass
assert_equals("", "", "style attribute after removing property from CSS declaration block")
    at assert_attr ( /css/cssom/css-style-attr-decl-block.html:40:5)
Pass
assert_equals("position: absolute;", "position: absolute;", "style attribute after adding property to CSS declaration block")
    at assert_attr ( /css/cssom/css-style-attr-decl-block.html:40:5)
Pass
assert_equals("z-index: 32;", "z-index: 32;", "style attribute after changing cssText")
    at assert_attr ( /css/cssom/css-style-attr-decl-block.html:40:5)
Pass
assert_equals("z-index: 33;", "z-index: 33;", "style attribute after changing cssText to a partial invalid value")
    at assert_attr ( /css/cssom/css-style-attr-decl-block.html:40:5)
PassChanges to CSS declaration block should queue mutation record for style attribute
Asserts run
Pass
assert_equals("z-index: 40;", "z-index: 40;")
    at Test.<anonymous> ( /css/cssom/css-style-attr-decl-block.html:57:3)
Pass
assert_equals(1, 1, "number of mutation records after changing property in CSS declaration block")
    at assert_record_with_old_value ( /css/cssom/css-style-attr-decl-block.html:63:5)
Pass
assert_equals("attributes", "attributes", "mutation type after changing property in CSS declaration block")
    at assert_record_with_old_value ( /css/cssom/css-style-attr-decl-block.html:65:5)
Pass
assert_equals("style", "style", "mutated attribute after changing property in CSS declaration block")
    at assert_record_with_old_value ( /css/cssom/css-style-attr-decl-block.html:66:5)
Pass
assert_equals("z-index: 40;", "z-index: 40;", "old value after changing property in CSS declaration block")
    at assert_record_with_old_value ( /css/cssom/css-style-attr-decl-block.html:67:5)
Pass
assert_equals(1, 1, "number of mutation records after changing cssText")
    at assert_record_with_old_value ( /css/cssom/css-style-attr-decl-block.html:63:5)
Pass
assert_equals("attributes", "attributes", "mutation type after changing cssText")
    at assert_record_with_old_value ( /css/cssom/css-style-attr-decl-block.html:65:5)
Pass
assert_equals("style", "style", "mutated attribute after changing cssText")
    at assert_record_with_old_value ( /css/cssom/css-style-attr-decl-block.html:66:5)
Pass
assert_equals("z-index: 41;", "z-index: 41;", "old value after changing cssText")
    at assert_record_with_old_value ( /css/cssom/css-style-attr-decl-block.html:67:5)
Pass
assert_equals(1, 1, "number of mutation records after changing cssText with the same content")
    at assert_record_with_old_value ( /css/cssom/css-style-attr-decl-block.html:63:5)
Pass
assert_equals("attributes", "attributes", "mutation type after changing cssText with the same content")
    at assert_record_with_old_value ( /css/cssom/css-style-attr-decl-block.html:65:5)
Pass
assert_equals("style", "style", "mutated attribute after changing cssText with the same content")
    at assert_record_with_old_value ( /css/cssom/css-style-attr-decl-block.html:66:5)
Pass
assert_equals("z-index: 42;", "z-index: 42;", "old value after changing cssText with the same content")
    at assert_record_with_old_value ( /css/cssom/css-style-attr-decl-block.html:67:5)
Pass
assert_equals(1, 1, "number of mutation records after removing property from CSS declaration block")
    at assert_record_with_old_value ( /css/cssom/css-style-attr-decl-block.html:63:5)
Pass
assert_equals("attributes", "attributes", "mutation type after removing property from CSS declaration block")
    at assert_record_with_old_value ( /css/cssom/css-style-attr-decl-block.html:65:5)
Pass
assert_equals("style", "style", "mutated attribute after removing property from CSS declaration block")
    at assert_record_with_old_value ( /css/cssom/css-style-attr-decl-block.html:66:5)
Pass
assert_equals("z-index: 42;", "z-index: 42;", "old value after removing property from CSS declaration block")
    at assert_record_with_old_value ( /css/cssom/css-style-attr-decl-block.html:67:5)
Pass
assert_equals(1, 1, "number of mutation records after adding shorthand property to CSS declaration block")
    at assert_record_with_old_value ( /css/cssom/css-style-attr-decl-block.html:63:5)
Pass
assert_equals("attributes", "attributes", "mutation type after adding shorthand property to CSS declaration block")
    at assert_record_with_old_value ( /css/cssom/css-style-attr-decl-block.html:65:5)
Pass
assert_equals("style", "style", "mutated attribute after adding shorthand property to CSS declaration block")
    at assert_record_with_old_value ( /css/cssom/css-style-attr-decl-block.html:66:5)
Pass
assert_equals("", "", "old value after adding shorthand property to CSS declaration block")
    at assert_record_with_old_value ( /css/cssom/css-style-attr-decl-block.html:67:5)
Pass
assert_equals(1, 1, "number of mutation records after removing shorthand property from CSS declaration block")
    at assert_record_with_old_value ( /css/cssom/css-style-attr-decl-block.html:63:5)
Pass
assert_equals("attributes", "attributes", "mutation type after removing shorthand property from CSS declaration block")
    at assert_record_with_old_value ( /css/cssom/css-style-attr-decl-block.html:65:5)
Pass
assert_equals("style", "style", "mutated attribute after removing shorthand property from CSS declaration block")
    at assert_record_with_old_value ( /css/cssom/css-style-attr-decl-block.html:66:5)
Pass
assert_equals("margin: 1px;", "margin: 1px;", "old value after removing shorthand property from CSS declaration block")
    at assert_record_with_old_value ( /css/cssom/css-style-attr-decl-block.html:67:5)
Pass
assert_equals("", "")
    at Test.<anonymous> ( /css/cssom/css-style-attr-decl-block.html:83:3)
PassRemoving non-existing property or setting invalid value on CSS declaration block shouldn't queue mutation record
Asserts run
Pass
assert_equals("z-index: 50;", "z-index: 50;")
    at Test.<anonymous> ( /css/cssom/css-style-attr-decl-block.html:89:3)
Pass
assert_equals(0, 0, "expect no record after setting invalid value to property")
    at assert_no_record ( /css/cssom/css-style-attr-decl-block.html:95:5)
Pass
assert_equals(0, 0, "expect no record after removing non-existing longhand property")
    at assert_no_record ( /css/cssom/css-style-attr-decl-block.html:95:5)
Pass
assert_equals(0, 0, "expect no record after setting empty string to non-existing longhand property")
    at assert_no_record ( /css/cssom/css-style-attr-decl-block.html:95:5)
Pass
assert_equals(0, 0, "expect no record after removing non-existing shorthand property")
    at assert_no_record ( /css/cssom/css-style-attr-decl-block.html:95:5)
Pass
assert_equals(0, 0, "expect no record after setting empty string to non-existing shorthand property")
    at assert_no_record ( /css/cssom/css-style-attr-decl-block.html:95:5)
Pass
assert_equals("z-index: 50; invalid", "z-index: 50; invalid", "style attribute after removing non-existing properties")
    at Test.<anonymous> ( /css/cssom/css-style-attr-decl-block.html:110:3)
PassChanges to CSS declaration block after a base URL change
Asserts run
Pass
assert_equals("url(\"https://www1.wpt.live/css/cssom/\")", "url(\"https://www1.wpt.live/css/cssom/\")", "getComputedStyle(elem).backgroundImage after setting background-color")
    at Test.<anonymous> ( /css/cssom/css-style-attr-decl-block.html:127:3)
Pass
assert_not_equals("url(\"https://www1.wpt.live/\")", "url(\"https://www1.wpt.live/css/cssom/\")", "getComputedStyle(elem).backgroundImage after setting background-image")
    at Test.<anonymous> ( /css/cssom/css-style-attr-decl-block.html:130:3)
PassExpansion of all:unset and all:revert treated identically
Asserts run
Pass
assert_equals("color-scheme: unset; forced-color-adjust: unset; mask: unset; math-depth: unset; position: unset; position-anchor: unset; text-size-adjust: unset; appearance: unset; color: unset; font: unset; font-palette: unset; font-synthesis: unset; inset-area: unset; position-area: unset; text-orientation: unset; text-rendering: unset; text-spacing-trim: unset; -webkit-font-smoothing: unset; -webkit-locale: unset; -webkit-text-orientation: unset; -webkit-writing-mode: unset; writing-mode: unset; zoom: unset; accent-color: unset; place-content: unset; place-items: unset; place-self: unset; alignment-baseline: unset; anchor-name: unset; animation-composition: unset; animation: unset; app-region: unset; aspect-ratio: unset; backdrop-filter: unset; backface-visibility: unset; background: unset; background-blend-mode: unset; baseline-shift: unset; baseline-source: unset; block-size: unset; border-block: unset; border: unset; border-bottom-left-radius: 1px; border-bottom-right-radius: unset; border-collapse: unset; border-end-end-radius: unset; border-end-start-radius: unset; border-inline: unset; border-start-end-radius: unset; border-start-start-radius: unset; border-top-left-radius: unset; border-top-right-radius: unset; inset: unset; box-decoration-break: unset; box-shadow: unset; box-sizing: unset; break-after: unset; break-before: unset; break-inside: unset; buffered-rendering: unset; caption-side: unset; caret-color: unset; clear: unset; clip: unset; clip-path: unset; clip-rule: unset; color-interpolation: unset; color-interpolation-filters: unset; color-rendering: unset; columns: unset; column-fill: unset; gap: unset; column-rule: unset; column-span: unset; contain: unset; contain-intrinsic-block-size: unset; contain-intrinsic-size: unset; contain-intrinsic-inline-size: unset; container: unset; content: unset; content-visibility: unset; counter-increment: unset; counter-reset: unset; counter-set: unset; cursor: unset; cx: unset; cy: unset; d: unset; display: unset; dominant-baseline: unset; empty-cells: unset; field-sizing: unset; fill: unset; fill-opacity: unset; fill-rule: unset; filter: unset; flex: unset; flex-flow: unset; float: unset; flood-color: unset; flood-opacity: unset; grid: unset; grid-area: unset; height: unset; hyphenate-character: unset; hyphenate-limit-chars: unset; hyphens: unset; image-orientation: unset; image-rendering: unset; initial-letter: unset; inline-size: unset; inset-block: unset; inset-inline: unset; interpolate-size: unset; isolation: unset; letter-spacing: unset; lighting-color: unset; line-break: unset; list-style: unset; margin-block: unset; margin: unset; margin-inline: unset; marker: unset; mask-type: unset; math-shift: unset; math-style: unset; max-block-size: unset; max-height: unset; max-inline-size: unset; max-width: unset; min-block-size: unset; min-height: unset; min-inline-size: unset; min-width: unset; mix-blend-mode: unset; object-fit: unset; object-position: unset; object-view-box: unset; offset: unset; opacity: unset; order: unset; orphans: unset; outline: unset; outline-offset: unset; overflow-anchor: unset; overflow-clip-margin: unset; overflow-wrap: unset; overflow: unset; overlay: unset; overscroll-behavior-block: unset; overscroll-behavior-inline: unset; overscroll-behavior: unset; padding-block: unset; padding: unset; padding-inline: unset; page: unset; page-orientation: unset; paint-order: unset; perspective: unset; perspective-origin: unset; pointer-events: unset; position-try: unset; position-visibility: unset; quotes: unset; r: unset; resize: unset; rotate: unset; ruby-align: unset; ruby-position: unset; rx: unset; ry: unset; scale: unset; scroll-behavior: unset; scroll-margin-block: unset; scroll-margin: unset; scroll-margin-inline: unset; scroll-padding-block: unset; scroll-padding: unset; scroll-padding-inline: unset; scroll-snap-align: unset; scroll-snap-stop: unset; scroll-snap-type: unset; scroll-timeline: unset; scrollbar-color: unset; scrollbar-gutter: unset; scrollbar-width: unset; shape-image-threshold: unset; shape-margin: unset; shape-outside: unset; shape-rendering: unset; size: unset; speak: unset; stop-color: unset; stop-opacity: unset; stroke: unset; stroke-dasharray: unset; stroke-dashoffset: unset; stroke-linecap: unset; stroke-linejoin: unset; stroke-miterlimit: unset; stroke-opacity: unset; stroke-width: unset; tab-size: unset; table-layout: unset; text-align: unset; text-align-last: unset; text-anchor: unset; text-combine-upright: unset; text-decoration: unset; text-decoration-skip-ink: unset; text-emphasis: unset; text-emphasis-position: unset; text-indent: unset; text-overflow: unset; text-shadow: unset; text-transform: unset; text-underline-offset: unset; text-underline-position: unset; text-wrap: unset; timeline-scope: unset; touch-action: unset; transform: unset; transform-box: unset; transform-origin: unset; transform-style: unset; transition: unset; translate: unset; user-select: unset; vector-effect: unset; vertical-align: unset; view-timeline: unset; view-transition-class: unset; view-transition-name: unset; visibility: unset; border-spacing: unset; -webkit-box-align: unset; -webkit-box-decoration-break: unset; -webkit-box-direction: unset; -webkit-box-flex: unset; -webkit-box-ordinal-group: unset; -webkit-box-orient: unset; -webkit-box-pack: unset; -webkit-box-reflect: unset; -webkit-line-break: unset; -webkit-line-clamp: unset; -webkit-mask-box-image: unset; -webkit-print-color-adjust: unset; -webkit-rtl-ordering: unset; -webkit-ruby-position: unset; -webkit-tap-highlight-color: unset; -webkit-text-combine: unset; -webkit-text-decorations-in-effect: unset; -webkit-text-fill-color: unset; -webkit-text-security: unset; -webkit-text-stroke: unset; -webkit-user-drag: unset; white-space-collapse: unset; widows: unset; width: unset; will-change: unset; word-break: unset; word-spacing: unset; x: unset; y: unset; z-index: unset;", "color-scheme: unset; forced-color-adjust: unset; mask: unset; math-depth: unset; position: unset; position-anchor: unset; text-size-adjust: unset; appearance: unset; color: unset; font: unset; font-palette: unset; font-synthesis: unset; inset-area: unset; position-area: unset; text-orientation: unset; text-rendering: unset; text-spacing-trim: unset; -webkit-font-smoothing: unset; -webkit-locale: unset; -webkit-text-orientation: unset; -webkit-writing-mode: unset; writing-mode: unset; zoom: unset; accent-color: unset; place-content: unset; place-items: unset; place-self: unset; alignment-baseline: unset; anchor-name: unset; animation-composition: unset; animation: unset; app-region: unset; aspect-ratio: unset; backdrop-filter: unset; backface-visibility: unset; background: unset; background-blend-mode: unset; baseline-shift: unset; baseline-source: unset; block-size: unset; border-block: unset; border: unset; border-bottom-left-radius: 1px; border-bottom-right-radius: unset; border-collapse: unset; border-end-end-radius: unset; border-end-start-radius: unset; border-inline: unset; border-start-end-radius: unset; border-start-start-radius: unset; border-top-left-radius: unset; border-top-right-radius: unset; inset: unset; box-decoration-break: unset; box-shadow: unset; box-sizing: unset; break-after: unset; break-before: unset; break-inside: unset; buffered-rendering: unset; caption-side: unset; caret-color: unset; clear: unset; clip: unset; clip-path: unset; clip-rule: unset; color-interpolation: unset; color-interpolation-filters: unset; color-rendering: unset; columns: unset; column-fill: unset; gap: unset; column-rule: unset; column-span: unset; contain: unset; contain-intrinsic-block-size: unset; contain-intrinsic-size: unset; contain-intrinsic-inline-size: unset; container: unset; content: unset; content-visibility: unset; counter-increment: unset; counter-reset: unset; counter-set: unset; cursor: unset; cx: unset; cy: unset; d: unset; display: unset; dominant-baseline: unset; empty-cells: unset; field-sizing: unset; fill: unset; fill-opacity: unset; fill-rule: unset; filter: unset; flex: unset; flex-flow: unset; float: unset; flood-color: unset; flood-opacity: unset; grid: unset; grid-area: unset; height: unset; hyphenate-character: unset; hyphenate-limit-chars: unset; hyphens: unset; image-orientation: unset; image-rendering: unset; initial-letter: unset; inline-size: unset; inset-block: unset; inset-inline: unset; interpolate-size: unset; isolation: unset; letter-spacing: unset; lighting-color: unset; line-break: unset; list-style: unset; margin-block: unset; margin: unset; margin-inline: unset; marker: unset; mask-type: unset; math-shift: unset; math-style: unset; max-block-size: unset; max-height: unset; max-inline-size: unset; max-width: unset; min-block-size: unset; min-height: unset; min-inline-size: unset; min-width: unset; mix-blend-mode: unset; object-fit: unset; object-position: unset; object-view-box: unset; offset: unset; opacity: unset; order: unset; orphans: unset; outline: unset; outline-offset: unset; overflow-anchor: unset; overflow-clip-margin: unset; overflow-wrap: unset; overflow: unset; overlay: unset; overscroll-behavior-block: unset; overscroll-behavior-inline: unset; overscroll-behavior: unset; padding-block: unset; padding: unset; padding-inline: unset; page: unset; page-orientation: unset; paint-order: unset; perspective: unset; perspective-origin: unset; pointer-events: unset; position-try: unset; position-visibility: unset; quotes: unset; r: unset; resize: unset; rotate: unset; ruby-align: unset; ruby-position: unset; rx: unset; ry: unset; scale: unset; scroll-behavior: unset; scroll-margin-block: unset; scroll-margin: unset; scroll-margin-inline: unset; scroll-padding-block: unset; scroll-padding: unset; scroll-padding-inline: unset; scroll-snap-align: unset; scroll-snap-stop: unset; scroll-snap-type: unset; scroll-timeline: unset; scrollbar-color: unset; scrollbar-gutter: unset; scrollbar-width: unset; shape-image-threshold: unset; shape-margin: unset; shape-outside: unset; shape-rendering: unset; size: unset; speak: unset; stop-color: unset; stop-opacity: unset; stroke: unset; stroke-dasharray: unset; stroke-dashoffset: unset; stroke-linecap: unset; stroke-linejoin: unset; stroke-miterlimit: unset; stroke-opacity: unset; stroke-width: unset; tab-size: unset; table-layout: unset; text-align: unset; text-align-last: unset; text-anchor: unset; text-combine-upright: unset; text-decoration: unset; text-decoration-skip-ink: unset; text-emphasis: unset; text-emphasis-position: unset; text-indent: unset; text-overflow: unset; text-shadow: unset; text-transform: unset; text-underline-offset: unset; text-underline-position: unset; text-wrap: unset; timeline-scope: unset; touch-action: unset; transform: unset; transform-box: unset; transform-origin: unset; transform-style: unset; transition: unset; translate: unset; user-select: unset; vector-effect: unset; vertical-align: unset; view-timeline: unset; view-transition-class: unset; view-transition-name: unset; visibility: unset; border-spacing: unset; -webkit-box-align: unset; -webkit-box-decoration-break: unset; -webkit-box-direction: unset; -webkit-box-flex: unset; -webkit-box-ordinal-group: unset; -webkit-box-orient: unset; -webkit-box-pack: unset; -webkit-box-reflect: unset; -webkit-line-break: unset; -webkit-line-clamp: unset; -webkit-mask-box-image: unset; -webkit-print-color-adjust: unset; -webkit-rtl-ordering: unset; -webkit-ruby-position: unset; -webkit-tap-highlight-color: unset; -webkit-text-combine: unset; -webkit-text-decorations-in-effect: unset; -webkit-text-fill-color: unset; -webkit-text-security: unset; -webkit-text-stroke: unset; -webkit-user-drag: unset; white-space-collapse: unset; widows: unset; width: unset; will-change: unset; word-break: unset; word-spacing: unset; x: unset; y: unset; z-index: unset;")
    at Test.<anonymous> ( /css/cssom/css-style-attr-decl-block.html:146:3)