Y
Y
Yevhenii K2018-10-25 16:26:02
css
Yevhenii K, 2018-10-25 16:26:02

Where does the value for the font-family property come from in firefox?

The method $('.foundation-mq').css('font-family')returns the wrong value of the given class, instead
"small=0em&medium=48em&large=64em&xlarge=75em"
returns

"serif, \"small=0em&medium=48em&large=64em&xlarge=75em\""

Because of this, the work of the plugins of the Foundation framework breaks.
The screenshot shows that the name of the point is smallincorrect.
5bd1e7d90a841596457672.png
The problem appears on the PC version of Firefox. If you look at the "Calculated" tab for this class, then there is just a value with serif, but I don't use it anywhere.
5bd1c443a26f9806509797.png
Where does serif come from and how to fix the problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Y
Yevhenii K, 2018-12-13
@AFI19

Problem solved, there was a bug in firefox. Reinstalling helped.

S
sanan :o, 2018-10-25
@sanantech

if you yourself define it somewhere, then try adding the !important directive there and then try again in jquery to call the value. Will you get back what you want?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question