CSS methods, browser sessions serve 1, phone sessions 0 and computer sessions 1. A method marked not served answers StrategyUnavailable on that kind of session; check the handshake’s capabilities before relying on one.
CSS.getComputedStyleForNode
Browser: served
Phone: not served
Computer: served
Takes targetId
A node’s computed style as CSS values, limited to properties when given.
| Param | Type | Required | Description |
|---|---|---|---|
nodeId | string | Yes | Opaque DOM node id, scoped to the tab, frame and document. Never parse it. Fails with StaleNode once the node is gone, or when sent with another frame’s frameId; it never matches a different node. |
properties | string[] | No | Only these property names. Omitted means all. |
| Field | Type | Description |
|---|---|---|
computedStyle | NameValue[] |