26 lines
568 B
HTML
26 lines
568 B
HTML
<!DOCTYPE html>
|
|
<style>
|
|
div {
|
|
font: 20px/1 Ahem;
|
|
width: 3em;
|
|
}
|
|
span {
|
|
color: lime;
|
|
background: lime;
|
|
}
|
|
.nowrap {
|
|
white-space: nowrap;
|
|
}
|
|
.rtl {
|
|
direction: rtl;
|
|
}
|
|
|
|
</style>
|
|
This test passes if there is a green square below. It tests that collapsed trailing space at the end of
|
|
an inline setting white-space:nowrap can be collapsed with the space before the next inline and also
|
|
that it can find the breaking opportunity between the two nowrap inlines.<br>
|
|
<div>
|
|
<span class="nowrap">xx </span>
|
|
<span class="nowrap rtl">xx</span>
|
|
</div>
|