Bug: Validator doesn't recognize CSS variables in "border"

For technical support and bug reports for all editions of CSS HTML Validator, including htmlval for Linux and Mac.
Post Reply
TomHTML
Rank III - Intermediate
Posts: 74
Joined: Sun Feb 04, 2018 10:19 am

Bug: Validator doesn't recognize CSS variables in "border"

Post by TomHTML »

The validator doesn't recognize CSS variables as 3rd argument in "border" (it complains "The <line-width> value has already been specified earlier in the value." and "A CSS error was found that may cause ambiguities and inconsistent presentations of the page":

Code: Select all

<style>
:root {
    --anchor-underline-color: black;
}
.one {
	border: 1px solid var(--anchor-underline-color);
}
</style>
User avatar
Albert Wiersch
Site Admin
Posts: 3754
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: Bug: Validator doesn't recognize CSS variables in "border"

Post by Albert Wiersch »

Thank you for this report.

This has also been fixed in the next update and those incorrect messages should no longer be generated.
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial
TomHTML
Rank III - Intermediate
Posts: 74
Joined: Sun Feb 04, 2018 10:19 am

Re: Bug: Validator doesn't recognize CSS variables in "border"

Post by TomHTML »

Many thanks!
Post Reply