Imagine using the shorthand background property to define multiple properties. For example:
.img
{
background: url('/Content/images/a.png') no-repeat scroll 100% 3px;
}
If you need to override just the background-position of the image, should you use the full shorthand notation with the updated position like this:
.img
{
background: url('/Content/images/a.png') no-repeat scroll 0 3px;
}
Or is it better to only override the background-position property like this:
.img
{
background-position: 0 3px;
}
Are there any issues with either approach? Could there be a slight performance gain by only overriding the position?