Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/C/Firefox/dom/base/test/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 5 kB image not shown  


  <tr><td>3.</td><td>
    <div id="host3" dir="rtl"><span> 3 4 </span></div>
  </td><td></td><td>rtl on host, ltr on slot</td></tr>

  <tr><td>4.</td><td>
    <div id="host4" dir="auto"><span> 1 2 </span></div>
  </td><td></td><td>auto host, rtl in shadow</td></tr>

  <tr><td>5.</td><td>
    <div id="host5" dir="auto"><span> أخبار </span></div>
  </td><td></td><td>auto host, rtl in host (in assigned node)</td></tr>

  <tr><td>6.</td><td>
    <div id="host6" dir="auto"><span> أخبار </span></div>
  </td><td></td><td>auto host, rtl in host, no assigned node</td></tr>

  <tr><td>7.</td><td>
    <div id="host7" dir="auto"><span> أخبار </span></div>
  </td><td></td><td>auto host, rtl in host, explicit ltr in shadow</td></tr>

  <tr><td>8.</td><td>
    <div id="host8" dir="auto"><span slot="second">‎1 2 </span><span slot="first"> أخبار </span></div>
  </td><td></td><td>auto host, ltr in host, rtl in host, reverse order in slots</td></tr>

  <tr><td>9.</td><td>
    <div id="host9" dir="auto">أخبار</div>
  </td><td></td><td>auto host, rtl in host (in assigned text node)</td></tr>

  <tr><td>10.</td><td>
    <div id="host10" dir="auto"> 1 2</div>
  </td><td></td><td>auto host, 1 2 in host (in assigned text node)</td></tr>

</table>
<script>

function ltrExpected(element) {
  opener.is(element.parentNode.querySelector(":dir(ltr)"), element,
            "Should have got an ltr element.");
}

function rtlExpected(element) {
  opener.is(element.parentNode.querySelector(":dir(rtl)"), element,
            "Should have got an rtl element.");
}

const shadowRoot1 = host1.attachShadow({mode: 'closed'});
shadowRoot1.innerHTML = '
1 2
'
;
rtlExpected(host1);
rtlExpected(host1.firstChild);
rtlExpected(shadowRoot1.firstChild.lastChild); // span in the Shadow DOM

const shadowRoot2 = host2.attachShadow({mode: 'closed'});
shadowRoot2.innerHTML = '
1 2
'
;
rtlExpected(host2);
rtlExpected(host2.firstChild);

// This is weird case, and we have similar behavior as Blink. dir= on <slot>
// doesn't affect to UI since slot has display: contents by default.
const shadowRoot3 = host3.attachShadow({mode: 'closed'});
shadowRoot3.innerHTML = '
1 2
'
;
rtlExpected(host3);

const shadowRoot4 = host4.attachShadow({mode: 'closed'});
shadowRoot4.innerHTML = '
أخبار
'
;
ltrExpected(host4);
ltrExpected(host4.firstChild);
ltrExpected(shadowRoot4.firstChild.lastChild);

const shadowRoot5 = host5.attachShadow({mode: 'closed'});
shadowRoot5.innerHTML = '
1 2
'
;
rtlExpected(host5);
rtlExpected(host5.firstChild);
rtlExpected(shadowRoot5.firstChild.lastChild);

const shadowRoot6 = host6.attachShadow({mode: 'closed'});
shadowRoot6.innerHTML = '
1 2
'
;
rtlExpected(host6);
rtlExpected(host6.firstChild);
rtlExpected(shadowRoot6.firstChild.lastChild);

const shadowRoot7 = host7.attachShadow({mode: 'closed'});
shadowRoot7.innerHTML = '
‎1 2
'
;
rtlExpected(host7);
rtlExpected(host7.firstChild);
rtlExpected(shadowRoot7.firstChild.lastChild);

const shadowRoot8 = host8.attachShadow({mode: 'closed'});
shadowRoot8.innerHTML = '
'
;
ltrExpected(host8);
ltrExpected(host8.firstChild);
ltrExpected(shadowRoot8.firstChild.firstChild);

const shadowRoot9 = host9.attachShadow({mode: 'closed'});
shadowRoot9.innerHTML = '
1 2
'
;
rtlExpected(host9);
rtlExpected(shadowRoot9.firstChild.lastChild);

const shadowRoot10 = host10.attachShadow({mode: 'closed'});
shadowRoot10.innerHTML = '
أخبار
'
;
ltrExpected(host10);
ltrExpected(shadowRoot10.firstChild.lastChild);

opener.didRunTests();
window.close();
</script>
</body>
</html>

Quelle  file_bug1100912.html   Sprache: HTML

 
 products/sources/formale Sprachen/C/Firefox/dom/base/test/file_bug1100912.html


<!DOCTYPE HTML>
<html>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=1100912
-->

<head>
  <meta charset="utf-8">
  <title>Test for Bug 1100912</title>
  <script src="/tests/SimpleTest/SimpleTest.js"></script>
  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
  <style>
  td {
    border-right: 1px solid black;
  }
  </style>
</head>
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1100912">Mozilla Bug 1100912</a>
<p id="display"></p>
<div id="content" style="display: none">
</div>
<pre id="test">
</pre>
  <!-- The table is here just to make the web page easier to read -->
  <table>
  <tr>
    <td>                  </td>
    <td>                  </td>
    <td>                  </td>
    <td>                  </td>
  </tr>

  <tr><td>1.</td><td>
    <div id="host1" dir="rtl"><span> 3 4 </span></div>
  </td><td></td><td>rtl on host</td></tr>

  <tr><td>2.</td><td>
    <div id="host2" dir="rtl"><span> 3 4 </span></div>
  </td><td></td><td>rtl on host, ltr slot's parent
Messung V0.5
C=95 H=98 G=96

¤ Dauer der Verarbeitung: 0.36 Sekunden  (vorverarbeitet)  ¤

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