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