Skip to content

Commit

Permalink
fix(blockquote-base-style-helpers): add control support nativeShadow
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarmarina committed Sep 13, 2022
1 parent ff1ef7e commit dbe0a29
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ import { supportsAdoptingStyleSheets /* adoptStyles */ } from 'lit';
import '@blockquote/polymer/lib/elements/custom-style.js';

export { supportsAdoptingStyleSheets /* adoptStyles */ } from 'lit';

export const supportCustomStyleInterface =
window.ShadyCSS && /* c8 ignore next */ window.ShadyCSS.CustomStyleInterface;
/* c8 ignore next */
window.ShadyCSS && window.ShadyCSS.CustomStyleInterface && !window.ShadyCSS.nativeShadow;

const renderDocumentRoot = supportsAdoptingStyleSheets
? document
: /* c8 ignore next */ document.head;
const renderDocumentRoot =
/* c8 ignore next */
supportsAdoptingStyleSheets ? document : document.head;

export const documentAdoptStyles = (renderRoot, styles) => {
if (supportsAdoptingStyleSheets) {
Expand Down

0 comments on commit dbe0a29

Please sign in to comment.