mirror of
https://github.com/atom/atom.git
synced 2026-02-05 20:25:04 -05:00
Use new attributeStyleMap for elements
More info here: https://developers.google.com/web/updates/2018/03/cssom
This commit is contained in:
@@ -4433,7 +4433,7 @@ class NodePool {
|
||||
|
||||
if (element) {
|
||||
element.className = className || ''
|
||||
element.styleMap.forEach((value, key) => {
|
||||
element.attributeStyleMap.forEach((value, key) => {
|
||||
if (!style || style[key] == null) element.style[key] = ''
|
||||
})
|
||||
if (style) Object.assign(element.style, style)
|
||||
|
||||
Reference in New Issue
Block a user