MCPcopy Index your code
hub / github.com/angular/angular / hasStyle

Function hasStyle

packages/private/testing/src/browser_utils.ts:123–126  ·  view source on GitHub ↗
(element: any, styleName: string, styleValue?: string | null)

Source from the content-addressed store, hash-verified

121}
122
123export function hasStyle(element: any, styleName: string, styleValue?: string | null): boolean {
124 const value = element.style[styleName] || '';
125 return styleValue ? value == styleValue : value.length > 0;
126}
127
128export function hasClass(element: any, className: string): boolean {
129 return element.classList.contains(className);

Callers 2

index.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…