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-auto.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>wrap-inside: auto allows breaking inside the box (control)</title>
<link rel="match" href="wrap-inside-auto-ref.html">
<meta name="assert" content="With the initial 'wrap-inside: auto' the box breaks internally just like normal content: 'XX YY' / 'ZZ'. This is the counterpart to wrap-inside-avoid-keeps-box-together.html.">
<link rel="stylesheet" href="/fonts/ahem.css">
<style>
div { width: 110px; font: 20px/20px Ahem; color: green; }
</style>
<div>XX <span style="wrap-inside: auto">YY ZZ</span></div>