removeShorthandBackgroundPosition static method

void removeShorthandBackgroundPosition(
  1. CSSStyleDeclaration style, [
  2. bool? isImportant
])

Implementation

static void removeShorthandBackgroundPosition(CSSStyleDeclaration style, [bool? isImportant]) {
  if (style.contains(BACKGROUND_POSITION_X)) style.removeProperty(BACKGROUND_POSITION_X, isImportant);
  if (style.contains(BACKGROUND_POSITION_Y)) style.removeProperty(BACKGROUND_POSITION_Y, isImportant);
}