JSFiddle - React, Tailwind, and code Playground

JavaScript

var el = document.createElement('div'), width;
el.style.width = '-moz-calc(3px+3px)';
width = document.defaultView.getComputedStyle(el,null).getPropertyValue('width');
console.log(width);