Files
ladybird/Tests/LibWeb/Crash/wpt-import/selection/crashtests/selection-modify-per-word-in-table-header-group.html
Tim Ledbetter 6ee91c4189 LibWeb: Use correct previous word location when moving selection offset
Previously, this incorrect offset could cause a crash when moving the
selection to the previous word.
2025-07-03 10:28:38 +01:00

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>