If is omitted, it defaults to inset(0 round X), where X is the value of border-radius on the element that establishes the containing block for this element.
In the current definition with offset-path: content-box, the element cannot move along the inside of the border (the blue border in the video). Manually fine-tuning the X value in round X is painful and would like a way to achieve such a motion path. This is very useful when implementing some animations of the border.
Likewise, there doesn't seem to be a way to move along the outside of the border.
In the current definition with
offset-path: content-box
, the element cannot move along the inside of the border (the blue border in the video). Manually fine-tuning the X value inround X
is painful and would like a way to achieve such a motion path. This is very useful when implementing some animations of the border.Likewise, there doesn't seem to be a way to move along the outside of the border.
https://github.com/w3c/csswg-drafts/assets/2784308/28f7e9fb-0427-45c6-bf19-399aaa0ad607
Expected
Currently, we need to fit the rounded corners with the following CSS, which is troublesome once the
border-radius
of the containing block has changed.https://github.com/w3c/csswg-drafts/assets/2784308/eb7c025e-b625-48fa-82dd-19fa556c50ff