Closed desbest closed 3 years ago
It's likely because you don't have the math mode on parens-division
, and so the first shorthand declaration essentially isn't valid. A good way to troubleshoot this is to look in devtools to see if that property is rendering.
But I'm not trying to use maths so I don't need to use parens-division
. I am instead using CSS in shorthand to mean background-position/background-size
and X Y/width height
I am instead using CSS in shorthand to mean background-position/background-size
@desbest Right. In order to do that, you need to make sure that 0/100%
isn't interpreted as division, which it is in Less 1.x-3.x by default. So you can either set the math mode to parens-division
(in which division-like expressions are not calculated unless in parentheses), or use Less 4.0, which has that mode on by default.
It works now. I think I was using an old version of less by accident. Thank you for your help.
If I have a
background:
property like thisThe background won't load for elements with the
listingback
class. Please fix this.