import { elementDefine } from '../index';
import { SwcHTMLCanvasElementBase } from '../elements/base/SwcHTMLCanvasElementBase';

@elementDefine({ name: 'swc-when-canvas', extends: 'canvas' })
export class SwcWhenCanvas extends SwcHTMLCanvasElementBase {
  connectedCallback() { if (this.style.display !== 'contents') { this.style.display = 'none'; } }
}
