Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/layout/base/tests/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 1 kB image not shown  

Quellcode-Bibliothek test_bug1515822.html   Sprache: HTML

 

 products/Sources/formale Sprachen/C/Firefox/layout/base/tests/test_bug1515822.html


<!DOCTYPE HTML>
<html>
<head>
  <title>Test for Bug 1515822 - restore scroll position for display: contents children</title>
  <script src="/tests/SimpleTest/SimpleTest.js"></script>
  <style>
    #shell {
      display: contents;
    }
    #outer {
      width: 200px;
      height: 200px;
      overflow: scroll;
    }
    #inner {
      width: 400px;
      height: 400px;
      background: linear-gradient(to right bottom, white, black);
    }
  </style>
</head>
<body>
<div id="shell">
  <div id="outer">
    <div id="inner">
    </div>
  </div>
</div>
<script>
SimpleTest.waitForExplicitFinish();

SpecialPowers.pushPrefEnv({
  set: [ ["layout.disable-pixel-alignment", true] ]
}).then(() => {
  const outer = document.querySelector('#outer');

  outer.scrollTop = 100;
  outer.scrollLeft = 100;
  document.body.offsetTop; // flush layout
  is(outer.scrollTop, 100, 'scroll position should be moved');
  is(outer.scrollLeft, 100, 'scroll position should be moved');

  outer.parentElement.style.display = 'none';
  document.body.offsetTop; // flush layout
  is(outer.scrollTop, 0, 'scroll position should be zero');
  is(outer.scrollLeft, 0, 'scroll position should be zero');

  outer.parentElement.style.display = "";
  document.body.offsetTop; // flush layout
  is(outer.scrollTop, 100, 'scroll position should be restored');
  is(outer.scrollLeft, 100, 'scroll position should be restored');
  SimpleTest.finish();
});
</script>

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

¤ 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.0.235Bemerkung:  (vorverarbeitet am  2026-09-27) ¤

*Bot Zugriff






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.