snabbdom/snabbdom

Can't use !important inline style values

Open

#125 opened on 2016年6月28日

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

Repository metrics

Stars
 (11,106 stars)
PR merge metrics
 (平均マージ 59d 3h) (30d で 2 merged PRs)

説明

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.

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