Linted files

pull/7259/head
Mathias Picker 5 years ago
parent 37dfcad363
commit 5def8c72f9

@ -156,7 +156,7 @@ export function get_root_for_style(node: Node): ShadowRoot | Document {
export function append_stylesheet(node: ShadowRoot | Document, style: HTMLStyleElement): CSSStyleSheet {
append((node as Document).head || node, style);
return style.sheet
return style.sheet;
}
export function append_hydration(target: NodeEx, node: NodeEx) {

@ -42,7 +42,7 @@ export function create_rule(node: Element & ElementCSSInlineStyle, a: number, b:
const { style_element, rules } = managed_styles.get(doc) || create_style_information(doc);
if (!rules[name]) {
const stylesheet = append_stylesheet(doc, style_element)
const stylesheet = append_stylesheet(doc, style_element);
rules[name] = true;
stylesheet.insertRule(`@keyframes ${name} ${rule}`, stylesheet.cssRules.length);
}
@ -74,7 +74,7 @@ export function clear_rules() {
if (active) return;
managed_styles.forEach(info => {
const { style_element } = info;
detach(style_element)
detach(style_element);
info.rules = {};
});
managed_styles.clear();

@ -5,10 +5,10 @@ export default {
async test({ raf, assert, component, window }) {
component.visible = true;
raf.tick(100)
raf.tick(100);
component.visible = false;
raf.tick(200)
raf.tick(60)
raf.tick(200);
raf.tick(60);
assert.htmlEqual(
window.document.head.innerHTML,

Loading…
Cancel
Save