mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Update web-platform-tests to revision 0bfde9f6a8bfde0fde4dba73d7172a8eed6e946e
This commit is contained in:
parent
5d4dac8cf2
commit
6a79d6ee64
420 changed files with 901 additions and 14894 deletions
|
@ -0,0 +1,30 @@
|
|||
<!DOCTYPE html>
|
||||
<title>CSS Test: `break-word` should work with `word-break: keep-all`</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-overflow-wrap-break-word">
|
||||
<link rel="author" title="Koji Ishii" href="mailto:kojii@chromium.org">
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
div {
|
||||
overflow-wrap: break-word;
|
||||
word-break: keep-all;
|
||||
font-size: 10px;
|
||||
width: 7ch;
|
||||
line-height: 20px;
|
||||
background: lightgray;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
</style>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<body>
|
||||
<div>0000000000</div>
|
||||
<div>헬로우월드헬로우월드헬로우월드헬로우월드헬로우월드</div>
|
||||
<script>
|
||||
for (let e of document.getElementsByTagName('div')) {
|
||||
test(() => {
|
||||
// All boxes should wrap to more than 1 line.
|
||||
assert_greater_than(e.offsetHeight, 20);
|
||||
}, e.textContent);
|
||||
}
|
||||
</script>
|
||||
</body>
|
Loading…
Add table
Add a link
Reference in a new issue