W3C home > Mailing lists > Public > www-amaya@w3.org > April to June 2003

Re: making short test files

From: Brant Langer Gurganus <brantgurganus2001@cherokeescouting.org>
Date: Fri, 18 Apr 2003 15:56:08 -0500
Message-ID: <3EA06668.7050009@cherokeescouting.org>
To: John Russell <ve3ll@RAC.CA>
CC: Irene Vatton <irene.vatton@inrialpes.fr>, www-amaya@w3.org

John Russell wrote:

>>One of the list members suggested submitting short test files to make
>> the debugger's job easier.   well this is as short as i can make it. 
>>body {background:none}
>><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
>><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
>><link href="aaa.css" rel="stylesheet" type="text/css"> </head><body> <p>A
>>simple test document that triggers a parse error in Amaya althouh the
>>stylesheet verifies. Background property includes image as well as color
>>subproperty. And none is valid value for image (the alternate being an
>>url).</p> </body></html>
>There is no parser error in Amaya with this document.
I gave it a try and was able to recreate the error.  CSS2 states that 
background may be one or more of the values of background-color, 
background-image, background-repeat, background-attachment, or 
background-position in any order.

none is a valid value for background-image so it is valid for background 
even if it is not valid for background-color.  I think that Amaya may be 
thinking that because it appears in the specification with 
background-color listed firsted then that is what it should be 
interpreted as, but a look at conventions for the || separator would 
tell otherwise.

Relevant Links:
Conventions: http://www.w3.org/TR/REC-CSS2/about.html#q3
Background: http://www.w3.org/TR/REC-CSS2/colors.html#propdef-background

Brant Langer Gurganus
Received on Friday, 18 April 2003 16:56:39 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:53:27 UTC