We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70d42b9 commit a710048Copy full SHA for a710048
1 file changed
src/theming/__integ__/tokens.test.ts
@@ -15,7 +15,9 @@ class ColorTokensMosaikPage extends BasePageObject {
15
for (const [prop, value] of (document.body as any).computedStyleMap()) {
16
// Custom Property
17
if (prop.startsWith('--')) {
18
- result[prop] = value[0][0].trim();
+ // Try legacy nested array structure first (older Chrome), fallback to toString()
19
+ const legacyValue = value[0]?.[0];
20
+ result[prop] = typeof legacyValue === 'string' ? legacyValue.trim() : value.toString().trim();
21
}
22
23
return result;
0 commit comments