An API instead of getComputedStyle which is able to get spedified value NOT culuculated value.
npm install get-specified-style.jsAssume that viewport width is 1024px.
``html`hoge
`css`
div {
width: auto;
}
`js
var element = document.querySelector('div');
var spedifiedStyle = getSpecifiedStyle(element);
var computedStyle = getComputedStyle(element);
console.log(spedifiedStyle.getPropertyValue('width'));//auto
console.log(computedStyle.getPropertyValue('width'));//1024px
`
sh
bower install get-specified-style.js
`
or
`sh
yarn add get-specified-style.js
`$3
`html