mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 18:17:22 +02:00
Previously, this incorrect offset could cause a crash when moving the selection to the previous word.
28 lines
442 B
HTML
28 lines
442 B
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<style>
|
|
dialog {
|
|
display: table-header-group;
|
|
translate: -1px 0px 0px;
|
|
position: sticky;
|
|
}
|
|
</style>
|
|
<script>
|
|
addEventListener("DOMContentLoaded", () => {
|
|
window.find("1");
|
|
getSelection().modify("move", "left", "word");
|
|
}, {once: true});
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<dialog>
|
|
<span style="position: fixed">1</span>
|
|
<table dir="rtl"></table>
|
|
<video>
|
|
</video>
|
|
</dialog>
|
|
</body>
|
|
</html>
|