Em measurement in IE11 does not display correctly in specifying font-size in element :before, how to fix, except for job in px?

Units em in IE11 does not display correctly in specifying font-size in element :before, how to fix, in addition to specifying a fixed size in px?
They are much smaller.
March 23rd 20 at 19:27
1 answer
March 23rd 20 at 19:29
Solution
I honestly don't know what school IE.
But in any case, IE11 now, to once again strain.
Make for example so:

.element::before {
 - this-font-size: 2em;
 font-size: 36px; // For ass
 font-size: var(--this-font-size);// For normal browsers
}


IE doesn't understand variables, and therefore uses the definition in pixels.

PS
You can not define a variable, for brevity, and use the default setting:
.element::before {
 font-size: 36px; // For ass
 font-size: var(--fz, 2em);// For normal browsers
}

Find more questions by tags Internet ExplorerCSS