Files
sousa-gecko/testing/web-platform/tests/css/css-contain/crashtests/change-text-node-data-ellipsis.html
T
Sharon Yang daeed4391b Bug 2053991 [wpt PR 61195] - Migrate css-contain change-text-node-data crashtests to external/wpt, a=testonly
Automatic update from web-platform-tests
Migrate css-contain change-text-node-data crashtests to external/wpt

The following tests were updated:
- external/wpt/css/css-contain/crashtests/change-text-node-data.html
- external/wpt/css/css-contain/crashtests/change-text-node-data-ellipsis.html

Bug: 40559894, 485677942
Change-Id: I4296454067aca71e6dd20a4957d56af907e3efbb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8065605
Reviewed-by: Christian Biesinger <cbiesinger@chromium.org>
Commit-Queue: Sharon Yang <yangsharon@igalia.com>
Cr-Commit-Position: refs/heads/main@{#1659891}

--

wpt-commits: e43957e28522a2b8da45611a24b2c31b4de1b49d
wpt-pr: 61195
2026-07-13 14:37:18 +00:00

21 lines
520 B
HTML

<!DOCTYPE html>
<meta charset="utf-8">
<title>No crash when changing text node data with text-overflow ellipsis in size-contained element</title>
<link rel="help" href="https://crbug.com/40559894">
<style>
#test {
width: 100px;
height: 50px;
overflow: hidden;
text-overflow: ellipsis;
line-height: 1;
white-space: nowrap;
contain: layout size;
}
</style>
<div id="test">Hellowooooorld!</div>
<script>
document.body.offsetLeft;
document.getElementById('test').childNodes[0].data = "new text";
</script>