@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 (p == ':host')
118
- sel += DesignerCanvas.cssprefixConstant;
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
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "description": "A UI designer for Polymer apps",
3
3
  "name": "@node-projects/web-component-designer",
4
- "version": "0.1.62",
4
+ "version": "0.1.64",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "author": "jochen.kuehner@gmx.de",