Package Exports
- hast-util-is-css-style
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (hast-util-is-css-style) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
hast-util-is-css-style
Check if an element is a CSS <style> element.
Install
npm install hast-util-is-css-styleUsage
var h = require('hastscript');
var ok = require('hast-util-is-css-style');
ok(h('style')); //=> true
ok(h('style', {type: ' TEXT/CSS '})); //=> true
ok(h('style', {type: 'text/foo'})); //=> falseAPI
isCSSStyle(node)
Return true if node is a <style> element that has no
type, an empty type, or 'text/css' as its type.