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

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