LESS CSS font shorthand declaration

Hello Experts,

Can anyone tell me what is wrong to this LESS deceleration?
The first line of code is the LESS deceleration. The second is how its being complied.

@fontNormal: normal small-caps 600 100%/1.3em sans-serif;

Open in new window



 font: normal small-caps 600 76.92307692307692% sans-serif;

Open in new window

RefaelAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Julian HansenCommented:
Can anyone tell me what is wrong to this LESS deceleration?
What makes it wrong? What were you expecting.
100/1.3 is the answer it gives.
1em = 100% therefore 100%/130% = 76.92307%
RefaelAuthor Commented:
This is a CSS shorthand font deceleration . The parameters set above are as shown below:

font-style - "normal"
font-variant - "small-caps"
font-weight - "600"
font-size - "100%"
line-height - "1.3em"
font-family - "sans-serif"

What you wrote below is wrong. This is not a font size division. These are two different parameters :

font-size - "100%"
line-height - "1.3em"
Julian HansenCommented:
What you wrote below is wrong.

Um, no what I wrote was right - that is how SASS interprets that line.
http://sass-lang.com/documentation/file.SASS_REFERENCE.html#division-and-slash
If you want to do a line-height / font-size you need to use a mixin

http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#mixins
https://css-tricks.com/snippets/css/less-mixin-for-rem-font-sizing/

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
RefaelAuthor Commented:
Hi julianH,
I had the feeling it does not work the way I thought it should. I will read the documentations you sent. Thanks!
Julian HansenCommented:
You are welcome - good luck with it.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.