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/hyphens/hyphens-vs-float-clearance-002.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>CSS Text Test: soft-hyphen and float clearance</title>
<link rel="match" href="reference/hyphens-vs-float-clearance-001-ref.html">
<link rel="author" href="mailto:jkew@mozilla.com">
<style>
.outer {
font: 16px/1.4 monospace;
width: 6ch;
border: 1px solid gray;
float: left;
margin: 10px;
hyphens: manual;
}
.float {
float: right;
width: 2ch;
background: lightblue;
}
.h1 {
height: 1em;
}
.h2 {
height: 2em;
}
.h3 {
height: 3em;
}
.h4 {
height: 4em;
}
</style>
<body lang="en">
<div class="outer"><div class="float h1"></div>hy­phen­ate!</div>
<div class="outer"><div class="float h2"></div>hy­phen­ate!</div>
<div class="outer"><div class="float h3"></div>hy­phen­ate!</div>
<div class="outer"><div class="float h4"></div>hy­phen­ate!</div>