We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
options
1 parent 06c3b09 commit 5861957Copy full SHA for 5861957
src/Generator.ts
@@ -1,11 +1,14 @@
1
type Combinator = '>' | '~' | '+';
2
3
+interface Options {
4
+}
5
+
6
/**
7
* Generate an HTML document from CSS.
8
* @param css The style sheet.
9
* @returns An HTML body element containing the generated DOM.
10
*/
-export function cssToHtml(css: CSSRuleList | string): HTMLBodyElement {
11
+export function cssToHtml(css: CSSRuleList | string, options: Options = {}): HTMLBodyElement {
12
const output = document.createElement('body');
13
let styleRules: CSSRuleList | undefined;
14
// Parse the CSS string into a CSSOM.
0 commit comments