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-space-transform/word-space-transform-007.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text level 4 Test: word-space-transform space collapsing</title>
<link rel="match" href="reference/word-space-transform-007-ref.html">
<meta name="assert" content="word-space-transform happens between phase 1 and 2 of white space processing, so inserted spaces don't collapse with adjacent ones">
<style>
div {
font-size: 2em;
}
#test {
word-space-transform: space;
}
</style>
<p>Test passes if the two lines below are identical.
<div id=test>a<wbr> b <wbr>c ​d​ e<wbr><wbr>f​​g<wbr>​h​<wbr>i <wbr> ​ j</div>
<div id=ref>a b c d e f g h i j</div>