fix bug 865863 - remove duplicated styles

https://bugzilla.mozilla.org/show_bug.cgi?id=865863