@excom/quark 0.1.0
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.
- package/.rush/temp/chunked-rush-logs/quark.apply-exports.chunks.jsonl +1 -0
- package/.rush/temp/chunked-rush-logs/quark.build_package-metas.chunks.jsonl +1 -0
- package/.rush/temp/operation/apply-exports/all.log +1 -0
- package/.rush/temp/operation/apply-exports/log-chunks.jsonl +1 -0
- package/.rush/temp/operation/apply-exports/state.json +3 -0
- package/.rush/temp/operation/build_package-metas/all.log +1 -0
- package/.rush/temp/operation/build_package-metas/log-chunks.jsonl +1 -0
- package/.rush/temp/operation/build_package-metas/state.json +3 -0
- package/.rush/temp/shrinkwrap-deps.json +3 -0
- package/config/rig.json +6 -0
- package/index.ts +4 -0
- package/language.ts +7 -0
- package/package.json +45 -0
- package/rush-logs/quark.apply-exports.cache.log +1 -0
- package/rush-logs/quark.apply-exports.log +1 -0
- package/rush-logs/quark.build_package-metas.cache.log +1 -0
- package/rush-logs/quark.build_package-metas.log +1 -0
- package/src/actions.ts +445 -0
- package/src/ast.ts +187 -0
- package/src/bindings.ts +115 -0
- package/src/builtin-modules.ts +401 -0
- package/src/constants.ts +47 -0
- package/src/cycle-check.ts +121 -0
- package/src/devtools-hook.ts +303 -0
- package/src/element-api.ts +109 -0
- package/src/evaluator.ts +317 -0
- package/src/form-controls.ts +69 -0
- package/src/language-tables.ts +137 -0
- package/src/language.ts +1225 -0
- package/src/observer.ts +110 -0
- package/src/paint.ts +305 -0
- package/src/properties.ts +818 -0
- package/src/props.ts +94 -0
- package/src/quark-element.ts +7 -0
- package/src/quark-internal.ts +365 -0
- package/src/quark.ts +817 -0
- package/src/resolvers.ts +867 -0
- package/src/rule.ts +800 -0
- package/src/scope-id.ts +47 -0
- package/src/selector-utils.ts +430 -0
- package/src/settle.ts +117 -0
- package/src/types.ts +155 -0
- package/src/utils.ts +79 -0
- package/src/variables.ts +359 -0
- package/support/demos/css-variables.html +18 -0
- package/support/demos/dispatch.html +20 -0
- package/support/demos/events.html +9 -0
- package/support/demos/iterate.html +13 -0
- package/support/demos/js-api.html +17 -0
- package/support/demos/provider-list.html +16 -0
- package/support/demos/toggle-content.html +14 -0
- package/support/demos/unset.html +12 -0
- package/support/demos/view-transition.html +36 -0
- package/support/docs/ATTRIBUTES.md +37 -0
- package/support/docs/AT_RULES.md +45 -0
- package/support/docs/BUILTINS.md +57 -0
- package/support/docs/CONTENT.md +40 -0
- package/support/docs/CSS_VARIABLES.md +16 -0
- package/support/docs/DECLARATIONS.md +26 -0
- package/support/docs/DELAY.md +37 -0
- package/support/docs/DIAGNOSTICS.md +32 -0
- package/support/docs/DISPATCH.md +81 -0
- package/support/docs/ELEMENT_PROPERTIES.md +34 -0
- package/support/docs/EXPRESSIONS.md +31 -0
- package/support/docs/INTERNAL.md +8 -0
- package/support/docs/JS_API.md +53 -0
- package/support/docs/JS_WRITES.md +36 -0
- package/support/docs/LIMITATIONS.md +26 -0
- package/support/docs/LOOP_GUARD.md +30 -0
- package/support/docs/METHODS.md +43 -0
- package/support/docs/MODULES.md +111 -0
- package/support/docs/NO_REVERSION.md +18 -0
- package/support/docs/ON.md +87 -0
- package/support/docs/REACTIVITY.md +24 -0
- package/support/docs/README.md +143 -0
- package/support/docs/SELECTORS.md +87 -0
- package/support/docs/SHEETS.md +67 -0
- package/support/docs/SYNTAX.md +36 -0
- package/support/docs/USE.md +24 -0
- package/support/docs/VALUES.md +27 -0
- package/support/docs/VARIABLES.md +47 -0
- package/support/docs/VIEW_TRANSITION.md +64 -0
- package/support/docs-sections.json +65 -0
- package/support/package-meta.json +208 -0
- package/support/scripts/build-language-docs.mjs +196 -0
- package/support/tests/__snapshots__/css-variables.view.test.ts.snap +23 -0
- package/support/tests/__snapshots__/dispatch.view.test.ts.snap +23 -0
- package/support/tests/__snapshots__/events.view.test.ts.snap +23 -0
- package/support/tests/__snapshots__/iterate.view.test.ts.snap +23 -0
- package/support/tests/__snapshots__/js-api.view.test.ts.snap +23 -0
- package/support/tests/__snapshots__/provider-list.view.test.ts.snap +23 -0
- package/support/tests/__snapshots__/quark-features.test.ts.snap +1079 -0
- package/support/tests/__snapshots__/quark-with-providers.test.ts.snap +89 -0
- package/support/tests/__snapshots__/quark.test.ts.snap +221 -0
- package/support/tests/__snapshots__/selectors.test.ts.snap +133 -0
- package/support/tests/__snapshots__/toggle-content.view.test.ts.snap +23 -0
- package/support/tests/__snapshots__/unset.view.test.ts.snap +23 -0
- package/support/tests/__snapshots__/view-transition.view.test.ts.snap +23 -0
- package/support/tests/actions.test.ts +437 -0
- package/support/tests/builtin-modules.test.ts +337 -0
- package/support/tests/builtins.test.ts +189 -0
- package/support/tests/css-variables.view.test.ts +35 -0
- package/support/tests/delay.test.ts +244 -0
- package/support/tests/devtools-hook.test.ts +496 -0
- package/support/tests/diagnostics.test.ts +224 -0
- package/support/tests/dispatch.view.test.ts +43 -0
- package/support/tests/element-api.test.ts +202 -0
- package/support/tests/evaluator.test.ts +237 -0
- package/support/tests/events.view.test.ts +40 -0
- package/support/tests/form-controls.test.ts +452 -0
- package/support/tests/helpers.ts +354 -0
- package/support/tests/internals.test.ts +568 -0
- package/support/tests/iterate.view.test.ts +40 -0
- package/support/tests/js-api.view.test.ts +45 -0
- package/support/tests/language-docs.test.ts +147 -0
- package/support/tests/lifecycle.test.ts +440 -0
- package/support/tests/loop-guard.test.ts +323 -0
- package/support/tests/provider-list.view.test.ts +47 -0
- package/support/tests/quark-features.test.ts +2887 -0
- package/support/tests/quark-with-providers.test.ts +169 -0
- package/support/tests/quark.test.ts +359 -0
- package/support/tests/resolvers.test.ts +346 -0
- package/support/tests/selector-analysis.test.ts +281 -0
- package/support/tests/selectors.test.ts +670 -0
- package/support/tests/toggle-content.view.test.ts +40 -0
- package/support/tests/unset.view.test.ts +42 -0
- package/support/tests/view-helpers.ts +81 -0
- package/support/tests/view-transition.test.ts +1069 -0
- package/support/tests/view-transition.view.test.ts +76 -0
- package/tsconfig.json +5 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
|
+
|
|
3
|
+
exports[`Quark with providers > binds provider-fetch body fields via prop() > complexity 1`] = `
|
|
4
|
+
{
|
|
5
|
+
"attributeRuns": 1,
|
|
6
|
+
"closest": 0,
|
|
7
|
+
"getVar": 1,
|
|
8
|
+
"importNode": 0,
|
|
9
|
+
"listenerRuns": 0,
|
|
10
|
+
"matches": 5,
|
|
11
|
+
"parentElement": 9,
|
|
12
|
+
"quarkRuns": 2,
|
|
13
|
+
"queryScopeCost": 7,
|
|
14
|
+
"querySelectorAll": 3,
|
|
15
|
+
"removeAttribute": 1,
|
|
16
|
+
"ruleRuns": 4,
|
|
17
|
+
"schedulePaint": 1,
|
|
18
|
+
"setAttribute": 3,
|
|
19
|
+
"setVar": 1,
|
|
20
|
+
"textContent": 1,
|
|
21
|
+
"variableRuns": 1,
|
|
22
|
+
}
|
|
23
|
+
`;
|
|
24
|
+
|
|
25
|
+
exports[`Quark with providers > binds provider-storage via prop() > complexity 1`] = `
|
|
26
|
+
{
|
|
27
|
+
"attributeRuns": 1,
|
|
28
|
+
"closest": 0,
|
|
29
|
+
"getVar": 1,
|
|
30
|
+
"importNode": 0,
|
|
31
|
+
"listenerRuns": 0,
|
|
32
|
+
"matches": 2,
|
|
33
|
+
"parentElement": 4,
|
|
34
|
+
"quarkRuns": 1,
|
|
35
|
+
"queryScopeCost": 6,
|
|
36
|
+
"querySelectorAll": 2,
|
|
37
|
+
"removeAttribute": 0,
|
|
38
|
+
"ruleRuns": 2,
|
|
39
|
+
"schedulePaint": 1,
|
|
40
|
+
"setAttribute": 1,
|
|
41
|
+
"setVar": 1,
|
|
42
|
+
"textContent": 1,
|
|
43
|
+
"variableRuns": 1,
|
|
44
|
+
}
|
|
45
|
+
`;
|
|
46
|
+
|
|
47
|
+
exports[`Quark with providers > iterates provider-fetch body into a list > complexity 1`] = `
|
|
48
|
+
{
|
|
49
|
+
"attributeRuns": 3,
|
|
50
|
+
"closest": 2,
|
|
51
|
+
"getVar": 1,
|
|
52
|
+
"importNode": 3,
|
|
53
|
+
"listenerRuns": 0,
|
|
54
|
+
"matches": 7,
|
|
55
|
+
"parentElement": 11,
|
|
56
|
+
"quarkRuns": 3,
|
|
57
|
+
"queryScopeCost": 35,
|
|
58
|
+
"querySelectorAll": 9,
|
|
59
|
+
"removeAttribute": 2,
|
|
60
|
+
"ruleRuns": 9,
|
|
61
|
+
"schedulePaint": 3,
|
|
62
|
+
"setAttribute": 5,
|
|
63
|
+
"setVar": 1,
|
|
64
|
+
"textContent": 2,
|
|
65
|
+
"variableRuns": 1,
|
|
66
|
+
}
|
|
67
|
+
`;
|
|
68
|
+
|
|
69
|
+
exports[`Quark with providers > updates bindings when provider-fetch re-provisions > complexity 1`] = `
|
|
70
|
+
{
|
|
71
|
+
"attributeRuns": 2,
|
|
72
|
+
"closest": 0,
|
|
73
|
+
"getVar": 2,
|
|
74
|
+
"importNode": 0,
|
|
75
|
+
"listenerRuns": 0,
|
|
76
|
+
"matches": 9,
|
|
77
|
+
"parentElement": 11,
|
|
78
|
+
"quarkRuns": 5,
|
|
79
|
+
"queryScopeCost": 9,
|
|
80
|
+
"querySelectorAll": 5,
|
|
81
|
+
"removeAttribute": 3,
|
|
82
|
+
"ruleRuns": 8,
|
|
83
|
+
"schedulePaint": 2,
|
|
84
|
+
"setAttribute": 5,
|
|
85
|
+
"setVar": 2,
|
|
86
|
+
"textContent": 2,
|
|
87
|
+
"variableRuns": 2,
|
|
88
|
+
}
|
|
89
|
+
`;
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
|
+
|
|
3
|
+
exports[`Quark > activates many articles when data-active is set > complexity 1`] = `
|
|
4
|
+
{
|
|
5
|
+
"attributeRuns": 50,
|
|
6
|
+
"closest": 0,
|
|
7
|
+
"getVar": 0,
|
|
8
|
+
"importNode": 0,
|
|
9
|
+
"listenerRuns": 0,
|
|
10
|
+
"matches": 50,
|
|
11
|
+
"parentElement": 0,
|
|
12
|
+
"quarkRuns": 1,
|
|
13
|
+
"queryScopeCost": 50,
|
|
14
|
+
"querySelectorAll": 50,
|
|
15
|
+
"removeAttribute": 0,
|
|
16
|
+
"ruleRuns": 50,
|
|
17
|
+
"schedulePaint": 50,
|
|
18
|
+
"setAttribute": 0,
|
|
19
|
+
"setVar": 0,
|
|
20
|
+
"textContent": 50,
|
|
21
|
+
"variableRuns": 0,
|
|
22
|
+
}
|
|
23
|
+
`;
|
|
24
|
+
|
|
25
|
+
exports[`Quark > calls registered module functions for attributes and listeners > complexity 1`] = `
|
|
26
|
+
{
|
|
27
|
+
"attributeRuns": 1,
|
|
28
|
+
"closest": 0,
|
|
29
|
+
"getVar": 0,
|
|
30
|
+
"importNode": 0,
|
|
31
|
+
"listenerRuns": 1,
|
|
32
|
+
"matches": 1,
|
|
33
|
+
"parentElement": 1,
|
|
34
|
+
"quarkRuns": 1,
|
|
35
|
+
"queryScopeCost": 2,
|
|
36
|
+
"querySelectorAll": 1,
|
|
37
|
+
"removeAttribute": 0,
|
|
38
|
+
"ruleRuns": 1,
|
|
39
|
+
"schedulePaint": 1,
|
|
40
|
+
"setAttribute": 2,
|
|
41
|
+
"setVar": 0,
|
|
42
|
+
"textContent": 0,
|
|
43
|
+
"variableRuns": 0,
|
|
44
|
+
}
|
|
45
|
+
`;
|
|
46
|
+
|
|
47
|
+
exports[`Quark > iterates an array into a template > complexity 1`] = `
|
|
48
|
+
{
|
|
49
|
+
"attributeRuns": 51,
|
|
50
|
+
"closest": 50,
|
|
51
|
+
"getVar": 1,
|
|
52
|
+
"importNode": 51,
|
|
53
|
+
"listenerRuns": 0,
|
|
54
|
+
"matches": 3,
|
|
55
|
+
"parentElement": 54,
|
|
56
|
+
"quarkRuns": 2,
|
|
57
|
+
"queryScopeCost": 315,
|
|
58
|
+
"querySelectorAll": 7,
|
|
59
|
+
"removeAttribute": 1,
|
|
60
|
+
"ruleRuns": 6,
|
|
61
|
+
"schedulePaint": 51,
|
|
62
|
+
"setAttribute": 3,
|
|
63
|
+
"setVar": 1,
|
|
64
|
+
"textContent": 50,
|
|
65
|
+
"variableRuns": 1,
|
|
66
|
+
}
|
|
67
|
+
`;
|
|
68
|
+
|
|
69
|
+
exports[`Quark > mutates elements rendered after register > complexity 1`] = `
|
|
70
|
+
{
|
|
71
|
+
"attributeRuns": 1,
|
|
72
|
+
"closest": 0,
|
|
73
|
+
"getVar": 0,
|
|
74
|
+
"importNode": 0,
|
|
75
|
+
"listenerRuns": 0,
|
|
76
|
+
"matches": 0,
|
|
77
|
+
"parentElement": 0,
|
|
78
|
+
"quarkRuns": 1,
|
|
79
|
+
"queryScopeCost": 2,
|
|
80
|
+
"querySelectorAll": 1,
|
|
81
|
+
"removeAttribute": 0,
|
|
82
|
+
"ruleRuns": 1,
|
|
83
|
+
"schedulePaint": 1,
|
|
84
|
+
"setAttribute": 1,
|
|
85
|
+
"setVar": 0,
|
|
86
|
+
"textContent": 0,
|
|
87
|
+
"variableRuns": 0,
|
|
88
|
+
}
|
|
89
|
+
`;
|
|
90
|
+
|
|
91
|
+
exports[`Quark > mutates matching bind targets on register > complexity 1`] = `
|
|
92
|
+
{
|
|
93
|
+
"attributeRuns": 50,
|
|
94
|
+
"closest": 0,
|
|
95
|
+
"getVar": 0,
|
|
96
|
+
"importNode": 0,
|
|
97
|
+
"listenerRuns": 0,
|
|
98
|
+
"matches": 1,
|
|
99
|
+
"parentElement": 1,
|
|
100
|
+
"quarkRuns": 1,
|
|
101
|
+
"queryScopeCost": 52,
|
|
102
|
+
"querySelectorAll": 1,
|
|
103
|
+
"removeAttribute": 0,
|
|
104
|
+
"ruleRuns": 1,
|
|
105
|
+
"schedulePaint": 50,
|
|
106
|
+
"setAttribute": 51,
|
|
107
|
+
"setVar": 0,
|
|
108
|
+
"textContent": 0,
|
|
109
|
+
"variableRuns": 0,
|
|
110
|
+
}
|
|
111
|
+
`;
|
|
112
|
+
|
|
113
|
+
exports[`Quark > passes nested variables into child content > complexity 1`] = `
|
|
114
|
+
{
|
|
115
|
+
"attributeRuns": 1,
|
|
116
|
+
"closest": 0,
|
|
117
|
+
"getVar": 1,
|
|
118
|
+
"importNode": 0,
|
|
119
|
+
"listenerRuns": 0,
|
|
120
|
+
"matches": 2,
|
|
121
|
+
"parentElement": 4,
|
|
122
|
+
"quarkRuns": 1,
|
|
123
|
+
"queryScopeCost": 6,
|
|
124
|
+
"querySelectorAll": 2,
|
|
125
|
+
"removeAttribute": 0,
|
|
126
|
+
"ruleRuns": 2,
|
|
127
|
+
"schedulePaint": 1,
|
|
128
|
+
"setAttribute": 1,
|
|
129
|
+
"setVar": 1,
|
|
130
|
+
"textContent": 1,
|
|
131
|
+
"variableRuns": 1,
|
|
132
|
+
}
|
|
133
|
+
`;
|
|
134
|
+
|
|
135
|
+
exports[`Quark > re-runs when a watched attribute changes > complexity 1`] = `
|
|
136
|
+
{
|
|
137
|
+
"attributeRuns": 50,
|
|
138
|
+
"closest": 0,
|
|
139
|
+
"getVar": 0,
|
|
140
|
+
"importNode": 0,
|
|
141
|
+
"listenerRuns": 0,
|
|
142
|
+
"matches": 2,
|
|
143
|
+
"parentElement": 0,
|
|
144
|
+
"quarkRuns": 1,
|
|
145
|
+
"queryScopeCost": 50,
|
|
146
|
+
"querySelectorAll": 1,
|
|
147
|
+
"removeAttribute": 0,
|
|
148
|
+
"ruleRuns": 1,
|
|
149
|
+
"schedulePaint": 50,
|
|
150
|
+
"setAttribute": 0,
|
|
151
|
+
"setVar": 0,
|
|
152
|
+
"textContent": 50,
|
|
153
|
+
"variableRuns": 0,
|
|
154
|
+
}
|
|
155
|
+
`;
|
|
156
|
+
|
|
157
|
+
exports[`Quark > reads .provision via prop() and re-runs when it is assigned > complexity 1`] = `
|
|
158
|
+
{
|
|
159
|
+
"attributeRuns": 2,
|
|
160
|
+
"closest": 0,
|
|
161
|
+
"getVar": 2,
|
|
162
|
+
"importNode": 0,
|
|
163
|
+
"listenerRuns": 0,
|
|
164
|
+
"matches": 4,
|
|
165
|
+
"parentElement": 6,
|
|
166
|
+
"quarkRuns": 3,
|
|
167
|
+
"queryScopeCost": 7,
|
|
168
|
+
"querySelectorAll": 3,
|
|
169
|
+
"removeAttribute": 0,
|
|
170
|
+
"ruleRuns": 4,
|
|
171
|
+
"schedulePaint": 2,
|
|
172
|
+
"setAttribute": 1,
|
|
173
|
+
"setVar": 2,
|
|
174
|
+
"textContent": 2,
|
|
175
|
+
"variableRuns": 2,
|
|
176
|
+
}
|
|
177
|
+
`;
|
|
178
|
+
|
|
179
|
+
exports[`Quark > removes an attribute with none > complexity 1`] = `
|
|
180
|
+
{
|
|
181
|
+
"attributeRuns": 1,
|
|
182
|
+
"closest": 0,
|
|
183
|
+
"getVar": 0,
|
|
184
|
+
"importNode": 0,
|
|
185
|
+
"listenerRuns": 0,
|
|
186
|
+
"matches": 1,
|
|
187
|
+
"parentElement": 1,
|
|
188
|
+
"quarkRuns": 1,
|
|
189
|
+
"queryScopeCost": 2,
|
|
190
|
+
"querySelectorAll": 1,
|
|
191
|
+
"removeAttribute": 1,
|
|
192
|
+
"ruleRuns": 1,
|
|
193
|
+
"schedulePaint": 1,
|
|
194
|
+
"setAttribute": 1,
|
|
195
|
+
"setVar": 0,
|
|
196
|
+
"textContent": 0,
|
|
197
|
+
"variableRuns": 0,
|
|
198
|
+
}
|
|
199
|
+
`;
|
|
200
|
+
|
|
201
|
+
exports[`Quark > sets text content from a string > complexity 1`] = `
|
|
202
|
+
{
|
|
203
|
+
"attributeRuns": 1,
|
|
204
|
+
"closest": 0,
|
|
205
|
+
"getVar": 0,
|
|
206
|
+
"importNode": 0,
|
|
207
|
+
"listenerRuns": 0,
|
|
208
|
+
"matches": 1,
|
|
209
|
+
"parentElement": 1,
|
|
210
|
+
"quarkRuns": 1,
|
|
211
|
+
"queryScopeCost": 2,
|
|
212
|
+
"querySelectorAll": 1,
|
|
213
|
+
"removeAttribute": 0,
|
|
214
|
+
"ruleRuns": 1,
|
|
215
|
+
"schedulePaint": 1,
|
|
216
|
+
"setAttribute": 1,
|
|
217
|
+
"setVar": 0,
|
|
218
|
+
"textContent": 1,
|
|
219
|
+
"variableRuns": 0,
|
|
220
|
+
}
|
|
221
|
+
`;
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
|
+
|
|
3
|
+
exports[`selector features > :has() > derives a host aggregate with :scope:has() > complexity 1`] = `
|
|
4
|
+
{
|
|
5
|
+
"attributeRuns": 4,
|
|
6
|
+
"closest": 0,
|
|
7
|
+
"getVar": 0,
|
|
8
|
+
"importNode": 0,
|
|
9
|
+
"listenerRuns": 0,
|
|
10
|
+
"matches": 8,
|
|
11
|
+
"parentElement": 0,
|
|
12
|
+
"quarkRuns": 2,
|
|
13
|
+
"queryScopeCost": 8,
|
|
14
|
+
"querySelectorAll": 2,
|
|
15
|
+
"removeAttribute": 2,
|
|
16
|
+
"ruleRuns": 4,
|
|
17
|
+
"schedulePaint": 4,
|
|
18
|
+
"setAttribute": 3,
|
|
19
|
+
"setVar": 0,
|
|
20
|
+
"textContent": 0,
|
|
21
|
+
"variableRuns": 0,
|
|
22
|
+
}
|
|
23
|
+
`;
|
|
24
|
+
|
|
25
|
+
exports[`selector features > :has() > re-checks the subject when an attribute named in the argument changes below it > complexity 1`] = `
|
|
26
|
+
{
|
|
27
|
+
"attributeRuns": 2,
|
|
28
|
+
"closest": 0,
|
|
29
|
+
"getVar": 0,
|
|
30
|
+
"importNode": 0,
|
|
31
|
+
"listenerRuns": 0,
|
|
32
|
+
"matches": 12,
|
|
33
|
+
"parentElement": 14,
|
|
34
|
+
"quarkRuns": 2,
|
|
35
|
+
"queryScopeCost": 0,
|
|
36
|
+
"querySelectorAll": 0,
|
|
37
|
+
"removeAttribute": 2,
|
|
38
|
+
"ruleRuns": 2,
|
|
39
|
+
"schedulePaint": 2,
|
|
40
|
+
"setAttribute": 2,
|
|
41
|
+
"setVar": 0,
|
|
42
|
+
"textContent": 0,
|
|
43
|
+
"variableRuns": 0,
|
|
44
|
+
}
|
|
45
|
+
`;
|
|
46
|
+
|
|
47
|
+
exports[`selector features > :is() / :where() / :not() > observes :not() arguments on ancestor compounds > complexity 1`] = `
|
|
48
|
+
{
|
|
49
|
+
"attributeRuns": 4,
|
|
50
|
+
"closest": 0,
|
|
51
|
+
"getVar": 0,
|
|
52
|
+
"importNode": 0,
|
|
53
|
+
"listenerRuns": 0,
|
|
54
|
+
"matches": 4,
|
|
55
|
+
"parentElement": 0,
|
|
56
|
+
"quarkRuns": 2,
|
|
57
|
+
"queryScopeCost": 6,
|
|
58
|
+
"querySelectorAll": 3,
|
|
59
|
+
"removeAttribute": 3,
|
|
60
|
+
"ruleRuns": 2,
|
|
61
|
+
"schedulePaint": 4,
|
|
62
|
+
"setAttribute": 3,
|
|
63
|
+
"setVar": 0,
|
|
64
|
+
"textContent": 0,
|
|
65
|
+
"variableRuns": 0,
|
|
66
|
+
}
|
|
67
|
+
`;
|
|
68
|
+
|
|
69
|
+
exports[`selector features > class and id selectors > fans out below an ancestor whose class changes > complexity 1`] = `
|
|
70
|
+
{
|
|
71
|
+
"attributeRuns": 4,
|
|
72
|
+
"closest": 0,
|
|
73
|
+
"getVar": 0,
|
|
74
|
+
"importNode": 0,
|
|
75
|
+
"listenerRuns": 0,
|
|
76
|
+
"matches": 4,
|
|
77
|
+
"parentElement": 0,
|
|
78
|
+
"quarkRuns": 2,
|
|
79
|
+
"queryScopeCost": 6,
|
|
80
|
+
"querySelectorAll": 3,
|
|
81
|
+
"removeAttribute": 2,
|
|
82
|
+
"ruleRuns": 2,
|
|
83
|
+
"schedulePaint": 4,
|
|
84
|
+
"setAttribute": 4,
|
|
85
|
+
"setVar": 0,
|
|
86
|
+
"textContent": 0,
|
|
87
|
+
"variableRuns": 0,
|
|
88
|
+
}
|
|
89
|
+
`;
|
|
90
|
+
|
|
91
|
+
exports[`selector features > sibling combinators > ~ re-runs the following siblings when the earlier sibling changes > complexity 1`] = `
|
|
92
|
+
{
|
|
93
|
+
"attributeRuns": 2,
|
|
94
|
+
"closest": 0,
|
|
95
|
+
"getVar": 0,
|
|
96
|
+
"importNode": 0,
|
|
97
|
+
"listenerRuns": 0,
|
|
98
|
+
"matches": 4,
|
|
99
|
+
"parentElement": 2,
|
|
100
|
+
"quarkRuns": 2,
|
|
101
|
+
"queryScopeCost": 6,
|
|
102
|
+
"querySelectorAll": 2,
|
|
103
|
+
"removeAttribute": 2,
|
|
104
|
+
"ruleRuns": 2,
|
|
105
|
+
"schedulePaint": 2,
|
|
106
|
+
"setAttribute": 2,
|
|
107
|
+
"setVar": 0,
|
|
108
|
+
"textContent": 0,
|
|
109
|
+
"variableRuns": 0,
|
|
110
|
+
}
|
|
111
|
+
`;
|
|
112
|
+
|
|
113
|
+
exports[`selector features > structural pseudo-classes > re-positions :first-child / :last-child when a sibling is removed > complexity 1`] = `
|
|
114
|
+
{
|
|
115
|
+
"attributeRuns": 2,
|
|
116
|
+
"closest": 0,
|
|
117
|
+
"getVar": 0,
|
|
118
|
+
"importNode": 0,
|
|
119
|
+
"listenerRuns": 0,
|
|
120
|
+
"matches": 0,
|
|
121
|
+
"parentElement": 0,
|
|
122
|
+
"quarkRuns": 1,
|
|
123
|
+
"queryScopeCost": 6,
|
|
124
|
+
"querySelectorAll": 3,
|
|
125
|
+
"removeAttribute": 0,
|
|
126
|
+
"ruleRuns": 3,
|
|
127
|
+
"schedulePaint": 2,
|
|
128
|
+
"setAttribute": 1,
|
|
129
|
+
"setVar": 0,
|
|
130
|
+
"textContent": 0,
|
|
131
|
+
"variableRuns": 0,
|
|
132
|
+
}
|
|
133
|
+
`;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
|
+
|
|
3
|
+
exports[`toggle-content view > reflects details open and closed > complexity 1`] = `
|
|
4
|
+
{
|
|
5
|
+
"attributeRuns": 1,
|
|
6
|
+
"closest": 0,
|
|
7
|
+
"getVar": 0,
|
|
8
|
+
"importNode": 0,
|
|
9
|
+
"listenerRuns": 0,
|
|
10
|
+
"matches": 2,
|
|
11
|
+
"parentElement": 0,
|
|
12
|
+
"quarkRuns": 1,
|
|
13
|
+
"queryScopeCost": 3,
|
|
14
|
+
"querySelectorAll": 1,
|
|
15
|
+
"removeAttribute": 0,
|
|
16
|
+
"ruleRuns": 1,
|
|
17
|
+
"schedulePaint": 1,
|
|
18
|
+
"setAttribute": 1,
|
|
19
|
+
"setVar": 0,
|
|
20
|
+
"textContent": 1,
|
|
21
|
+
"variableRuns": 0,
|
|
22
|
+
}
|
|
23
|
+
`;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
|
+
|
|
3
|
+
exports[`unset view > shadows $foo while open and falls back when closed > complexity 1`] = `
|
|
4
|
+
{
|
|
5
|
+
"attributeRuns": 1,
|
|
6
|
+
"closest": 0,
|
|
7
|
+
"getVar": 1,
|
|
8
|
+
"importNode": 0,
|
|
9
|
+
"listenerRuns": 0,
|
|
10
|
+
"matches": 3,
|
|
11
|
+
"parentElement": 2,
|
|
12
|
+
"quarkRuns": 2,
|
|
13
|
+
"queryScopeCost": 2,
|
|
14
|
+
"querySelectorAll": 1,
|
|
15
|
+
"removeAttribute": 0,
|
|
16
|
+
"ruleRuns": 2,
|
|
17
|
+
"schedulePaint": 1,
|
|
18
|
+
"setAttribute": 1,
|
|
19
|
+
"setVar": 1,
|
|
20
|
+
"textContent": 1,
|
|
21
|
+
"variableRuns": 1,
|
|
22
|
+
}
|
|
23
|
+
`;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
|
+
|
|
3
|
+
exports[`view-transition view > adds and removes planets without the API, within the complexity budget > complexity 1`] = `
|
|
4
|
+
{
|
|
5
|
+
"attributeRuns": 7,
|
|
6
|
+
"closest": 6,
|
|
7
|
+
"getVar": 4,
|
|
8
|
+
"importNode": 2,
|
|
9
|
+
"listenerRuns": 2,
|
|
10
|
+
"matches": 7,
|
|
11
|
+
"parentElement": 14,
|
|
12
|
+
"quarkRuns": 3,
|
|
13
|
+
"queryScopeCost": 43,
|
|
14
|
+
"querySelectorAll": 7,
|
|
15
|
+
"removeAttribute": 1,
|
|
16
|
+
"ruleRuns": 10,
|
|
17
|
+
"schedulePaint": 7,
|
|
18
|
+
"setAttribute": 3,
|
|
19
|
+
"setVar": 1,
|
|
20
|
+
"textContent": 1,
|
|
21
|
+
"variableRuns": 1,
|
|
22
|
+
}
|
|
23
|
+
`;
|