removeShorthandGridTemplate static method

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

Implementation

static void removeShorthandGridTemplate(CSSStyleDeclaration style, [bool? isImportant]) {
  if (style.contains(GRID_TEMPLATE_ROWS)) style.removeProperty(GRID_TEMPLATE_ROWS, isImportant);
  if (style.contains(GRID_TEMPLATE_COLUMNS)) style.removeProperty(GRID_TEMPLATE_COLUMNS, isImportant);
  if (style.contains(GRID_TEMPLATE_AREAS)) style.removeProperty(GRID_TEMPLATE_AREAS, isImportant);
}