Unfortunately, the statement is no longer mentioned modin the latest specifications .
The calc () function allows you to use mathematical expressions with the addition of (+), subtraction (-), multiplication (*) and division (/) as component values.
You can resort to using javascript to achieve this behavior.
var el = document.getElementById('element-id');
el.style.width = (100 % 5) + '%';
source
share