In chrome, it is ok to use font: initial !important;
. But in IE(9), it's not getting inital value.
How can I solve this?
The CSS3 initial
keyword isn't supported in any version of IE.
@Adrift is entirely correct that IE does not currently (IE11) support initial
. But to answer the question "How can I solve this?"...
font-style: normal;
font-variant: normal;
font-weight: normal;
font-stretch: normal;
font-size: medium;
line-height: normal;
font-family: serif; /* depends on user agent */
I just came accross this bug for line-height and min-height.
On IE, replace "initial" by "auto" or "inherit". Eg :
/*IE*/
line-height: inherit !important;
/* Rest of the world */
line-height: initial !important;
/*IE*/
min-height: auto !important;
/* Rest of the world */
min-height: initial !important;
Microsoft unfortunately doesn't accept font-size: initial
.
The actual "initial" value specified in the docs is font-size: medium
.
Microsoft doc: https://msdn.microsoft.com/en-us/library/ms530759(v=vs.85).aspx
Mozilla doc: https://developer.mozilla.org/en-US/docs/Web/CSS/font-size
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With