← Back to CSS domain

CSS.setSupportsText

Modifies the expression of a supports at-rule.

Domain: CSS experimental

Parameters

NameTypeDescription
styleSheetIdDOM.StyleSheetId
rangeSourceRange
textstring

Returns

NameTypeDescription
supportsCSSSupportsThe 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"}