← Back to CSS domain
CSS.setNavigationText
Modifies the expression of a navigation at-rule.
Domain: CSS
experimental
Parameters
| Name | Type | Description |
styleSheetId | DOM.StyleSheetId | |
range | SourceRange | |
text | string | |
Returns
| Name | Type | Description |
navigation | CSSNavigation | The 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"}