Copy link to clipboard
Copied
I am using 21.6 Build 15711 and want to start using var() but when i add:
AI said to update my CSS Validator but am not finding a way to do that.
Mike
Copy link to clipboard
Copied
Try the online validation service below.
https://jigsaw.w3.org/css-validator/
This snippet validates fine.
:root {
--aa-blue: #0078D2;
--aa-digital-blue: #E1F0FA;
--aa-light-blue: #4DB4FA;
--aa-dark-blue: #00467F;
}
For more on custom variable properties, see the MDN article below.
https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Cascading_variables/Using_custom_properties
Hope that helps.
Copy link to clipboard
Copied
Thanks for the references, two great sources I use often.
Copy link to clipboard
Copied
DW simply doesn't understand CSS Variables. I haven't tested them in the most recent version of the program, but everything before it will throw errors when it comes across the "--" of CSS Variables.
This has been an issue for many years.
The online validator is necessary if you use CSS Variables and want to make sure you have clean code.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more