Support web components/shadow DOM.

Add :host to all uses of :root
This commit is contained in:
Robert Coup 2024-12-02 13:53:36 +00:00
parent 6dc6489e69
commit 02c9fb69da
No known key found for this signature in database
6 changed files with 14 additions and 7 deletions

View file

@ -34,7 +34,8 @@
// 3. Use a 4-space tab width in all browsers (opinionated)
// 4. Remove the grey highlight on links in iOS (opinionated)
// 5. Prevent adjustments of font size after orientation changes in iOS
:where(:root) {
:where(:root),
:where(:host) {
-webkit-tap-highlight-color: transparent; // 4
-webkit-text-size-adjust: 100%; // 5
text-size-adjust: 100%; // 5