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