blob: 8972b2ecd602df37f0788a70994644a599160ba5 [file] [log] [blame]
<!DOCTYPE html>
<title>CSS Motion Path: offset-anchor with transform-box: fill-box on the svg g element</title>
<link rel="help" href="https://drafts.fxtf.org/motion-1/#offset-anchor-property">
<link rel="match" href="offset-anchor-transform-box-fill-box-ref.html">
<meta name="assert" content="Tests offset-anchor together with a fill-box transform-box on the <g> element">
<style>
#target {
transform-box: fill-box;
offset-anchor: 25% 25%;
offset-path: path("M75,-25v100");
offset-distance: 50%;
}
</style>
<svg width="400" height="400">
<rect width="100" height="100" fill="red"/>
<g id='target'>
<rect x="150" y="100" width="100" height="100" fill="green"/>
</g>
</svg>