Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-values/lh-unit-same-element-line-height-dependency.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>Test same-element line-height dependency with lh unit</title>
<link rel="match" href="../reference/ref-filled-green-100px-square.xht">
<meta name="fuzzy" content="maxDifference=0-1; totalPixels=0-5000">
<style>
div {
background-image: linear-gradient(green, green);
background-repeat: no-repeat;
background-size: 100px 1lh;
line-height: 100px;
width: 100px;
color: transparent;
}
</style>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div>.</div>