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

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