CSS.setEffectivePropertyValueForNodeFind a rule with the given active property for the given node and set the new value for this property
| Name | Type | Description |
|---|---|---|
nodeId | DOM.NodeId | The element id for which to set property. |
propertyName | string | |
value | string |
{
"id": 1,
"method": "CSS.setEffectivePropertyValueForNode",
"params": {
"nodeId": 1,
"propertyName": "propertyName-value",
"value": "example-value"
}
}
{
"id": 1,
"result": {}
}
const result = await send('CSS.setEffectivePropertyValueForNode', {"nodeId": 1, "propertyName": "propertyName-value", "value": "example-value"});
console.log(result);