Index: tools/dom/templates/html/impl/impl_CSSStyleDeclaration.darttemplate |
diff --git a/tools/dom/templates/html/impl/impl_CSSStyleDeclaration.darttemplate b/tools/dom/templates/html/impl/impl_CSSStyleDeclaration.darttemplate |
index 495011e235f45515de937c54d875cf616470d1a1..1c33e5f7a44c9c6e71f4dfb641ed50aea8ea08d3 100644 |
--- a/tools/dom/templates/html/impl/impl_CSSStyleDeclaration.darttemplate |
+++ b/tools/dom/templates/html/impl/impl_CSSStyleDeclaration.darttemplate |
@@ -21,6 +21,11 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME $EXTENDS with |
return style; |
} |
+ /// Returns the value of the property if the provided *CSS* property |
+ /// name is supported on this element and if the value is set. Otherwise |
+ /// returns an empty string. |
+ /// |
+ /// Please note the property name uses camelCase, not-hyphens. |
String getPropertyValue(String propertyName) { |
var propValue = _getPropertyValueHelper(propertyName); |
return propValue != null ? propValue : ''; |