Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-sizing/clone-intrinsic-size.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<head>
<title>CSS Test: min/max-content size on box-decoration-break:clone inline box</title>
<link rel="author" title="Mats Palmgren" href="mailto:mats@mozilla.com">
<link rel="match" href="clone-intrinsic-size-ref.html">
<style>
html,body {
color:black; background-color:white; font:10px/1 monospace; padding:0; margin:0;
}
div {
border: 5px solid blue;
}
.max > div {
width: max-content;
}
.min > div {
width: min-content;
}
span {
border: 2px solid gray;
padding: 0 10px 0 6px;
border-width: 0 8px 0 5px;
margin: 0 4px 0 3px;
background: yellow;
-webkit-box-decoration-break: clone;
box-decoration-break: clone;
}
f { margin-right: 30px; float: left; }
</style>
<body>
<f class="max">
<div>
<span>aaa</span><span>aaa</span>
</div>
<div>
<span>aaa</span>aa<span>aaa</span>
</div>
<div>
<span>aaa</span> <span>aaa</span>
</div>
<div>
<span>aaa </span><span>aaa</span>
</div>
<div>
<span>aaa</span><span> aaa</span>
</div>
<div>
<span>aaa</span> aa<span>aaa</span>
</div>
<div>
<span>aaa </span>aa<span>aaa</span>
</div>
<div>
<span>aaa</span>aa<span> aaa</span>
</div>
<div>
<span>aaa</span> aa <span>aaa</span>
</div>
<div>
<span>aaa</span>aa <span>aaa</span>
</div>
<div>
<span>aaa</span>aa </div>
</f>
<f class="min">
<div>
<span>aaa</span><span>aaa</span>
</div>
<div>
<span>aaa</span>aa<span>aaa</span>
</div>
<div>
<span>aaa</span> <span>aaa</span>
</div>
<div>
<span>aaa </span><span>aaa</span>
</div>
<div>
<span>aaa</span><span> aaa</span>
</div>
<div>
<span>aaa</span> aa<span>aaa</span>
</div>
<div>
<span>aaa </span>aa<span>aaa</span>
</div>
<div>
<span>aaa</span>aa<span> aaa</span>
</div>
<div>
<span>aaa</span> aa <span>aaa</span>
</div>
<div>
<span>aaa</span>aa <span>aaa</span>
</div>
<div>
<span>aaa</span>aa </div>
</f>