You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
background-offset-x & background-offset-y : Background image position offset properties #1780
background-offset-x : The x offset of the background image, measured in percent (e.g. 50%) or pixels (e.g. 10px).
background-offset-y : The y offset of the background image, measured in percent (e.g. 50%) or pixels (e.g. 10px).
Note that these properties accept arrays of values, like other background image properties, to allow per-image configuration.
Motivation for new feature
This allows for better control of the image position by combining the background position with the background offset. For example, the position can be specified in percent while the offset can be specified in pixels in order to create more precise positioning.
This allows for cases, like the following, where the position is combined with the offset to put a decoration just outside of the node body:
changed the title [-]Background image position offset[/-][+]`background-offset-x` & `background-offset-y` : Background image position offset properties[/+]on Jan 25, 2019
Activity
[-]Background image position offset[/-][+]`background-offset-x` & `background-offset-y` : Background image position offset properties[/+]`background-offset-x` & `background-offset-y` : Background image posi…