-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
const sheet = new CSSStyleSheet();
sheet.replaceSync(`
h1 {
color: blue;
}
`);
document.adoptedStyleSheets = [sheet];
document.body.innerHTML = `
<style>
h1 {
color: red;
}
</style>
<h1>title</h1>
`;construct stylesheet overrides <style>.
but sometimes I don't want to override the style of <style> <link> in the code, I just want to construct stylesheet to work like a browser stylesheet. // case: <gem-frame>
is there a way to determine the priority of constructing stylesheet?
Metadata
Metadata
Assignees
Labels
No labels