attachClosedShadow() {
    this.innerHTML = '';
    // 'closed' mode simply makes this.shadowRoot return null. So long as you
    // store the reference somewhere else you can always edit the closed shadow
    this.#shadow = this.attachShadow({ mode: 'closed' });
    this.#shadow.innerHTML = `
      <style>
        div {
          align-items: center;
          background-color: #FBB;
          display: grid;
          height: 100%;
          justify-items: center;
          width: 100%;
        }
      </style>
      <div>
        <p>Shadow Root Closed</p>
      </div>
    `;
  }
/**
   * Attaches a closed shadow to the current element, then stores a reference to it in a private
   * property named 'shadow'
   */
Attaches a closed shadow to the current element, then stores a reference to it in a private
property named 'shadow'
Attaches a closed shadow to the current element then stores a reference to it in a private property named ' shadow '
attachClosedShadow() {
    this.innerHTML = '';
    this.#shadow = this.attachShadow({ mode: 'closed' });
    this.#shadow.innerHTML = `
      <style>
        div {
          align-items: center;
          background-color: #FBB;
          display: grid;
          height: 100%;
          justify-items: center;
          width: 100%;
        }
      </style>
      <div>
        <p>Shadow Root Closed</p>
      </div>
    `;
  }
attachClosedShadow ( ) { this . innerHTML = '' ; this . #shadow = this . attachShadow ( { mode : 'closed' } ) ; this . #shadow . innerHTML = ` ` ; }
Attaches a closed shadow to the current element, then stores a reference to it in a private
 property named 'shadow'
Attaches a closed shadow to the current element then stores a reference to it in a private property named ' shadow '
// 'closed' mode simply makes this.shadowRoot return null. So long as you // store the reference somewhere else you can always edit the closed shadow