Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 


Quelle  inspector-shadow.html   Sprache: HTML

 
 products/Sources/formale Sprachen/C/Firefox/devtools/server/tests/browser/inspector-shadow.html


<!doctype html>
<html>
<head>
  <meta charset="utf-8">
  <title>Inspector (empty page)</title>
  <script>
  "use strict";

  window.onload = function() {
    customElements.define("test-empty", class extends HTMLElement {
      constructor() {
        super();
        this.attachShadow({mode: "open"});
      }
    });

    customElements.define("test-empty-closed", class extends HTMLElement {
      constructor() {
        super();
        this.attachShadow({mode: "closed"});
      }
    });

    customElements.define("test-children", class extends HTMLElement {
      constructor() {
        super();
        this.attachShadow({mode: "open"});
        this.shadowRoot.innerHTML = `
          <h1>One child</h1>
          <p>A second child</p>`;
      }
    });

    customElements.define("test-named-slot", class extends HTMLElement {
      constructor() {
        super();
        this.attachShadow({mode: "open"});
        this.shadowRoot.innerHTML = `
          <h1>With slot</h1>
          <slot name="slot1"></slot>`;
      }
    });

    customElements.define("test-slot", class extends HTMLElement {
      constructor() {
        super();
        this.attachShadow({mode: "open"});
        this.shadowRoot.innerHTML = `
        <style>
          slot::before { content: "[SLOT BEFORE]"; color: red; }
          slot::after { content: "[SLOT AFTER]"; color: blue; }
        </style>
        <slot></slot>`;
      }
    });

    customElements.define("test-simple-slot", class extends HTMLElement {
      constructor() {
        super();
        this.attachShadow({ mode: "open"});
        this.shadowRoot.innerHTML = "";
      }
    });
  };
  </script>
  <style>
    #host-pseudo::before { content: "[HOST BEFORE]"; color: red; }
    #host-pseudo::after { content: "[HOST AFTER]"; color: blue; }
  </style>
</head>
<body>
  <test-empty id="empty"></test-empty>

  <hr>

  <test-empty id="one-child">
    <h1>One child</h1>
  </test-empty>

  <hr>

  <test-children id="shadow-children"></test-children>

  <hr>

  <test-named-slot id="named-slot">
    <p class="slotted" slot="slot1">Slotted</p>
  </test-named-slot>

  <hr>

  <test-slot id="slot-pseudo">
    <span class="has-before">Slotted</span>
  </test-slot>

  <hr>

  <test-empty id="host-pseudo"></test-empty>

  <hr>

  <test-empty id="mode-open"></test-empty>
  <test-empty-closed id="mode-closed"></test-empty-closed>

  <hr>

  <test-simple-slot id="slot-inline-text">
    Lorem ipsum
  </test-simple-slot>

  <hr>
  <video id="video-controls" controls></video>
  <video id="video-controls-with-children" controls>
    <div>some content</div>
  </video>
</body>
</html>

100%


¤ Dauer der Verarbeitung: 0.12 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung ist noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Produkte
     Quellcodebibliothek

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Monitoring

Montastic status badge