single-file-core 1.5.76 → 1.5.77

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.
@@ -294,12 +294,11 @@ function processSelectors(ruleData, processingContext, docContext) {
294
294
  scopeRelative
295
295
  } = analyzeSelector(selector.data);
296
296
  registerSelector(selector, ruleData, scopeRelative, processingContext, docContext);
297
- if (!startsWithCombinator || !ancestorsSelectors || !ancestorsSelectors.length) {
297
+ if (!hasPseudoElement && !hasDynamicStatePseudoClass &&
298
+ (!startsWithCombinator || !ancestorsSelectors || !ancestorsSelectors.length)) {
298
299
  const matchedElements = matchElements(selector, ancestorsSelectors, docContext);
299
300
  if (matchedElements.length) {
300
- if (!hasPseudoElement && !hasDynamicStatePseudoClass) {
301
- updateMatchingSelectors(matchedElements, selector, docContext);
302
- }
301
+ updateMatchingSelectors(matchedElements, selector, docContext);
303
302
  } else {
304
303
  removedSelectors.push(selector);
305
304
  }
@@ -44,38 +44,7 @@ const UNMATCHABLE_PSEUDO_CLASSES = [
44
44
  "right",
45
45
  "seeking",
46
46
  "stalled",
47
- "volume-locked",
48
- "after",
49
- "before",
50
- "visited",
51
- "link",
52
- "any-link",
53
- "local-link",
54
- "target",
55
- "scope",
56
- "hover",
57
- "active",
58
- "focus",
59
- "focus-within",
60
- "focus-visible",
61
- "target-current",
62
- "enabled",
63
- "read-only",
64
- "read-write",
65
- "placeholder-shown",
66
- "autofill",
67
- "default",
68
- "checked",
69
- "indeterminate",
70
- "blank",
71
- "valid",
72
- "invalid",
73
- "in-range",
74
- "out-of-range",
75
- "required",
76
- "optional",
77
- "user-valid",
78
- "user-invalid"
47
+ "volume-locked"
79
48
  ];
80
49
 
81
50
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "single-file-core",
3
- "version": "1.5.76",
3
+ "version": "1.5.77",
4
4
  "description": "SingleFile Core",
5
5
  "author": "Gildas Lormeau",
6
6
  "license": "AGPL-3.0-or-later",