Skip to content

Commit

Permalink
Revert "Fix styling docs"
Browse files Browse the repository at this point in the history
This reverts commit 3d7a79c.
  • Loading branch information
barvian committed Dec 25, 2024
1 parent 3d7a79c commit ae87e41
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion site/src/pages/[...framework]/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,10 @@ to apply `::part` styles only to browsers that support [Declarative Shadow DOM](

```html
<script>
if (HTMLTemplateElement.prototype.hasOwnProperty('shadowRootMode'))
if (
HTMLTemplateElement.prototype.hasOwnProperty('shadowRootMode') ||
HTMLTemplateElement.prototype.hasOwnProperty('shadowRoot') // old Chrome/Edge
)
document.documentElement.setAttribute('data-supports-dsd', '')
</script>
```
Expand Down

0 comments on commit ae87e41

Please sign in to comment.