@node-projects/web-component-designer 0.1.62 → 0.1.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -114,14 +114,18 @@ export class AbstractStylesheetService {
|
|
|
114
114
|
if (!noPatch) {
|
|
115
115
|
let parts = rule.selectorText.split(',');
|
|
116
116
|
for (let p of parts) {
|
|
117
|
-
if (
|
|
118
|
-
sel +=
|
|
117
|
+
if (sel)
|
|
118
|
+
sel += ',';
|
|
119
|
+
if (p.startsWith(':host')) {
|
|
120
|
+
sel += p.replace(':host', DesignerCanvas.cssprefixConstant);
|
|
121
|
+
continue;
|
|
122
|
+
}
|
|
123
|
+
else if (p == ':root')
|
|
124
|
+
sel += p;
|
|
119
125
|
else if (p.includes(DesignerCanvas.cssprefixConstant)) {
|
|
120
126
|
sel += p;
|
|
121
127
|
continue;
|
|
122
128
|
}
|
|
123
|
-
if (sel)
|
|
124
|
-
sel += ',';
|
|
125
129
|
sel += DesignerCanvas.cssprefixConstant + p.trimStart();
|
|
126
130
|
}
|
|
127
131
|
}
|