Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/devtools/client/inspector/rules/test/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 1 kB image not shown  

Quelle  doc_cssom.html

  Sprache: HTML
 

 products/Sources/formale Sprachen/C/Firefox/devtools/client/inspector/rules/test/doc_cssom.html


<!-- Any copyright is dedicated to the Public Domain.
     http://creativecommons.org/publicdomain/zero/1.0/ -->

<html>
<head>
  <title>CSSOM test</title>

  <script>
    "use strict";
    window.onload = function() {
      const x = document.styleSheets[0];
      x.insertRule("div { color: seagreen; }"1);

      // Add a rule with a leading newline, to test that inspector can handle it.
      x.insertRule("\ndiv { font-weight: bold; }"1);

      // Add a shadow dom root and a h2 element inside it
      const shadow = document.getElementById("host").attachShadow({ mode: "open" });
      const shadowEl = document.createElement("h2");
      shadowEl.textContent = "Hello from the shadow DOM";
      shadow.appendChild(shadowEl);

      const shadowDomStyleSheet = new CSSStyleSheet();
      shadowDomStyleSheet.insertRule("h2 { color: tomato; background-color: gold;}");
      shadow.adoptedStyleSheets = [shadowDomStyleSheet];
    };
  </script>

  <style>
    span { }
  </style>
</head>
<body>
  <div id="target"> the ocean </div>
  <div id="host"></div>
</body>
</html>

Messung V0.5 in Prozent
C=98 H=100 G=98

¤ Dauer der Verarbeitung: 0.3 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

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 und die Messung sind noch experimentell.