Commit 456db086 authored by Andrea Iacovitti's avatar Andrea Iacovitti

Remove property if empty value here too.

parent 6dc98087
......@@ -99,6 +99,10 @@ DOMString CSSStyleDeclaration::getPropertyPriority( const DOMString &propertyNam
void CSSStyleDeclaration::setProperty( const DOMString &propName, const DOMString &value, const DOMString &priority )
if(!impl) return;
if (value.isEmpty()) {
static_cast<CSSStyleDeclarationImpl *>(impl)->removeProperty(propName);
static_cast<CSSStyleDeclarationImpl *>(impl)->setProperty( propName, value, priority );
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment