BlockSuite API Documentation / @blocksuite/block-std / ShadowlessElement
Class: ShadowlessElement
Extends
LitElement
Constructors
new ShadowlessElement()
new ShadowlessElement():
ShadowlessElement
Returns
Inherited from
LitElement.constructor
Defined in
node_modules/.pnpm/@[email protected]/node_modules/@lit/reactive-element/development/reactive-element.d.ts:504
Other
disableShadowRoot
static
disableShadowRoot:boolean
=true
Defined in
packages/framework/block-std/src/view/element/shadowless-element.ts:6
rendering
createRenderRoot()
createRenderRoot():
HTMLElement
|DocumentFragment
Returns
HTMLElement
| DocumentFragment
Overrides
LitElement.createRenderRoot
Defined in
packages/framework/block-std/src/view/element/shadowless-element.ts:30
styles
finalizeStyles()
protected
static
finalizeStyles(styles
?):CSSResultOrNative
[]
Takes the styles the user supplied via the static styles
property and returns the array of styles to apply to the element. Override this method to integrate into a style management system.
Styles are deduplicated preserving the last instance in the list. This is a performance optimization to avoid duplicated styles that can occur especially when composing via subclassing. The last item is kept to try to preserve the cascade order with the assumption that it's most important that last added styles override previous styles.
Parameters
• styles?: CSSResultGroup
Returns
CSSResultOrNative
[]
Nocollapse
Overrides
LitElement.finalizeStyles
Defined in
packages/framework/block-std/src/view/element/shadowless-element.ts:8