From 2396cf18666eb8ed29373d77dc78bbe55863485a Mon Sep 17 00:00:00 2001 From: Max Bo Date: Sun, 8 Dec 2024 21:18:38 +1100 Subject: [PATCH] Remove stylsheet adoption --- bibhtml/deno.json | 2 +- bibhtml/index.html | 6 +++--- bibhtml/mod.ts | 4 ---- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/bibhtml/deno.json b/bibhtml/deno.json index 6209030..4833827 100644 --- a/bibhtml/deno.json +++ b/bibhtml/deno.json @@ -1,6 +1,6 @@ { "name": "@celine/bibhtml", - "version": "1.1.0", + "version": "1.2.0", "license": "MIT", "exports": "./mod.ts" } diff --git a/bibhtml/index.html b/bibhtml/index.html index 0cdf153..822881c 100644 --- a/bibhtml/index.html +++ b/bibhtml/index.html @@ -100,7 +100,7 @@

@celine/bibhtml

JSR jsr.io/@celine/bibhtml + /docs Version - 1.0.0β, + 1.0.0,

- This expands to reference [#?], and is backed by @citation-js/plugin-bibtex. + This expands to reference [#?], and is backed by @citation-js/plugin-bibtex.

Unstructured text

diff --git a/bibhtml/mod.ts b/bibhtml/mod.ts index 4334bc9..382f996 100644 --- a/bibhtml/mod.ts +++ b/bibhtml/mod.ts @@ -99,8 +99,6 @@ export class BibhtmlCite extends HTMLElement { // build a shadow root if it doesn't exist if (!this.shadowRoot) { this.attachShadow({ mode: 'open' }); - const documentSheets = [...document.styleSheets]; - this.shadowRoot!.adoptedStyleSheets = documentSheets; } // clone light DOM into shadow DOM @@ -133,8 +131,6 @@ export class BibhtmlReference extends HTMLElement { constructor() { super(); this.attachShadow({ mode: 'open' }); - const documentSheets = [...document.styleSheets]; - this.shadowRoot!.adoptedStyleSheets = documentSheets; this._citation = null; this._notifiedBibliography = false;