← Back to CSS domain
CSS.setPropertyRulePropertyName
Modifies the property rule property name.
Domain: CSS
experimental
Parameters
| Name | Type | Description |
styleSheetId | DOM.StyleSheetId | |
range | SourceRange | |
propertyName | string | |
Returns
| Name | Type | Description |
propertyName | Value | The resulting key text after modification. |
Example Request
{
"id": 1,
"method": "CSS.setPropertyRulePropertyName",
"params": {
"styleSheetId": "styleSheetId-value",
"range": "range-value",
"propertyName": "propertyName-value"
}
}
Example Response
{
"id": 1,
"result": {
"propertyName": "propertyName-value"
}
}
Usage in Node.js
const result = await send('CSS.setPropertyRulePropertyName', {"styleSheetId": "styleSheetId-value", "range": "range-value", "propertyName": "propertyName-value"});
console.log(result);
// {"propertyName": "propertyName-value"}