Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-images/radial-gradient-line-height-relative-units-001.html - WPT Dashboard Interop Dashboard
<!doctype html>
<title>radial-gradient() with line-height relative unit <position> (horizontal)</title>
<link rel="match" href="radial-gradient-line-height-relative-units-ref.html">
<style>
.ref {
position: absolute;
z-index: 0;
width: 200px;
height: 200px;
background-image: radial-gradient(25px at 100px 50px, green 100%, transparent);
}
.box {
position: absolute;
z-index: -1;
width: 200px;
font-size: 50px;
line-height: 2;
aspect-ratio: 1;
background-image: radial-gradient(25px at 1lh 50px, red 100%, green);
}
</style>
<div class="ref"></div>
<div class="box"></div>