UNPKG

nehan

Version:

Html layout engine for paged-media written in Typescript

15 lines 373 B
import { Selector, } from "./public-api"; export class TypeSelector extends Selector { constructor(tag_name) { super(); this.tagName = tag_name; this.specificity.c = 1; } toString() { return this.tagName; } test(element) { return this.tagName === element.tagName; } } //# sourceMappingURL=type-selector.js.map