UNPKG

html-document

Version:

Partial implementation of document, HTMLElement for node

22 lines (19 loc) 558 B
import AbstractCSSStyleDeclaration from '../Abstract/AbstractCSSStyleDeclaration'; /** * @see https://developer.mozilla.org/en/docs/Web/API/CSSStyleDeclaration * @class CSSStyleDeclaration * @param {HTMLElement} element */ export default class CSSStyleDeclaration extends AbstractCSSStyleDeclaration { /** * @param {HTMLElement} element */ constructor(element) { super(); this._element = element; } _stringify() { super._stringify(); this._element._setAttribute('style', this.cssText); } }