How to use 9-scale margins of Sprite in USS?

I’m using a sprite as a background-image in a USS file. I have marked the 9-slice borders for this sprite in Unity (Mesh Type: Full Rect, Sprite Editor, 9-slice borders).

How can I set the padding (or margin) of an element to match the borders of this image? I want the content to not be in the border region.

I know how I can hard-code this in the USS file, but I’m hoping there’s a way to read it from the sprite itself.

If I understand correctly, you have a sprite for which you have specified 9-slice borders in the sprite editor. You would like the element that uses this sprite as a background to use the border values as padding. If so, this feature isn’t supported, you would need to write a script (e.g. custom VisualElement).