html-styles
Default HTML styles as defined by W3C specification
Last updated 7 years ago by marionebl .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install html-styles 
SYNC missed versions from official npm registry.

Default HTML styles as defined by W3C specification

html-styles

npm install html-styles

Usage

const defaultStyles = require('html-styles');
const applicable = styles.filter(({selectorText}) => document.body.matches(selectorText));

// [
//   { selectorText: "html, body", type: "CSSStyleRule", style: {…}},
//   { selectorText: "address, blockquote, center, div, figure, figcaption, footer, form, header, hr,\nlegend, listing, main, p, plaintext, pre, summary, xmp, article, aside, h1, h2,\nh3, h4, h5, h6, hgroup, nav, section, table, caption, colgroup, col, thead,\ntbody, tfoot, tr, td, th, dir, dd, dl, dt, ol, ul, li, [dir=ltr i],\n[dir=rtl i], [dir=auto i], *|*", type: "CSSStyleRule", style: {…} }
// ]

Scrapeing

yarn install
yarn scrape

License

html-styles is released under the MIT license.

Current Tags

  • 1.0.0                                ...           latest (7 years ago)

1 Versions

  • 1.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Total 1
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (8)
Dependents (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE