Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-inline/text-box-trim/border-padding-002.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>Border/padding on the trim-establishing container itself isn't considered to be "intervening"</title>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div style="position:absolute; margin-top:30px; width:100px; height:40px; background:green;"></div>
<div style="text-box-trim:trim-both; width:100px; font:20px/60px Ahem; color:green; background:red;">
<div style="text-box-trim:trim-both; border:10px solid green;">
xxxx<br>
xxxx<br>
</div>
</div>