CSS validator error when using "fuchsia"

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bob Cox

    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.

  • Harlan Messinger

    #2
    Re: CSS validator error when using "fuchsia&q uot;

    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.

    Comment

    • Spartanicus

      #3
      Re: CSS validator error when using "fuchsia&q uot;

      Bob Cox <news@bobcox.co mwrote:
      Invalid number : color fuchsia is not a color value : fuchsia
      W3C CSS checker tool bug.

      --
      Spartanicus

      Comment

      • Bob Cox

        #4
        Re: CSS validator error when using &quot;fuchsia&q uot;

        In article <6qh2p2p6pb20oi 0v20uc4j7rjkusd eibus@4ax.com>,
        Spartanicus <invalid@invali d.invalidwrote:
        Bob Cox <news@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.

        Comment

        • Jukka K. Korpela

          #5
          Re: CSS validator error when using &quot;fuchsia&q uot;

          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


          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")


          Comment

          • Bob Cox

            #6
            Re: CSS validator error when using &quot;fuchsia&q uot;

            In article <mfekh.9632$g_1 .4247@reader1.n ews.saunalahti. fi>,
            Jukka K. Korpela <jkorpela@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

            >
            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.

            Comment

            Working...