Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/layout/style/test/   (Firefox Browser Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 1 kB image not shown  

Quelle  test_font_face_cascade.html

  Sprache: HTML
 

 products/Sources/formale Sprachen/C/Firefox/layout/style/test/test_font_face_cascade.html


<!DOCTYPE HTML>
<title>Test that @font-face rules from different origins cascade correctly</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css">
<script>
let io = SpecialPowers.Cc["@mozilla.org/network/io-service;1"]
  .getService(SpecialPowers.Ci.nsIIOService);

let utils = SpecialPowers.getDOMWindowUtils(window);

function load_sheet(sheet_text, level) {
  if (level != "AGENT_SHEET" && level != "USER_SHEET" && level != "AUTHOR_SHEET") {
    throw "unknown level";
  }

  let uri = io.newURI("data:text/css," + encodeURI(sheet_text));
  utils.loadSheet(uri, utils[level]);
}

load_sheet(
  "@font-face { font-family: TestAgent; src: url(about:invalid); }",
  "AGENT_SHEET");

load_sheet(
  "@font-face { font-family: TestAuthor; src: url(about:invalid); }",
  "AUTHOR_SHEET");

load_sheet(
  "@font-face { font-family: TestUser; src: url(about:invalid); }",
  "USER_SHEET");

is([...document.fonts].map(f => f.family).join(" "),
   'TestAuthor',
   "document.fonts only contains author @font-face rules");
</script>

Messung V0.5 in Prozent
C=93 H=100 G=96

¤ Dauer der Verarbeitung: 0.10 Sekunden  (vorverarbeitet am  2026-06-04) ¤

*© 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.