css/cssom

edit

WPT coverage of the tests of css/cssom at the revision c8fa86fb13d4. The tests link to their results in the browsers on wpt.fyi. The tentative tests (experimental features), the reftests and the crash tests are listed separately from the stable tests.

GroupPassingTestsDisabledPass rate
Stable259264098%
Tentative69067%
Reftests912075%
Crash tests19190100%
All293304096%

Failure reasons

The tests that do not pass (failing or disabled), by kind of reason. A test with several reasons counts once per kind.

  • TEST BUG: 4
  • NOT IMPLEMENTED: 7

Stable tests

TestResultSubtestsKindDescription
CSS-escape-numeric-id.htmlPass2 / 2
CSS-namespace-object-class-string.htmlPass4 / 4
CSS-supports.htmlPass11 / 11
CSSConditionRule-conditionText.htmlPass1 / 1
CSSCounterStyleRule.htmlPass1 / 1
CSSFontFaceRule.htmlPass1 / 1
CSSFontFeatureValuesRule.htmlPass8 / 8
CSSGroupingRule-cssRules.htmlPass1 / 1
CSSGroupingRule-insertRule-computed.htmlPass1 / 1
CSSGroupingRule-insertRule.htmlPass7 / 7
CSSImportRule-insertRule-styleSheet-parentStyleSheet.htmlPass1 / 1
CSSImportRule-layer-false-positive.htmlPass11 / 11
CSSImportRule-layer-media.htmlPass6 / 6
CSSImportRule-media-identity.htmlPass1 / 1
CSSKeyframeRule-keyText-edge-cases.htmlPass14 / 14
CSSKeyframeRule-keyText.htmlPass11 / 11
CSSKeyframeRule.htmlPass2 / 2
CSSKeyframesRule-appendRule-invalid.htmlPass4 / 4
CSSKeyframesRule-appendRule-multiple.htmlPass2 / 2
CSSKeyframesRule-deleteRule-detach.htmlPass2 / 2
CSSKeyframesRule-indexed-getter.htmlPass6 / 6
CSSKeyframesRule.htmlPass3 / 3
CSSNamespaceRule.htmlPass1 / 1
CSSRule-type.htmlPass14 / 14
CSSRuleList.htmlPass1 / 1
CSSStyleDeclaration-indexed-properties.htmlPass6 / 6
CSSStyleDeclaration-iterator.htmlPass1 / 1
CSSStyleRule-selectorText-setter.htmlPass7 / 7
CSSStyleRule-set-selectorText-namespace.htmlPass5 / 5
CSSStyleRule-set-selectorText.htmlPass82 / 82
CSSStyleRule.htmlPass10 / 10
CSSStyleSheet-constructable-baseURL.htmlPass3 / 3
CSSStyleSheet-constructable-cssRules.htmlPass1 / 1
CSSStyleSheet-constructable-disabled-regular-sheet-insertion.htmlPass1 / 1
CSSStyleSheet-constructable-duplicate.htmlPass4 / 4
CSSStyleSheet-constructable-invalidation.htmlPass3 / 3
CSSStyleSheet-constructable-replace-cssRules.htmlPass2 / 2
CSSStyleSheet-constructable-replace-on-regular-sheet.htmlPass3 / 3
CSSStyleSheet-constructable-replace-thenable.htmlPass1 / 1
CSSStyleSheet-constructable-replaceSync-detached.htmlPass5 / 5
CSSStyleSheet-constructable.htmlPass32 / 32
CSSStyleSheet-insertRule-computed.htmlPass1 / 1
CSSStyleSheet-modify-after-removal.htmlPass2 / 2
CSSStyleSheet-replace-detach-old-rules.htmlPass4 / 4
CSSStyleSheet-replace-parse-errors.htmlPass8 / 8
CSSStyleSheet-template-adoption.htmlPass1 / 1
CSSStyleSheet.htmlPass17 / 17
HTMLLinkElement-disabled-001.htmlPass2 / 2
HTMLLinkElement-disabled-002.htmlPass1 / 1
HTMLLinkElement-disabled-003.htmlPass1 / 1
HTMLLinkElement-disabled-004.htmlPass1 / 1
HTMLLinkElement-disabled-005.htmlPass1 / 1
HTMLLinkElement-disabled-006.htmlPass1 / 1
HTMLLinkElement-disabled-007.htmlPass1 / 1
HTMLLinkElement-load-event-002.htmlPass2 / 2
HTMLLinkElement-load-event.htmlPass1 / 1
HTMLStyleElement-load-event.htmlPass1 / 1
MediaList-parsing.htmlPass13 / 13
MediaList.htmlPass1 / 1
MediaList2.xhtmlPass5 / 5
MutationObserver-style.htmlPass2 / 2
StyleSheet-properties.htmlPass35 / 35
StyleSheetList-constructable-shadow-with-style-recalc.htmlPass1 / 1
StyleSheetList-constructable-shadow.htmlPass1 / 1
StyleSheetList-constructable-with-style-recalc.htmlPass1 / 1
StyleSheetList-constructable.htmlPass1 / 1
StyleSheetList.htmlPass1 / 1
adoptedstylesheets-cascade-order.htmlPass13 / 13
adoptedstylesheets-modify-array-and-sheet.htmlPass3 / 3
adoptedstylesheets-observablearray-removal.htmlPass12 / 12
adoptedstylesheets-observablearray.htmlPass5 / 5
at-namespace.htmlPass1 / 1
base-uri.htmlPass3 / 3
border-shorthand-serialization.htmlPass3 / 3
caretPositionFromPoint-audioVideo.htmlPass2 / 2
caretPositionFromPoint-in-flex-container.htmlPass3 / 3
caretPositionFromPoint-textarea.htmlPass4 / 4
caretPositionFromPoint-with-transformation.htmlPass1 / 1
caretPositionFromPoint.htmlPass7 / 7
computed-style-001.htmlPass4 / 4
computed-style-002.htmlPass1 / 1
computed-style-003.htmlPass1 / 1
computed-style-004.htmlPass2 / 2
computed-style-005.htmlPass4 / 4
computed-style-set-property.htmlPass5 / 5
css-rule-selector-text.htmlPass2 / 2
css-style-attr-decl-block.htmlPass7 / 7
css-style-attribute-modifications.htmlPass1 / 1
css-style-declaration-modifications.htmlPass4 / 4
css-style-reparse.htmlPass2 / 2
cssimportrule-parent.htmlPass1 / 1
cssimportrule-sheet-identity.htmlPass1 / 1
cssimportrule.htmlPass12 / 12
cssom-cssText-serialize.htmlPass1 / 1
cssom-cssstyledeclaration-set.htmlPass1 / 1
cssom-fontfacerule-constructors.htmlPass2 / 2
cssom-fontfacerule.htmlPass1 / 1
cssom-getPropertyValue-common-checks.htmlFail9 / 11TEST BUG2 of 11 subtests: expect -webkit-line-clamp to be unable to represent its initial longhands (web-platform-tests/wpt commit 0c8a0f0, which assumes that the legacy shorthand always sets block-ellipsis: ellipsis); -webkit-line-clamp: none sets block-ellipsis to no-ellipsis (https://drafts.csswg.org/css-overflow-4/#propdef--webkit-line-clamp, checked by css/css-overflow/parsing/webkit-line-clamp-computed.html), so the initial longhands serialize as none
cssom-pagerule.htmlPass22 / 22
cssom-ruleTypeAndOrder.htmlPass7 / 7
cssom-setProperty-shorthand.htmlPass76 / 76
cssstyledeclaration-all-shorthand.htmlPass27 / 27
cssstyledeclaration-csstext-all-shorthand.htmlPass6 / 6
cssstyledeclaration-csstext-final-delimiter.htmlPass3 / 3
cssstyledeclaration-csstext-important.htmlPass1 / 1
cssstyledeclaration-csstext-setter.window.jsPass9 / 9
cssstyledeclaration-csstext.htmlPass11 / 11
cssstyledeclaration-custom-properties.htmlPass1 / 1
cssstyledeclaration-mutability.htmlPass3 / 3
cssstyledeclaration-mutationrecord-001.htmlPass1 / 1
cssstyledeclaration-mutationrecord-002.htmlPass1 / 1
cssstyledeclaration-mutationrecord-003.htmlPass1 / 1
cssstyledeclaration-mutationrecord-004.htmlPass1 / 1
cssstyledeclaration-mutationrecord-005.htmlPass1 / 1
cssstyledeclaration-nested.htmlPass1 / 1
cssstyledeclaration-properties.htmlPass1 / 1
cssstyledeclaration-registered-custom-properties.htmlPass2 / 2
cssstyledeclaration-removeProperty-all.htmlPass2 / 2
cssstyledeclaration-setter-attr.htmlPass2 / 2
cssstyledeclaration-setter-declarations.htmlPass4 / 4
cssstyledeclaration-setter-form-controls.htmlPass8 / 8
cssstyledeclaration-setter-logical.htmlPass1 / 1
delete-namespace-rule-when-child-rule-exists.htmlPass1 / 1
escape.htmlPass10 / 10
flex-serialization.htmlFail4 / 5TEST BUGflex: 0 is expected to serialize as flex: 0 1 0px, while every browser serializes it as flex: 0 1 0% (the omitted flex-basis is 0%)
font-family-serialization-001.htmlPass27 / 27
font-shorthand-serialization.htmlPass1 / 1
font-variant-shorthand-serialization.htmlPass7 / 7
functional-values-comma.htmlPass7 / 7
getComputedStyle-animations-replaced-into-ib-split.htmlPass1 / 1
getComputedStyle-basic.htmlPass4 / 4
getComputedStyle-calc.htmlPass5 / 5
getComputedStyle-detached-subtree.htmlPass6 / 6
getComputedStyle-display-none-001.htmlPass2 / 2
getComputedStyle-display-none-002.htmlPass1 / 1
getComputedStyle-display-none-003.htmlPass1 / 1
getComputedStyle-display-none-shadow-invalidation.htmlPass2 / 2
getComputedStyle-dynamic-subdoc.htmlPass1 / 1
getComputedStyle-important.htmlPass2 / 2
getComputedStyle-inset-inline-containing-block-vertical.htmlPass2 / 2
getComputedStyle-insets-absolute-roundtrip.htmlPass4 / 4
getComputedStyle-insets-absolute.htmlPass324 / 324
getComputedStyle-insets-fixed.htmlPass324 / 324
getComputedStyle-insets-grid.htmlPass5 / 5
getComputedStyle-insets-nobox.htmlPass216 / 216
getComputedStyle-insets-relative.htmlPass252 / 252
getComputedStyle-insets-relpos-block-in-inline.htmlPass4 / 4
getComputedStyle-insets-relpos-inline-002.htmlPass4 / 4
getComputedStyle-insets-relpos-inline.htmlPass4 / 4
getComputedStyle-insets-static.htmlPass216 / 216
getComputedStyle-insets-sticky-container-for-abspos.htmlPass252 / 252
getComputedStyle-insets-sticky.htmlPass252 / 252
getComputedStyle-layout-dependent-removed-ib-sibling.htmlPass1 / 1
getComputedStyle-layout-dependent-replaced-into-ib-split.htmlPass1 / 1
getComputedStyle-line-height.htmlPass4 / 4
getComputedStyle-live.htmlPass1 / 1
getComputedStyle-logical-enumeration.htmlPass1 / 1
getComputedStyle-margins-roundtrip.htmlPass4 / 4
getComputedStyle-math-function-percentage.htmlPass12 / 12
getComputedStyle-mutations.htmlPass9 / 9
getComputedStyle-page-rule.xhtmlPass1 / 1
getComputedStyle-pointerEvents.htmlPass3 / 3
getComputedStyle-property-order.htmlPass1 / 1
getComputedStyle-pseudo-checkmark.htmlPass3 / 3
getComputedStyle-pseudo-class.htmlPass1 / 1
getComputedStyle-pseudo-picker-icon.htmlPass3 / 3
getComputedStyle-pseudo-picker.htmlPass9 / 9
getComputedStyle-pseudo-shadow.htmlPass2 / 2
getComputedStyle-pseudo-with-argument.htmlPass22 / 22
getComputedStyle-pseudo.htmlPass28 / 28
getComputedStyle-resolved-colors.htmlPass13 / 13
getComputedStyle-resolved-min-max-clamping.htmlPass1 / 1
getComputedStyle-resolved-min-size-auto.htmlPass16 / 16
getComputedStyle-root-variables.htmlPass1 / 1
getComputedStyle-root.htmlPass1 / 1
getComputedStyle-ruby-width-height.htmlPass5 / 5
getComputedStyle-shadow-host.htmlPass1 / 1
getComputedStyle-shadow-inherit.htmlPass2 / 2
getComputedStyle-sticky-pos-percent.htmlPass1 / 1
getComputedStyle-style-element-updates.htmlPass4 / 4
getComputedStyle-visibility-nominal-case.htmlPass2 / 2
getComputedStyle-visibility-override.htmlPass2 / 2
getComputedStyle-visibility-unset.htmlPass2 / 2
grouping-rule-no-nested-declarations.htmlPass5 / 5
historical.htmlPass20 / 20
idlharness.htmlPass497 / 497
import-namespace-invalid-prelude.htmlPass8 / 8
inline-style-001.htmlPass5 / 5
insertRule-across-context.htmlPass2 / 2
insertRule-charset-no-index.htmlPass2 / 2
insertRule-font-face.htmlPass1 / 1
insertRule-import-no-index.htmlPass2 / 2
insertRule-namespace-after-import.htmlPass2 / 2
insertRule-namespace-no-index.htmlPass3 / 3
insertRule-no-index.htmlPass2 / 2
insertRule-syntax-error-01.htmlPass1 / 1
invalid-pseudo-elements.htmlPass1 / 1
link-element-stylesheet-title.htmlPass2 / 2
medialist-appendmedium-parse-single-and-dedup.htmlPass3 / 3
medialist-deletemedium-parse-and-remove-all.htmlPass2 / 2
medialist-interfaces-001.htmlPass4 / 4
medialist-interfaces-002.htmlPass3 / 3
medialist-interfaces-004.htmlPass2 / 2
medialist-mutation-after-owner-gc.htmlPass9 / 9
mediaquery-sort-dedup.htmlPass2 / 2
nested-import-namespace-invalid.htmlPass4 / 4
overflow-serialization.htmlPass10 / 10
page-descriptors.htmlPass21 / 21
preferred-stylesheet-order.htmlPass1 / 1
preferred-stylesheet-reversed-order.htmlPass1 / 1
property-accessors.htmlPass9 / 9
resolved-border-width.htmlPass2 / 2
rule-restrictions.htmlFail1 / 2TEST BUGthe @page subtest expects the declaration of transform (which does not apply to the page context) dropped from CSSPageRule.style, as Gecko does; as in Blink and WebKit, and as css/css-page/cssom/margin-001.html and margin-002.html expect, the declarations of all the properties are kept in @page and in the margin rules (the cascade of the page context ignores them; css-page-3 leaves the properties that are not in CSS 2.1 undefined)
selectorSerialize.htmlPass23 / 23
selectorText-modification-restyle-002.htmlPass2 / 2
serialization-CSSDeclaration-with-important.htmlPass4 / 4
serialize-all-longhands.htmlPass2 / 2
serialize-custom-props.htmlPass20 / 20
serialize-media-rule.htmlPass12 / 12
serialize-namespaced-type-selectors.htmlPass60 / 60
serialize-values.htmlFail696 / 697NOT IMPLEMENTEDthe invert value of outline-color
serialize-variable-reference-whitespace.htmlPass8 / 8
serialize-variable-reference.htmlPass4 / 4
serialize-whitespace.htmlPass1 / 1
set-selector-text-attachment.htmlPass1 / 1
setproperty-custom-property-override-important.htmlPass5 / 5
setproperty-null-undefined.htmlPass4 / 4
shadow-dom-style-sheet.htmlPass3 / 3
shorthand-serialization.htmlPass7 / 7
shorthand-values.htmlFail20 / 21TEST BUG1 of 21 subtests: expects -webkit-line-clamp: none to be serialized with -webkit-line-clamp because "line-clamp: none resets block-ellipsis to no-ellipsis" (web-platform-tests/wpt commit 0c8a0f0, which assumes that the legacy shorthand always sets block-ellipsis: ellipsis); -webkit-line-clamp: none sets block-ellipsis to no-ellipsis (https://drafts.csswg.org/css-overflow-4/#propdef--webkit-line-clamp, checked by css/css-overflow/parsing/webkit-line-clamp-computed.html), so its longhands are the ones of line-clamp: none, the preferred shorthand (https://drafts.csswg.org/cssom/#concept-shorthands-preferred-order)
style-attr-update-across-documents.htmlPass1 / 1
style-background-position-longhands.htmlPass3 / 3
style-background-position.htmlPass7 / 7
style-background-repeat.htmlPass3 / 3
style-background-shorthand-overwrite.htmlPass4 / 4
style-backgroundcolor-oklch.htmlPass1 / 1
style-backgroundcolor-table-row.htmlPass1 / 1
style-backgroundimage-lineargradient.htmlPass1 / 1
style-border-shorthand-var.htmlPass1 / 1
style-color-values.htmlPass6 / 6
style-color.htmlPass4 / 4
style-cssText-mutations.htmlPass4 / 4
style-element-inline-important.htmlPass1 / 1
style-element-insertion-removal-computed.htmlPass2 / 2
style-font-shorthand.htmlPass1 / 1
style-global-variable.htmlPass1 / 1
style-set-cssText.htmlPass3 / 3
style-set-custom-property-priority.htmlPass3 / 3
style-set-custom-property.htmlPass1 / 1
style-set-property.htmlPass21 / 21
style-sheet-interfaces-001.htmlPass7 / 7
style-sheet-interfaces-002.htmlPass2 / 2
style-width-calc-vh-vw.htmlPass1 / 1
stylesheet-cross-origin-redirect-quirks.sub.htmlPass4 / 4
stylesheet-same-origin.sub.htmlPass7 / 7
stylesheet-title.htmlPass2 / 2
stylesheets-in-non-rendered-document.htmlPass3 / 3
system-color-inherit.htmlPass2 / 2
system-color-lowercase.htmlPass4 / 4
ttwf-cssom-doc-ext-load-count.htmlPass3 / 3
ttwf-cssom-doc-ext-load-tree-order.htmlPass6 / 6
ttwf-cssom-document-extension.htmlPass1 / 1
variable-names.htmlPass6 / 6
xml-stylesheet-pi-in-doctype.xhtmlPass1 / 1

Tentative tests

TestResultSubtestsKindDescription
CSSContainerRule.tentative.htmlPass2 / 2
CSSStyleSheet-constructable-disallow-import.tentative.htmlPass4 / 4
caretRangeFromPoint-replace-document.tentative.htmlFail0 / 1NOT IMPLEMENTEDthe non-standard document.caretRangeFromPoint()
caretRangeFromPoint-textarea-transform.tentative.htmlFail0 / 2NOT IMPLEMENTEDthe non-standard document.caretRangeFromPoint()
caretRangeFromPoint.tentative.htmlFail0 / 8NOT IMPLEMENTEDthe non-standard document.caretRangeFromPoint()
cssstyledeclaration-cssfontrule.tentative.htmlPass1 / 1
getComputedStyle-getter-v-properties.tentative.htmlPass10 / 10
getComputedStyle-width-scroll.tentative.htmlPass1 / 1
style-attr-stray-braces.tentative.htmlPass16 / 16

Reftests

TestResultVariantsKindDescription
CSSStyleSheet-constructable-concat.htmlPass1 / 1
CSSStyleSheet-constructable-insertRule-base-uri.htmlPass1 / 1
HTMLLinkElement-disabled-alternate.htmlPass1 / 1
adoptedstylesheets-adopt-link.tentative.htmlFail0 / 1NOT IMPLEMENTEDadopting the style sheet of a style or link element in adoptedStyleSheets (a tentative proposal: the specification only allows constructed style sheets and throws NotAllowedError); fails in every browser
adoptedstylesheets-adopt-style-subresource.tentative.htmlFail0 / 1NOT IMPLEMENTEDadopting the style sheet of a style or link element in adoptedStyleSheets (a tentative proposal: the specification only allows constructed style sheets and throws NotAllowedError); fails in every browser
adoptedstylesheets-adopt-style.tentative.htmlFail0 / 1NOT IMPLEMENTEDadopting the style sheet of a style or link element in adoptedStyleSheets (a tentative proposal: the specification only allows constructed style sheets and throws NotAllowedError); fails in every browser
all-initial-csstext.htmlPass1 / 1
insertRule-from-script.htmlPass1 / 1
medialist-dynamic-001.htmlPass1 / 1
selectorText-modification-restyle-001.htmlPass1 / 1
style-attr-clone.htmlPass1 / 1
stylesheet-replacedata-dynamic.htmlPass1 / 1

Crash tests

TestResultVariantsKindDescription
CSSRuleList-appendRule-keyframe-001-crash.htmlPass1 / 1
CSSRuleList-appendRule-keyframe-002-crash.htmlPass1 / 1
adoptedstylesheets-invalid-assignment-crash.htmlPass1 / 1
change-rule-with-layers-crash.htmlPass1 / 1
declaration-block-all-crash.htmlPass1 / 1
getComputedStyle-in-unrendered-subframe-with-query-container-crash.htmlPass1 / 1
getComputedStyle-insets-absolute-crash.htmlPass1 / 1
getComputedStyle-insets-absolute-logical-crash.htmlPass1 / 1
getComputedStyle-insets-multicol-absolute-crash.htmlPass1 / 1
getComputedStyle-special-chars-crash.htmlPass1 / 1
insert-dir-rule-crash.htmlPass1 / 1
insert-dir-rule-in-iframe-crash.htmlPass1 / 1
insert-invalid-where-rule-crash.htmlPass1 / 1
insertRule-import-no-sheet-crash.htmlPass1 / 1
insertRule-import-trailing-garbage-crash.htmlPass1 / 1
insertRule-page-detached-grouping-rule-crash.htmlPass1 / 1
removerule-invalidation-crash.htmlPass1 / 1
set-selector-text-detached-rule-delete-crash.htmlPass1 / 1
set-selector-text-detached-rule-replace-crash.htmlPass1 / 1