trabajando con LitElement y en shadow dom. Solía tener este código en light dom:
const {scrollHeight,scrollTop,clientHeight} = document.documentElement; Cuando cambié a usar shadow dom, this.shadowRoot.documentElement se rompe.
firstElemementChild parece funcionar. Pero es equivalente?
const {scrollHeight,scrollTop,clientHeight} = this.shadowRoot.firstElementChild;¿Cuál es la mejor manera de trabajar con las propiedades del documento scrollHeight, scrollTop, etc. cuando está en shadowroot?
¡Gracias!