Relative Content

Tag Archive for cssvisual-studio-code

VS Code not listing custom CSS properties correctly when using var() more than once

A very odd problem. In VS Code I have 2 .css files one with just a :root{} section that has 3 custom properties in it. In the other file I have a reference to 2 elements with the background-color set. When I comment one element out, I can see all 3 of the custom properties in the list of suggestions, but as soon as I uncomment the 2nd element I can only see 1 property in the list of suggestions. code below… it seems to be related to using the var() function … rather than to the elements. If I only have 1 element, say the #header, then add a second line, say color: var(--???); I get the same behavior. I have rebooted, restarted, made a new project, etc. There are no extensions running and only one that is installed is LiveServer (but disabled). Version info …