@percy/dom 1.32.12-beta.1 → 1.32.12-beta.3

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.
Files changed (2) hide show
  1. package/dist/bundle.js +8 -0
  2. package/package.json +2 -2
package/dist/bundle.js CHANGED
@@ -1444,6 +1444,14 @@
1444
1444
  nextn = nextn.nextSibling;
1445
1445
  }
1446
1446
  };
1447
+
1448
+ // A comment inside a <style> is raw text, not markup: templating libraries
1449
+ // such as Lit leave empty marker comments there around bindings. Cloned, it
1450
+ // serializes as a literal `<!---->` in the CSS, which the parser reads as a
1451
+ // CDO/CDC token that swallows the declaration after it (PER-11066).
1452
+ if (node.nodeType === 8 /* COMMENT_NODE */ && /^style$/i.test(node.parentNode.nodeName)) {
1453
+ return;
1454
+ }
1447
1455
  if (node.nodeName === 'BASE') {
1448
1456
  let clone = node.cloneNode(false);
1449
1457
  parent.appendChild(clone);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@percy/dom",
3
- "version": "1.32.12-beta.1",
3
+ "version": "1.32.12-beta.3",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -35,5 +35,5 @@
35
35
  "devDependencies": {
36
36
  "interactor.js": "^2.0.0-beta.10"
37
37
  },
38
- "gitHead": "80a7983e35606c049956af87c5f74646cb2333fa"
38
+ "gitHead": "abb8d63fc4b9d7dff41c0720e675819716c94ca0"
39
39
  }