Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/dom/ipc/tests/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 943 B image not shown  

Quelle  browser_transparent.js

  Sprache: JAVA
 

/* Any copyright is dedicated to the Public Domain.
   https://creativecommons.org/publicdomain/zero/1.0/ */


"use strict";

function getContentCanvasBg(browser) {
  return SpecialPowers.spawn(browser, [], () => {
    return content.windowUtils.canvasBackgroundColor;
  });
}

add_task(async function test_transparent_dynamic() {
  await BrowserTestUtils.withNewTab(
    `data:text/html,hello`,
    async function (browser) {
      is(
        await getContentCanvasBg(browser),
        "rgb(255, 255, 255)",
        "Content bg should be white"
      );
      browser.toggleAttribute("transparent"true);
      is(
        await getContentCanvasBg(browser),
        "rgba(0, 0, 0, 0)",
        "Content bg should be transparent"
      );
      browser.toggleAttribute("transparent"false);
      is(
        await getContentCanvasBg(browser),
        "rgb(255, 255, 255)",
        "Content bg should be white again"
      );
    }
  );
});

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

¤ Dauer der Verarbeitung: 0.15 Sekunden  (vorverarbeitet am  2026-08-24) ¤

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