@api-client/ui 0.5.26 → 0.5.28

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 (92) hide show
  1. package/build/src/elements/app-bar/internals/AppBar.d.ts +1 -1
  2. package/build/src/elements/app-bar/internals/AppBar.d.ts.map +1 -1
  3. package/build/src/elements/app-bar/internals/AppBar.js +5 -5
  4. package/build/src/elements/app-bar/internals/AppBar.js.map +1 -1
  5. package/build/src/elements/currency/internals/Picker.d.ts +2 -2
  6. package/build/src/elements/currency/internals/Picker.d.ts.map +1 -1
  7. package/build/src/elements/currency/internals/Picker.js +13 -12
  8. package/build/src/elements/currency/internals/Picker.js.map +1 -1
  9. package/build/src/elements/data-table/DataTable.d.ts +1 -3
  10. package/build/src/elements/data-table/DataTable.d.ts.map +1 -1
  11. package/build/src/elements/data-table/DataTable.js +2 -4
  12. package/build/src/elements/data-table/DataTable.js.map +1 -1
  13. package/build/src/elements/file-system/internals/Breadcrumbs.d.ts +1 -2
  14. package/build/src/elements/file-system/internals/Breadcrumbs.d.ts.map +1 -1
  15. package/build/src/elements/file-system/internals/Breadcrumbs.js +2 -3
  16. package/build/src/elements/file-system/internals/Breadcrumbs.js.map +1 -1
  17. package/build/src/elements/navigation/internals/NavigationItem.js +1 -1
  18. package/build/src/elements/navigation/internals/NavigationItem.js.map +1 -1
  19. package/build/src/md/list/internals/List.d.ts +4 -2
  20. package/build/src/md/list/internals/List.d.ts.map +1 -1
  21. package/build/src/md/list/internals/List.js +16 -6
  22. package/build/src/md/list/internals/List.js.map +1 -1
  23. package/build/src/md/list/internals/ListItem.d.ts +10 -1
  24. package/build/src/md/list/internals/ListItem.d.ts.map +1 -1
  25. package/build/src/md/list/internals/ListItem.js +74 -8
  26. package/build/src/md/list/internals/ListItem.js.map +1 -1
  27. package/build/src/md/list/internals/ListItem.styles.d.ts.map +1 -1
  28. package/build/src/md/list/internals/ListItem.styles.js +38 -28
  29. package/build/src/md/list/internals/ListItem.styles.js.map +1 -1
  30. package/build/src/md/menu/internal/MenuItem.js +4 -4
  31. package/build/src/md/menu/internal/MenuItem.js.map +1 -1
  32. package/build/src/md/progress/internals/CircularProgress.d.ts +93 -0
  33. package/build/src/md/progress/internals/CircularProgress.d.ts.map +1 -0
  34. package/build/src/md/progress/internals/CircularProgress.js +156 -0
  35. package/build/src/md/progress/internals/CircularProgress.js.map +1 -0
  36. package/build/src/md/progress/internals/CircularProgress.styles.d.ts +3 -0
  37. package/build/src/md/progress/internals/CircularProgress.styles.d.ts.map +1 -0
  38. package/build/src/md/progress/internals/CircularProgress.styles.js +220 -0
  39. package/build/src/md/progress/internals/CircularProgress.styles.js.map +1 -0
  40. package/build/src/md/progress/internals/Range.d.ts +6 -0
  41. package/build/src/md/progress/internals/Range.d.ts.map +1 -1
  42. package/build/src/md/progress/internals/Range.js +41 -3
  43. package/build/src/md/progress/internals/Range.js.map +1 -1
  44. package/build/src/md/progress/internals/UiProgress.d.ts +0 -7
  45. package/build/src/md/progress/internals/UiProgress.d.ts.map +1 -1
  46. package/build/src/md/progress/internals/UiProgress.js +2 -36
  47. package/build/src/md/progress/internals/UiProgress.js.map +1 -1
  48. package/build/src/md/progress/ui-circular-progress.d.ts +11 -0
  49. package/build/src/md/progress/ui-circular-progress.d.ts.map +1 -0
  50. package/build/src/md/progress/ui-circular-progress.js +27 -0
  51. package/build/src/md/progress/ui-circular-progress.js.map +1 -0
  52. package/build/src/md/select/internals/Option.js +2 -2
  53. package/build/src/md/select/internals/Option.js.map +1 -1
  54. package/build/src/md/select/internals/Option.styles.d.ts.map +1 -1
  55. package/build/src/md/select/internals/Option.styles.js +0 -127
  56. package/build/src/md/select/internals/Option.styles.js.map +1 -1
  57. package/build/src/md/select/internals/Select.d.ts +11 -1
  58. package/build/src/md/select/internals/Select.d.ts.map +1 -1
  59. package/build/src/md/select/internals/Select.js +21 -2
  60. package/build/src/md/select/internals/Select.js.map +1 -1
  61. package/demo/elements/currency/index.html +2 -2
  62. package/demo/elements/navigation/navigation-item.html +4 -0
  63. package/demo/elements/navigation/navigation-item.ts +19 -0
  64. package/demo/md/list/list.ts +9 -3
  65. package/demo/md/progress/progress.ts +24 -1
  66. package/demo/md/select/index.ts +5 -0
  67. package/demo/md/tabs/tabs.ts +0 -4
  68. package/package.json +1 -1
  69. package/src/elements/app-bar/internals/AppBar.ts +5 -5
  70. package/src/elements/currency/internals/Picker.ts +17 -16
  71. package/src/elements/data-table/DataTable.ts +2 -4
  72. package/src/elements/file-system/internals/Breadcrumbs.ts +2 -3
  73. package/src/elements/navigation/internals/NavigationItem.ts +1 -1
  74. package/src/md/list/internals/List.ts +19 -8
  75. package/src/md/list/internals/ListItem.styles.ts +38 -28
  76. package/src/md/list/internals/ListItem.ts +55 -8
  77. package/src/md/menu/internal/MenuItem.ts +4 -4
  78. package/src/md/progress/internals/CircularProgress.styles.ts +220 -0
  79. package/src/md/progress/internals/CircularProgress.ts +129 -0
  80. package/src/md/progress/internals/Range.ts +29 -1
  81. package/src/md/progress/internals/UiProgress.ts +1 -30
  82. package/src/md/progress/ui-circular-progress.ts +15 -0
  83. package/src/md/select/internals/Option.styles.ts +0 -127
  84. package/src/md/select/internals/Option.ts +2 -2
  85. package/src/md/select/internals/Select.ts +13 -1
  86. package/test/elements/currency/CurrencyPicker.accessibility.test.ts +14 -14
  87. package/test/elements/currency/CurrencyPicker.core.test.ts +6 -6
  88. package/test/elements/currency/CurrencyPicker.integration.test.ts +2 -2
  89. package/test/elements/currency/CurrencyPicker.test.ts +10 -10
  90. package/test/elements/data-table/DataTable.browser.test.ts +2 -2
  91. package/test/md/menu/MenuItem.test.ts +2 -3
  92. package/test/md/progress/UiCircularProgressElement.test.ts +481 -0
@@ -0,0 +1,481 @@
1
+ import { fixture, assert, html } from '@open-wc/testing'
2
+ import CircularProgress from '../../../src/md/progress/internals/CircularProgress.js'
3
+ import '../../../src/md/progress/ui-circular-progress.js'
4
+
5
+ describe('UiCircularProgress', () => {
6
+ async function basicFixture(): Promise<CircularProgress> {
7
+ return fixture(html`<ui-circular-progress></ui-circular-progress>`)
8
+ }
9
+
10
+ async function determinateFixture(): Promise<CircularProgress> {
11
+ return fixture(html`<ui-circular-progress value="50" max="100"></ui-circular-progress>`)
12
+ }
13
+
14
+ async function indeterminateFixture(): Promise<CircularProgress> {
15
+ return fixture(html`<ui-circular-progress indeterminate></ui-circular-progress>`)
16
+ }
17
+
18
+ async function fourColorFixture(): Promise<CircularProgress> {
19
+ return fixture(html`<ui-circular-progress indeterminate fourcolor></ui-circular-progress>`)
20
+ }
21
+
22
+ async function disabledFixture(): Promise<CircularProgress> {
23
+ return fixture(html`<ui-circular-progress disabled value="30"></ui-circular-progress>`)
24
+ }
25
+
26
+ async function customRangeFixture(): Promise<CircularProgress> {
27
+ return fixture(html`<ui-circular-progress min="10" max="200" value="100"></ui-circular-progress>`)
28
+ }
29
+
30
+ // Accessibility-compliant fixtures for accessibility testing
31
+ async function accessibleBasicFixture(): Promise<CircularProgress> {
32
+ return fixture(html`<ui-circular-progress aria-label="Loading progress"></ui-circular-progress>`)
33
+ }
34
+
35
+ async function accessibleDeterminateFixture(): Promise<CircularProgress> {
36
+ return fixture(
37
+ html`<ui-circular-progress value="50" max="100" aria-label="Upload progress"></ui-circular-progress>`
38
+ )
39
+ }
40
+
41
+ async function accessibleIndeterminateFixture(): Promise<CircularProgress> {
42
+ return fixture(html`<ui-circular-progress indeterminate aria-label="Processing"></ui-circular-progress>`)
43
+ }
44
+
45
+ async function accessibleFourColorFixture(): Promise<CircularProgress> {
46
+ return fixture(
47
+ html`<ui-circular-progress indeterminate fourcolor aria-label="Loading with colors"></ui-circular-progress>`
48
+ )
49
+ }
50
+
51
+ async function accessibleDisabledFixture(): Promise<CircularProgress> {
52
+ return fixture(html`<ui-circular-progress disabled value="30" aria-label="Completed task"></ui-circular-progress>`)
53
+ }
54
+
55
+ describe('Basic Properties', () => {
56
+ let progress: CircularProgress
57
+
58
+ beforeEach(async () => {
59
+ progress = await basicFixture()
60
+ })
61
+
62
+ it('sets default values', () => {
63
+ assert.equal(progress.min, 0, 'default min should be 0')
64
+ assert.equal(progress.max, 100, 'default max should be 100')
65
+ assert.equal(progress.value, 0, 'default value should be 0')
66
+ assert.equal(progress.fourColor, false, 'default fourColor should be false')
67
+ assert.equal(progress.disabled, false, 'default disabled should be false')
68
+ assert.isUndefined(progress.indeterminate, 'default indeterminate should be undefined')
69
+ })
70
+
71
+ it('sets and gets value property', async () => {
72
+ progress.value = 50
73
+ await progress.updateComplete
74
+ assert.equal(progress.value, 50, 'value should be set to 50')
75
+ })
76
+
77
+ it('sets and gets max property', async () => {
78
+ progress.max = 200
79
+ await progress.updateComplete
80
+ assert.equal(progress.max, 200, 'max should be set to 200')
81
+ })
82
+
83
+ it('sets and gets min property', async () => {
84
+ progress.min = 10
85
+ await progress.updateComplete
86
+ assert.equal(progress.min, 10, 'min should be set to 10')
87
+ })
88
+
89
+ it('sets and gets fourColor property', async () => {
90
+ progress.fourColor = true
91
+ await progress.updateComplete
92
+ assert.equal(progress.fourColor, true, 'fourColor should be set to true')
93
+ })
94
+
95
+ it('sets and gets disabled property', async () => {
96
+ progress.disabled = true
97
+ await progress.updateComplete
98
+ assert.equal(progress.disabled, true, 'disabled should be set to true')
99
+ })
100
+
101
+ it('sets and gets indeterminate property', async () => {
102
+ progress.indeterminate = true
103
+ await progress.updateComplete
104
+ assert.equal(progress.indeterminate, true, 'indeterminate should be set to true')
105
+ })
106
+ })
107
+
108
+ describe('Value Validation and Clamping', () => {
109
+ let progress: CircularProgress
110
+
111
+ beforeEach(async () => {
112
+ progress = await customRangeFixture()
113
+ })
114
+
115
+ it('clamps value to max', async () => {
116
+ progress.value = 250
117
+ await progress.updateComplete
118
+ assert.equal(progress.value, progress.max, 'value should be clamped to max')
119
+ })
120
+
121
+ it('clamps value to min', async () => {
122
+ progress.value = 5
123
+ await progress.updateComplete
124
+ assert.equal(progress.value, progress.min, 'value should be clamped to min')
125
+ })
126
+
127
+ it('handles step values correctly', async () => {
128
+ progress.step = 10
129
+ progress.value = 25
130
+ await progress.updateComplete
131
+ assert.equal(progress.value, 30, 'value should be stepped to nearest step value')
132
+ })
133
+
134
+ it('calculates ratio correctly', async () => {
135
+ progress.min = 0
136
+ progress.max = 100
137
+ progress.value = 25
138
+ await progress.updateComplete
139
+ assert.equal(progress.ratio, 25, 'ratio should be 25% for value 25/100')
140
+ })
141
+
142
+ it('handles zero denominator in ratio calculation', async () => {
143
+ progress.min = 50
144
+ progress.max = 50
145
+ progress.value = 50
146
+ await progress.updateComplete
147
+ assert.equal(progress.ratio, 0, 'ratio should be 0 when min equals max')
148
+ })
149
+ })
150
+
151
+ describe('Rendering States', () => {
152
+ describe('Determinate State', () => {
153
+ let progress: CircularProgress
154
+
155
+ beforeEach(async () => {
156
+ progress = await determinateFixture()
157
+ })
158
+
159
+ it('renders SVG container for determinate progress', async () => {
160
+ const svg = progress.shadowRoot?.querySelector('svg')
161
+ assert.exists(svg, 'should render SVG element')
162
+ assert.equal(svg?.getAttribute('viewBox'), '0 0 4800 4800', 'should have correct viewBox')
163
+ })
164
+
165
+ it('renders track and active track circles', async () => {
166
+ const track = progress.shadowRoot?.querySelector('.track')
167
+ const activeTrack = progress.shadowRoot?.querySelector('.active-track')
168
+
169
+ assert.exists(track, 'should render track circle')
170
+ assert.exists(activeTrack, 'should render active track circle')
171
+ assert.equal(track?.getAttribute('pathLength'), '100', 'track should have pathLength 100')
172
+ assert.equal(activeTrack?.getAttribute('pathLength'), '100', 'active track should have pathLength 100')
173
+ })
174
+
175
+ it('calculates correct stroke-dashoffset for progress value', async () => {
176
+ const activeTrack = progress.shadowRoot?.querySelector('.active-track')
177
+ const expectedOffset = (1 - progress.value / progress.max) * 100
178
+ assert.equal(
179
+ activeTrack?.getAttribute('stroke-dashoffset'),
180
+ String(expectedOffset),
181
+ 'should calculate correct dashoffset'
182
+ )
183
+ })
184
+
185
+ it('updates stroke-dashoffset when value changes', async () => {
186
+ progress.value = 75
187
+ await progress.updateComplete
188
+
189
+ const activeTrack = progress.shadowRoot?.querySelector('.active-track')
190
+ const expectedOffset = (1 - 75 / 100) * 100
191
+ assert.equal(
192
+ activeTrack?.getAttribute('stroke-dashoffset'),
193
+ String(expectedOffset),
194
+ 'should update dashoffset when value changes'
195
+ )
196
+ })
197
+ })
198
+
199
+ describe('Indeterminate State', () => {
200
+ let progress: CircularProgress
201
+
202
+ beforeEach(async () => {
203
+ progress = await indeterminateFixture()
204
+ })
205
+
206
+ it('renders spinner container for indeterminate progress', async () => {
207
+ const spinner = progress.shadowRoot?.querySelector('.spinner')
208
+ assert.exists(spinner, 'should render spinner element')
209
+ })
210
+
211
+ it('renders left and right containers', async () => {
212
+ const left = progress.shadowRoot?.querySelector('.left')
213
+ const right = progress.shadowRoot?.querySelector('.right')
214
+
215
+ assert.exists(left, 'should render left container')
216
+ assert.exists(right, 'should render right container')
217
+ })
218
+
219
+ it('renders circle elements for animation', async () => {
220
+ const circles = progress.shadowRoot?.querySelectorAll('.circle')
221
+ assert.equal(circles?.length, 2, 'should render 2 circle elements')
222
+ })
223
+
224
+ it('does not render SVG elements in indeterminate mode', async () => {
225
+ const svg = progress.shadowRoot?.querySelector('svg')
226
+ assert.isNull(svg, 'should not render SVG in indeterminate mode')
227
+ })
228
+ })
229
+
230
+ describe('Four Color Animation', () => {
231
+ let progress: CircularProgress
232
+
233
+ beforeEach(async () => {
234
+ progress = await fourColorFixture()
235
+ })
236
+
237
+ it('applies fourcolor attribute when fourColor is true', async () => {
238
+ assert.isTrue(progress.hasAttribute('fourcolor'), 'should have fourcolor attribute')
239
+ })
240
+
241
+ it('removes fourcolor attribute when fourColor is false', async () => {
242
+ progress.fourColor = false
243
+ await progress.updateComplete
244
+ assert.isFalse(progress.hasAttribute('fourcolor'), 'should not have fourcolor attribute')
245
+ })
246
+ })
247
+ })
248
+
249
+ describe('Accessibility', () => {
250
+ describe('ARIA Attributes', () => {
251
+ let progress: CircularProgress
252
+
253
+ beforeEach(async () => {
254
+ progress = await basicFixture()
255
+ })
256
+
257
+ it('has correct role attribute', () => {
258
+ assert.equal(progress.getAttribute('role'), 'progressbar', 'should have progressbar role')
259
+ })
260
+
261
+ it('sets aria-valuemin attribute', async () => {
262
+ progress.min = 10
263
+ await progress.updateComplete
264
+ assert.equal(progress.getAttribute('aria-valuemin'), '10', 'should set aria-valuemin')
265
+ })
266
+
267
+ it('sets aria-valuemax attribute', async () => {
268
+ progress.max = 200
269
+ await progress.updateComplete
270
+ assert.equal(progress.getAttribute('aria-valuemax'), '200', 'should set aria-valuemax')
271
+ })
272
+
273
+ it('sets aria-valuenow for determinate progress', async () => {
274
+ progress.value = 50
275
+ await progress.updateComplete
276
+ assert.equal(progress.getAttribute('aria-valuenow'), '50', 'should set aria-valuenow for determinate')
277
+ })
278
+
279
+ it('removes aria-valuenow for indeterminate progress', async () => {
280
+ progress.indeterminate = true
281
+ await progress.updateComplete
282
+ assert.isNull(progress.getAttribute('aria-valuenow'), 'should remove aria-valuenow for indeterminate')
283
+ })
284
+
285
+ it('updates aria attributes when switching between states', async () => {
286
+ // Start determinate
287
+ progress.value = 30
288
+ await progress.updateComplete
289
+ assert.equal(progress.getAttribute('aria-valuenow'), '30', 'should have aria-valuenow initially')
290
+
291
+ // Switch to indeterminate
292
+ progress.indeterminate = true
293
+ await progress.updateComplete
294
+ assert.isNull(progress.getAttribute('aria-valuenow'), 'should remove aria-valuenow when indeterminate')
295
+
296
+ // Switch back to determinate
297
+ progress.indeterminate = false
298
+ await progress.updateComplete
299
+ assert.equal(progress.getAttribute('aria-valuenow'), '30', 'should restore aria-valuenow when determinate')
300
+ })
301
+ })
302
+
303
+ describe('Accessibility Testing', () => {
304
+ it('should be accessible in basic state', async () => {
305
+ const progress = await accessibleBasicFixture()
306
+ await assert.isAccessible(progress)
307
+ })
308
+
309
+ it('should be accessible in determinate state', async () => {
310
+ const progress = await accessibleDeterminateFixture()
311
+ await assert.isAccessible(progress)
312
+ })
313
+
314
+ it('should be accessible in indeterminate state', async () => {
315
+ const progress = await accessibleIndeterminateFixture()
316
+ await assert.isAccessible(progress)
317
+ })
318
+
319
+ it('should be accessible with four colors', async () => {
320
+ const progress = await accessibleFourColorFixture()
321
+ await assert.isAccessible(progress)
322
+ })
323
+
324
+ it('should be accessible when disabled', async () => {
325
+ const progress = await accessibleDisabledFixture()
326
+ await assert.isAccessible(progress)
327
+ })
328
+ })
329
+ })
330
+
331
+ describe('Events', () => {
332
+ let progress: CircularProgress
333
+
334
+ beforeEach(async () => {
335
+ progress = await basicFixture()
336
+ })
337
+
338
+ it('dispatches ratiochange event when value changes', async () => {
339
+ let eventFired = false
340
+ progress.addEventListener('ratiochange', () => {
341
+ eventFired = true
342
+ })
343
+
344
+ progress.value = 50
345
+ await progress.updateComplete
346
+
347
+ assert.isTrue(eventFired, 'should dispatch ratiochange event')
348
+ })
349
+
350
+ it('dispatches ratiochange event when max changes', async () => {
351
+ let eventFired = false
352
+ progress.value = 50 // Set initial value
353
+ await progress.updateComplete
354
+
355
+ progress.addEventListener('ratiochange', () => {
356
+ eventFired = true
357
+ })
358
+
359
+ progress.max = 200
360
+ await progress.updateComplete
361
+
362
+ assert.isTrue(eventFired, 'should dispatch ratiochange event when max changes')
363
+ })
364
+
365
+ it('dispatches ratiochange event when min changes', async () => {
366
+ let eventFired = false
367
+ progress.value = 50 // Set initial value
368
+ await progress.updateComplete
369
+
370
+ progress.addEventListener('ratiochange', () => {
371
+ eventFired = true
372
+ })
373
+
374
+ progress.min = 10
375
+ await progress.updateComplete
376
+
377
+ assert.isTrue(eventFired, 'should dispatch ratiochange event when min changes')
378
+ })
379
+ })
380
+
381
+ describe('CSS Custom Properties Support', () => {
382
+ let progress: CircularProgress
383
+
384
+ beforeEach(async () => {
385
+ progress = await basicFixture()
386
+ })
387
+
388
+ it('allows size customization via CSS custom property', async () => {
389
+ progress.style.setProperty('--ui-circular-progress-size', '64px')
390
+ await progress.updateComplete
391
+
392
+ const computedStyle = getComputedStyle(progress)
393
+ assert.include(computedStyle.getPropertyValue('--_size'), '64px', 'should use custom size')
394
+ })
395
+
396
+ it('supports color customization', async () => {
397
+ progress.style.setProperty('--ui-circular-progress-active-indicator-color', 'red')
398
+ await progress.updateComplete
399
+
400
+ const computedStyle = getComputedStyle(progress)
401
+ assert.include(computedStyle.getPropertyValue('--_active-indicator-color'), 'red', 'should use custom color')
402
+ })
403
+ })
404
+
405
+ describe('Edge Cases', () => {
406
+ let progress: CircularProgress
407
+
408
+ beforeEach(async () => {
409
+ progress = await basicFixture()
410
+ })
411
+
412
+ it('handles NaN values gracefully', async () => {
413
+ progress.value = NaN
414
+ await progress.updateComplete
415
+ assert.equal(progress.value, 0, 'should handle NaN value gracefully')
416
+ })
417
+
418
+ it('handles negative step values', async () => {
419
+ progress.step = -5
420
+ progress.value = 10
421
+ await progress.updateComplete
422
+ assert.equal(progress.value, 10, 'should handle negative step values')
423
+ })
424
+
425
+ it('handles very small step values', async () => {
426
+ progress.step = 0.1
427
+ progress.value = 0.15
428
+ await progress.updateComplete
429
+ assert.equal(progress.value, 0.1, 'should handle small step values correctly')
430
+ })
431
+
432
+ it('maintains correct ratio when min is not zero', async () => {
433
+ progress.min = 20
434
+ progress.max = 80
435
+ progress.value = 50
436
+ await progress.updateComplete
437
+
438
+ const expectedRatio = ((50 - 20) / (80 - 20)) * 100
439
+ assert.equal(progress.ratio, expectedRatio, 'should calculate ratio correctly with non-zero min')
440
+ })
441
+ })
442
+
443
+ describe('Disabled State', () => {
444
+ let progress: CircularProgress
445
+
446
+ beforeEach(async () => {
447
+ progress = await disabledFixture()
448
+ })
449
+
450
+ it('reflects disabled attribute', () => {
451
+ assert.isTrue(progress.hasAttribute('disabled'), 'should have disabled attribute')
452
+ assert.isTrue(progress.disabled, 'disabled property should be true')
453
+ })
454
+
455
+ it('can be enabled programmatically', async () => {
456
+ progress.disabled = false
457
+ await progress.updateComplete
458
+
459
+ assert.isFalse(progress.hasAttribute('disabled'), 'should not have disabled attribute')
460
+ assert.isFalse(progress.disabled, 'disabled property should be false')
461
+ })
462
+ })
463
+
464
+ describe('Performance Considerations', () => {
465
+ let progress: CircularProgress
466
+
467
+ beforeEach(async () => {
468
+ progress = await basicFixture()
469
+ })
470
+
471
+ it('uses contain: strict for performance', () => {
472
+ const computedStyle = getComputedStyle(progress)
473
+ assert.equal(computedStyle.contain, 'strict', 'should use contain: strict')
474
+ })
475
+
476
+ it('uses content-visibility: auto', () => {
477
+ const computedStyle = getComputedStyle(progress)
478
+ assert.equal(computedStyle.contentVisibility, 'auto', 'should use content-visibility: auto')
479
+ })
480
+ })
481
+ })