forcePseudoState method
Ensures that the given node will have specified pseudo-classes whenever its style is computed by
the browser.
nodeId
The element id for which to force the pseudo state.
forcedPseudoClasses
Element pseudo classes to force when computing the element's style.
Implementation
Future<void> forcePseudoState(
dom.NodeId nodeId, List<String> forcedPseudoClasses) async {
await _client.send('CSS.forcePseudoState', {
'nodeId': nodeId,
'forcedPseudoClasses': [...forcedPseudoClasses],
});
}