16 lines
624 B
HTML
16 lines
624 B
HTML
<!doctype html>
|
|
<title>radial-gradient() with container relative unit <position> (vertical)</title>
|
|
<link rel="help" href="https://drafts.csswg.org/css-images/#radial-gradient-syntax">
|
|
<link rel="help" href="https://drafts.csswg.org/css-conditional-5/#container-lengths">
|
|
<link rel="match" href="radial-gradient-container-relative-units-ref.html">
|
|
<style>
|
|
#container { container-type: size; width: 100px; height: 100px; }
|
|
#inner {
|
|
width: 100%;
|
|
height: 100%;
|
|
background-image: radial-gradient(50px 50px ellipse at 50px 50cqh, green, blue);
|
|
}
|
|
</style>
|
|
<div id="container">
|
|
<div id="inner"></div>
|
|
</div>
|