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/word-break/auto-phrase/word-break-auto-phrase-006.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text level 4 Test: word-break: auto-phrase hyphenation</title>
<link rel="match" href="reference/word-break-auto-phrase-006-ref.html">
<meta name="assert" content="auto-phrase word breaking must suppress hyphenation">
<style>
div {
font-size: 2em;
border: solid black;
margin: 5px;
width: min-content;
}
#test1 {
word-break: auto-phrase;
hyphens: manual;
}
#test2 {
word-break: auto-phrase;
hyphens: auto;
}
#ref {
hyphens: none;
}
</style>
<p>Test passes if all boxes below are identical.
<div id=test1 lang=en>con­sid­era­tion</div>
<div id=test2 lang=en>consideration</div>
<div id=ref lang=en>consideration</div>