@node-projects/web-component-designer 0.1.63 → 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,16 +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
+ }
119
123
  else if (p == ':root')
120
124
  sel += p;
121
125
  else if (p.includes(DesignerCanvas.cssprefixConstant)) {
122
126
  sel += p;
123
127
  continue;
124
128
  }
125
- if (sel)
126
- sel += ',';
127
129
  sel += DesignerCanvas.cssprefixConstant + p.trimStart();
128
130
  }
129
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.63",
4
+ "version": "0.1.64",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "author": "jochen.kuehner@gmx.de",