473,698 Members | 2,192 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CSS validator error when using "fuchsia"

I am getting the error:

Invalid number : color fuchsia is not a color value : fuchsia

from the W3C CSS validator, yet I am sure the same CSS validated ok
previously.

The offending CSS is:

a:active {
color: fuchsia;
text-decoration: underline;
background: inherit;
}

If I substitute, say, 'red' for 'fuchsia' then there is no error and if
I use rgb values it is also ok, but I somehow feel sure that this used
not to fail validation.

Am I doing something blindingly obviously wrong?

TIA

--
Bob Cox. Stoke Gifford, near Bristol, UK.
http://pippin.co.uk/
Dec 26 '06 #1
5 2169
Bob Cox wrote:
I am getting the error:

Invalid number : color fuchsia is not a color value : fuchsia

from the W3C CSS validator, yet I am sure the same CSS validated ok
previously.

The offending CSS is:

a:active {
color: fuchsia;
text-decoration: underline;
background: inherit;
}
Is this a copy-and-paste from your CSS file? I'm just thinking you could
have easily mistyped "fuchsia" and it would be easy to overlook. Fuchsia
is definitely one of the defined color names.
Dec 26 '06 #2
Bob Cox <ne**@bobcox.co mwrote:
Invalid number : color fuchsia is not a color value : fuchsia
W3C CSS checker tool bug.

--
Spartanicus
Dec 26 '06 #3
In article <6q************ *************** *****@4ax.com>,
Spartanicus <in*****@invali d.invalidwrote:
Bob Cox <ne**@bobcox.co mwrote:
> Invalid number : color fuchsia is not a color value : fuchsia

W3C CSS checker tool bug.
Thanks. I have now discovered that the CSS checker is defaulting to CSS
version 2.1 - there are no errors if this setting is changed to CSS
version 2 or to CSS version 3.

It only objects to "fuchsia" when checking as CSS version 2.1.

So I guess you are right ;-)

--
Bob Cox. Stoke Gifford, near Bristol, UK.
http://pippin.co.uk/
Dec 26 '06 #4
Scripsit Bob Cox:
I am getting the error:

Invalid number : color fuchsia is not a color value : fuchsia

from the W3C CSS validator, yet I am sure the same CSS validated ok
previously.
It's a bug in the "W3C CSS Validator's" definition of the "CSS 2.1 profile",
as you seem to have found out. What makes it nasty is that they made that
"profile" the default one.

Generally, the best forums for discussing the checking tools are the W3C
mailing lists for them. Regarding this specific bug, see
http://lists.w3.org/Archives/Public/...6Dec/0051.html

As I mention there, the way to circumvent the bug is, of course, to use #f0f
instead of the color name.

Naturally, you can ignore the error message when you have checked that it is
wrong. There is no problem with the color name fuchsia in _browsers_ (or in
specifications) , just in the "W3C CSS Validator". You could also consider
using the CSS 2.0 profile.
a:active {
color: fuchsia;
text-decoration: underline;
background: inherit;
}

If I substitute, say, 'red' for 'fuchsia' then there is no error and
if I use rgb values it is also ok, but I somehow feel sure that this
used not to fail validation.

Am I doing something blindingly obviously wrong?
You are setting background: inherit, which 1) isn't supported by IE even in
IE 7 and 2) does not handle the risk of having background and content color
too similar - the color you inherit may well come from a user stylesheet.
Besides, you are setting text-decoration to inderline, which probably means
that you have removed underlining from links in their normal states.
Moreover, using fuchsia for active links is misleading, since fuchsia
resembles the typical color of visited links in non-active state.

These points have nothing to do with the bug under discussion, but you asked
whether you are "doing something blindingly obviously wrong". :-)

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Dec 26 '06 #5
In article <mf************ *****@reader1.n ews.saunalahti. fi>,
Jukka K. Korpela <jk******@cs.tu t.fiwrote:
Scripsit Bob Cox:
>I am getting the error:

Invalid number : color fuchsia is not a color value : fuchsia

from the W3C CSS validator, yet I am sure the same CSS validated ok
previously.

It's a bug in the "W3C CSS Validator's" definition of the "CSS 2.1 profile",
as you seem to have found out. What makes it nasty is that they made that
"profile" the default one.

Generally, the best forums for discussing the checking tools are the W3C
mailing lists for them. Regarding this specific bug, see
http://lists.w3.org/Archives/Public/...6Dec/0051.html

As I mention there, the way to circumvent the bug is, of course, to use #f0f
instead of the color name.

Naturally, you can ignore the error message when you have checked that it is
wrong. There is no problem with the color name fuchsia in _browsers_ (or in
specifications) , just in the "W3C CSS Validator". You could also consider
using the CSS 2.0 profile.
>a:active {
color: fuchsia;
text-decoration: underline;
background: inherit;
}

If I substitute, say, 'red' for 'fuchsia' then there is no error and
if I use rgb values it is also ok, but I somehow feel sure that this
used not to fail validation.

Am I doing something blindingly obviously wrong?

You are setting background: inherit, which 1) isn't supported by IE even in
IE 7 and 2) does not handle the risk of having background and content color
too similar - the color you inherit may well come from a user stylesheet.
Besides, you are setting text-decoration to inderline, which probably means
that you have removed underlining from links in their normal states.
Moreover, using fuchsia for active links is misleading, since fuchsia
resembles the typical color of visited links in non-active state.

These points have nothing to do with the bug under discussion, but you asked
whether you are "doing something blindingly obviously wrong". :-)
Thank you very much indeed for the comprehensive reply and also the
additional comments regarding "inherit". Food for thought, certainly,
and much appreciated.

--
Bob Cox. Stoke Gifford, near Bristol, UK.
http://pippin.co.uk/
Dec 26 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
17695
by: johnsuth | last post by:
I want to produce a trivial demonstration of dynamic modification. I thought that pressing a button might change its color. I studied O'Reillys books and successfully created the button with a fancy style, but the onclick fails to do anything no matter what permutation of parameters I try. <input type=button style=background-color:yellow;color:blue;font-family:Arial;font-style:italic;font-weight:bold name="xyz" value="CHANGE COLOUR"...
0
9157
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8861
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7723
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6518
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4366
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3045
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2328
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.