UNPKG

normalize-unistyle

Version:
42 lines (30 loc) 1.98 kB
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var _BLOCK_ELEMENTS$INLINE_BLOCK_ELEMENTS$progress$HIDDEN$audioNotControls; function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } var BLOCK_ELEMENTS = ['article', 'aside', 'details', 'figcaption', 'figure', 'footer', 'header', 'hgroup', 'main', 'menu', 'nav', 'section', 'summary']; var INLINE_BLOCK_ELEMENTS = ['audio', 'canvas', 'progress', 'video']; var HIDDEN = ['audio:not([controls])', '[hidden]', 'template']; exports['default'] = (_BLOCK_ELEMENTS$INLINE_BLOCK_ELEMENTS$progress$HIDDEN$audioNotControls = {}, _defineProperty(_BLOCK_ELEMENTS$INLINE_BLOCK_ELEMENTS$progress$HIDDEN$audioNotControls, BLOCK_ELEMENTS, { display: 'block' }), _defineProperty(_BLOCK_ELEMENTS$INLINE_BLOCK_ELEMENTS$progress$HIDDEN$audioNotControls, INLINE_BLOCK_ELEMENTS, { display: 'inline-block' }), _defineProperty(_BLOCK_ELEMENTS$INLINE_BLOCK_ELEMENTS$progress$HIDDEN$audioNotControls, 'progress', { verticalAlign: 'baseline' }), _defineProperty(_BLOCK_ELEMENTS$INLINE_BLOCK_ELEMENTS$progress$HIDDEN$audioNotControls, HIDDEN, { display: 'none' }), _defineProperty(_BLOCK_ELEMENTS$INLINE_BLOCK_ELEMENTS$progress$HIDDEN$audioNotControls, 'audio:not([controls])', { height: 0 }), _BLOCK_ELEMENTS$INLINE_BLOCK_ELEMENTS$progress$HIDDEN$audioNotControls); module.exports = exports['default']; /* Correct `block` display not defined for any HTML5 element. */ /* Correct `inline-block` display not defined in IE 8/9. */ /* Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera. */ /** * Prevent modern browsers from displaying `audio` without controls. * Address `[hidden]` styling not present in IE 8/9/10. * Hide the `template` element in IE 8/9/10/11, Safari, and Firefox < 22. */ /* Remove excess height in iOS 5 devices. */