Skip to content

Commit f2fddfb

Browse files
document CSSStyleSheet support in DOM shim
1 parent 4ca6cd8 commit f2fddfb

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docs/pages/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ $ npm install wc-compiler --save-dev
2020
- `[get|set|has]Attribute`
2121
1. `<template>` / `DocumentFragment`
2222
1. `addEventListener` (as a no-op)
23+
1. Supports `CSSStyleSheet` (all methods act as no-ops)
2324
1. Recursive rendering of nested custom elements
2425
1. Metadata and runtime hints to support various progressive hydration and lazy loading strategies
2526

src/dom-shim.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ function noop() { }
22

33
// https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/CSSStyleSheet
44
class CSSStyleSheet {
5-
constructor() { }
5+
insertRule() { }
6+
deleteRule() { }
67
replace() { }
78
replaceSync() { }
89
}

0 commit comments

Comments
 (0)