Skip to main content

getComputedStyle()

Returns the computed values of all CSS properties of an element after the cascade and inheritance. Specification: drafts.csswg.org/cssom/.

Results​

Probed on 2026-10-19 with Node.js v22.23.3.

warpdom 0.1.6​

Supported

3 of 3 checks work.

Report a wrong result for warpdom

happy-dom 21.0.3​

Partial

1 of 3 checks work.

  • An inherited property set on the parent (color: red) computes to "rgb(255, 0, 0)" on the child.
    • Result: child color: expected "rgb(255, 0, 0)", got "red"
  • Values not set by the page use the initial or user-agent value: a <div> has display "block", a <span> has visibility "visible".
    • Result: span visibility: expected "visible", got ""
Report a wrong result for happy-dom

jsdom 30.1.3​

Supported

3 of 3 checks work.

Report a wrong result for jsdom

linkedom 0.18.13​

Missing

Not defined in this engine's window.

Report a wrong result for linkedom

Checks​

  • stylesheet-rule: A rule from a <style> element applies: .hidden { display: none } gives display "none". (spec)
  • inherited: An inherited property set on the parent (color: red) computes to "rgb(255, 0, 0)" on the child. (spec)
  • initial-and-default: Values not set by the page use the initial or user-agent value: a <div> has display "block", a <span> has visibility "visible". (spec)