tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

rendering-rtl-bidi-override-crash.html (1566B)


      1 <!doctype html>
      2 <title>CSS Text Test: Crash rendering RLT text with unicode-bidi: bidi-override</title>
      3 <link rel="help" href="https://crbug.com/1152387">
      4 <script type="text/javascript">
      5    function event_handler_CD7_readystatechange() {
      6        document.designMode = document.designMode == "on" ? "off" : "on";
      7        var oSelection=window.getSelection();
      8        document.execCommand("SelectAll")
      9        oSelection.collapseToEnd()
     10        document.execCommand('CreateLink',false,'about:blank');
     11    }
     12    document.addEventListener("readystatechange", event_handler_CD7_readystatechange);
     13    function event_handler_CD8_DOMCharacterDataModified() {
     14        var oSelection=window.getSelection();
     15        oSelection.modify('move', 'backward', 'line');
     16    }
     17    document.addEventListener("DOMCharacterDataModified", event_handler_CD8_DOMCharacterDataModified);
     18    setTimeout(function() {
     19        var oSelection=window.getSelection();
     20        var oRange = oSelection.rangeCount ? oSelection.getRangeAt(68 % oSelection.rangeCount) : null;
     21        var oParentElement = function() {
     22            var oNewElement = document.createElementNS('http://www.w3.org/2000/svg', 'filter');
     23            return oNewElement;
     24        }();
     25        oRange.surroundContents(oParentElement);
     26    });
     27 </script>
     28 <style>
     29    div {
     30        unicode-bidi:bidi-override;
     31        direction: rtl;
     32    }
     33 </style>
     34 <div>
     35 AxBxC AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
     36 A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
     37 </div>