Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/layout/reftests/meta-viewport/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 1 kB image not shown  

Quelle  desktop-mode.html   Sprache: HTML

 
 products/Sources/formale Sprachen/C/Firefox/layout/reftests/meta-viewport/desktop-mode.html


<!DOCTYPE html>
<html class="reftest-wait">
<style>
html {
  height: 100%;
  width: 100%;
}
body {
  height: 2000px;
  width: 200%;
  margin: 0px;
  padding: 0px;
}
div {
  width: 20px;
  height: 100%;
  top: 0px;
  background-color: green;
}
</style>
<div style="right: 0px; position: fixed;"></div>
<div style="right: 25px; position: absolute;"></div>
<script>
async function go() {
  let win = SpecialPowers.wrap(window);
  let origVal = await SpecialPowers.spawnChrome([win.browsingContext.id],
                                                id => {
    // We enable 'forceDesktopViewport' (which is otherwise off-by-default)
    // and we test our rendering under that condition.  It's important that we
    // are followed by reftest "desktop-mode-cleanup.html" which will revert
    // this change for us, so that forceDesktopViewport doesn't remain on for
    // subsequent tests.
    let ctx = BrowsingContext.get(id);
    let origVal = ctx.forceDesktopViewport;
    ctx.forceDesktopViewport = true;
    return origVal;
  });

  if (origVal) {
    // UNEXPECTED: if we get here, then forceDesktopViewport was somehow
    // true already (when it should be at its default 'false')! Either we've
    // got the wrong assumption about the default value, or some earlier test
    // enabled it and forgot to clean up after themselves.
    //
    // NOTE: We could signal a test-failure in this circumstance,
    // by e.g. setting the background to red...
    //   document.body.style.background = "red";
    // ...but that also makes this test trivially fail in 'test-verify' runs
    // per bug 1915025 comment 17 through 19, so let's not do that for now.
    // So for now, we handle this unexpected condition silently/gracefully.
    // I'm leaving this (no-op) if-check in the test in case it's useful
    // for debugging/logging at some point, though.
  }
  document.documentElement.classList.remove('reftest-wait');
}

go();
</script>
</html>

Messung V0.5
C=99 H=99 G=98

¤ Dauer der Verarbeitung: 0.3 Sekunden  ¤

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