snabbdom/snabbdom

Can't use !important inline style values

Open

#125 opened on 2016年6月28日

GitHub で見る
 (3 comments) (1 reaction) (0 assignees)TypeScript (11,106 stars) (1,118 forks)batch import
affects:usergood first issuetype:bug

説明

Because the style module sets values with elm.style[name] = val, it will fail if we have a style attr like style="color: red !important". Instead it should probably be using CSSStyleDeclaration.setProperty(). I'll try to work on a PR.

コントリビューターガイド