Merge pull request #13124 from atom/ns-preseve-shadow-specificity

Preserve specificity when transforming atom-text-editor::shadow
This commit is contained in:
Nathan Sobo
2016-11-02 08:30:21 -06:00
committed by GitHub
2 changed files with 10 additions and 8 deletions

View File

@@ -270,7 +270,8 @@ function transformDeprecatedShadowDOMSelectors (css, context) {
}
} else {
if (previousNodeIsAtomTextEditor && node.type === 'pseudo' && node.value === '::shadow') {
selector.removeChild(node)
node.type = 'className'
node.value = '.editor'
targetsAtomTextEditorShadow = true
}
}