@orkestrel/test 0.0.33 → 0.0.35

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.
@@ -2494,6 +2494,9 @@ export declare function readCaptureReader(): CaptureReader | undefined;
2494
2494
  * it, so `.café` defines `café` where 0.0.26 ended the class at the first code point outside ASCII
2495
2495
  * letters, digits, `_`, and `-` and defined `caf`. One rule's own tokens enter in code-unit order.
2496
2496
  *
2497
+ * A class named only in an `@scope` prelude counts as defined, so `@scope (.panel) to (.footer)`
2498
+ * defines `panel` and `footer`, and one prelude's tokens enter together in code-unit order.
2499
+ *
2497
2500
  * `@keyframes` children are outside that walk, so an animation's own rules define no token here.
2498
2501
  * Reach the animation itself through {@link findKeyframes}.
2499
2502
  *
@@ -4930,6 +4930,9 @@ function readLayerNames(source, layer) {
4930
4930
  * it, so `.café` defines `café` where 0.0.26 ended the class at the first code point outside ASCII
4931
4931
  * letters, digits, `_`, and `-` and defined `caf`. One rule's own tokens enter in code-unit order.
4932
4932
  *
4933
+ * A class named only in an `@scope` prelude counts as defined, so `@scope (.panel) to (.footer)`
4934
+ * defines `panel` and `footer`, and one prelude's tokens enter together in code-unit order.
4935
+ *
4933
4936
  * `@keyframes` children are outside that walk, so an animation's own rules define no token here.
4934
4937
  * Reach the animation itself through {@link findKeyframes}.
4935
4938
  *
@@ -4939,7 +4942,7 @@ function readLayerNames(source, layer) {
4939
4942
  * ```
4940
4943
  */
4941
4944
  function readCascade() {
4942
- return new Set(readRules().flatMap((rule) => rule instanceof CSSStyleRule ? collectSelectorClasses(rule.selectorText) : []));
4945
+ return new Set(readRules().flatMap((rule) => rule instanceof CSSStyleRule ? collectSelectorClasses(rule.selectorText) : rule instanceof CSSScopeRule ? collectSelectorClasses(`${rule.start ?? ""},${rule.end ?? ""}`) : []));
4943
4946
  }
4944
4947
  /**
4945
4948
  * Collects every class token the markup under one root carries.