getPropertyPriority method Null safety

String getPropertyPriority(
  1. String property
)

Returns the optional priority, "important". var priority = style.getPropertyPriority(property); The following JavaScript code checks whether margin is marked as important in a CSS selector rule:

var declaration = document.styleSheets0.cssRules0.style; var isImportant = declaration.getPropertyPriority('margin') === 'important';

Implementation

external String getPropertyPriority(String property);