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

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