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/wrap-inside/wrap-inside-avoid-single-word.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>wrap-inside: avoid does not introduce break opportunities</title>
<link rel="match" href="wrap-inside-avoid-single-word-ref.html">
<meta name="assert" content="'wrap-inside: avoid' only removes/deprioritizes existing soft wrap opportunities; it never creates them. A single unbreakable word overflows exactly as without the property.">
<link rel="stylesheet" href="/fonts/ahem.css">
<style>
div { width: 60px; font: 20px/20px Ahem; color: green; }
</style>
<div><span style="wrap-inside: avoid">AAAA</span></div>