MCPcopy Create free account
hub / github.com/ChromeDevTools/devtools-frontend / createCSSStyle

Function createCSSStyle

front_end/testing/StyleHelpers.ts:60–71  ·  view source on GitHub ↗
(
    cssProperties: Protocol.CSS.CSSProperty[],
    range?: Protocol.CSS.SourceRange,
    styleSheetId = '0' as Protocol.DOM.StyleSheetId,
    )

Source from the content-addressed store, hash-verified

58}
59
60export function createCSSStyle(
61 cssProperties: Protocol.CSS.CSSProperty[],
62 range?: Protocol.CSS.SourceRange,
63 styleSheetId = '0' as Protocol.DOM.StyleSheetId,
64 ): Protocol.CSS.CSSStyle {
65 return {
66 cssProperties,
67 styleSheetId,
68 range,
69 shorthandEntries: [],
70 };
71}
72
73function getSimpleList(selector: string): Protocol.CSS.SelectorList {
74 return {

Callers 2

ruleMatchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected