MCPcopy Create free account
hub / github.com/ecomfe/tempad-dev / hasOverflowClipping

Function hasOverflowClipping

packages/extension/utils/css.ts:510–519  ·  view source on GitHub ↗
(style: Record<string, string>)

Source from the content-addressed store, hash-verified

508}
509
510function hasOverflowClipping(style: Record<string, string>): boolean {
511 const overflowValues = [style.overflow, style['overflow-x'], style['overflow-y']]
512
513 return overflowValues.some((value) => {
514 if (!value) return false
515
516 const parts = normalizeStyleValue(value).toLowerCase().split(WHITESPACE_RE).filter(Boolean)
517 return parts.some((part) => OVERFLOW_CLIPPING_VALUES.has(part))
518 })
519}
520
521function isNonRadiusBorderProperty(name: string): boolean {
522 return name.startsWith('border') && !name.includes('radius')

Callers 1

resolveGradientBorderFunction · 0.70

Calls 2

normalizeStyleValueFunction · 0.85
hasMethod · 0.80

Tested by

no test coverage detected