Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-text/crashtests/rendering-rtl-bidi-override-crash.html - WPT Dashboard Interop Dashboard
<!doctype html>
<title>CSS Text Test: Crash rendering RLT text with unicode-bidi: bidi-override</title>
<script type="text/javascript">
function event_handler_CD7_readystatechange() {
document.designMode = document.designMode == "on" ? "off" : "on";
var oSelection=window.getSelection();
document.execCommand("SelectAll")
oSelection.collapseToEnd()
document.execCommand('CreateLink',false,'about:blank');
}
document.addEventListener("readystatechange", event_handler_CD7_readystatechange);
function event_handler_CD8_DOMCharacterDataModified() {
var oSelection=window.getSelection();
oSelection.modify('move', 'backward', 'line');
}
document.addEventListener("DOMCharacterDataModified", event_handler_CD8_DOMCharacterDataModified);
setTimeout(function() {
var oSelection=window.getSelection();
var oRange = oSelection.rangeCount ? oSelection.getRangeAt(68 % oSelection.rangeCount) : null;
var oParentElement = function() {
return oNewElement;
}();
oRange.surroundContents(oParentElement);
});
</script>
<style>
div {
unicode-bidi:bidi-override;
direction: rtl;
}
</style>
<div>
AxBxC AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
</div>