Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/CSS2/box/negative-margin-end-inline-block-no-wrap.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>Negative end margin balancing end padding on an inline does not cause wrapping in a shrink-to-fit inline-block</title>
<link rel="match" href="negative-margin-end-inline-block-no-wrap-ref.html">
<style>
body { margin: 0; font: 20px/1 monospace; }
.outer { display: inline-block; }
.inner { padding-right: 10px; margin-right: -10px; }
</style>
<span class="outer"><span class="inner">Two words</span></span>