tailwindcss/integrations
Robin Malfait 73628f69f3
Fix Safari devtools issues because of nested @supports at-rules without normal rule (#19069)
This PR fixes a weird Safari rendering bug in the devtools. This seems
to be happening when using `@supports`, especially nested `@supports`
at-rules.

The issue is that our color-mix fallback generates declarations directly
in `@supports` at-rules which causes the weird rendering bug in Safari.

Adding this intermediate `&` rule seems to fix the issue.

This is a workaround for a browser bug, but the additional 3 characters
shouldn't be the end of the world.

## Test plan

1. Updated the tests with the new `& { }` intermediate rule
2. Other tests still pass as expected

| Before | After |
| --- | --- |
| <img width="450" height="549" alt="image"
src="https://github.com/user-attachments/assets/4b51fb93-8073-4414-8139-dec75e6bc086"
/> | <img width="448" height="548" alt="image"
src="https://github.com/user-attachments/assets/1016af67-c1eb-43dc-9554-158e7e2264c4"
/> |

Fixes: #19065

[ci-all]
2025-10-06 20:04:40 +02:00
..
cli Fix Safari devtools issues because of nested @supports at-rules without normal rule (#19069) 2025-10-06 20:04:40 +02:00
oxide chore: remove redundant words (#18853) 2025-09-02 08:13:15 +00:00
postcss Re-throw errors from PostCSS nodes (#18373) 2025-09-18 12:03:19 -04:00
upgrade Prepare v4.1.14 release (#19037) 2025-10-01 11:48:02 -04:00
vite Fix failing integration tests (#19068) 2025-10-06 15:46:25 +00:00
webpack Fix slow incremental builds (especially on Windows) (#17511) 2025-04-03 17:13:15 +02:00
package.json Update dedent 1.6.0 → 1.7.0 (minor) (#19010) 2025-09-26 14:42:26 -04:00
utils.ts Download platform specific package if optionalDependencies are skipped (#17929) 2025-05-09 14:55:02 +02:00
vitest.config.ts Improve integration tests (stability + performance) (#15125) 2024-12-12 13:48:56 +01:00