Skip to content

Commit

Permalink
Merge pull request #157 from oddbird/add-host-caveats-to-caveats-section
Browse files Browse the repository at this point in the history
add :host caveats to caveats section
  • Loading branch information
jgerigmeyer authored Nov 30, 2023
2 parents 3018fd0 + 46d4175 commit 11eedfb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,13 @@ some caveats which will need accommodations:
`shadowRoot`). You'll need to manually inject the styles yourself with
`injectStyles(myShadow)`.

- As a stylesheet is injected into the main document, if your host element is
a popover, styling with `:host` gets tricky beause `:host` styles always
take lower precedence than the main document styles. This is a limitation
of CSS and there's not a reasonable workaround. The best workaround for
now is to add `!important` to conflicting properties in your `:host` rule.
See [#147](https://github.com/oddbird/popover-polyfill/issues/147) for more.

## Contributing

Visit our [contribution guidelines](https://github.com/oddbird/popover-polyfill/blob/main/CONTRIBUTING.md).

0 comments on commit 11eedfb

Please sign in to comment.