Skip to content

Commit

Permalink
document CSSStyleSheet support in DOM shim
Browse files Browse the repository at this point in the history
  • Loading branch information
thescientist13 committed Apr 12, 2024
1 parent 4ca6cd8 commit f2fddfb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/pages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ $ npm install wc-compiler --save-dev
- `[get|set|has]Attribute`
1. `<template>` / `DocumentFragment`
1. `addEventListener` (as a no-op)
1. Supports `CSSStyleSheet` (all methods act as no-ops)
1. Recursive rendering of nested custom elements
1. Metadata and runtime hints to support various progressive hydration and lazy loading strategies

Expand Down
3 changes: 2 additions & 1 deletion src/dom-shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ function noop() { }

// https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/CSSStyleSheet
class CSSStyleSheet {
constructor() { }
insertRule() { }
deleteRule() { }
replace() { }
replaceSync() { }
}
Expand Down

0 comments on commit f2fddfb

Please sign in to comment.