← Back to CSS domain

CSS.setNavigationText

Modifies the expression of a navigation at-rule.

Domain: CSS experimental

Parameters

NameTypeDescription
styleSheetIdDOM.StyleSheetId
rangeSourceRange
textstring

Returns

NameTypeDescription
navigationCSSNavigationThe resulting CSS Navigation rule after modification.

Example Request

{
  "id": 1,
  "method": "CSS.setNavigationText",
  "params": {
    "styleSheetId": "styleSheetId-value",
    "range": "range-value",
    "text": "text-value"
  }
}

Example Response

{
  "id": 1,
  "result": {
    "navigation": "navigation-value"
  }
}

Usage in Node.js

const result = await send('CSS.setNavigationText', {"styleSheetId": "styleSheetId-value", "range": "range-value", "text": "text-value"});
console.log(result);
// {"navigation": "navigation-value"}