mirror of
https://github.com/atom/atom.git
synced 2026-02-12 23:55:10 -05:00
Merge pull request #13124 from atom/ns-preseve-shadow-specificity
Preserve specificity when transforming atom-text-editor::shadow
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user