Skip to main content

GET_LOCATION_FOR_SELECTOR

Constant GET_LOCATION_FOR_SELECTOR 

Source
pub const GET_LOCATION_FOR_SELECTOR: &str = "CSS.getLocationForSelector";
Expand description

Given a CSS selector text and a style sheet ID, getLocationForSelector returns an array of locations of the CSS selector in the style sheet.

Experimental: may change without notice.

Parameters:

  • styleSheetId: DOM.StyleSheetId
  • selectorText: string

Returns: ranges