This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 289 - no error for invalid border-right
Summary: no error for invalid border-right
Status: RESOLVED FIXED
Alias: None
Product: CSSValidator
Classification: Unclassified
Component: CSS 2.0 (show other bugs)
Version: CSS Validator
Hardware: Other other
: P1 normal
Target Milestone: ---
Assignee: Philippe Le Hegaret
QA Contact: qa-dev tracking
URL: http://jigsaw.w3.org/css-validator/va...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-07 10:22 UTC by Bj
Modified: 2005-08-26 14:44 UTC (History)
0 users

See Also:


Attachments
Junk values in shorthand declarations (674 bytes, text/css; charset=UTF-8)
2004-10-05 08:18 UTC, Etan Wexler
Details

Description Bj 2003-08-07 10:22:53 UTC
h1 { border-right: "foo" bar 10 }

is invalid, but the validator does not complain about it if a specific
medium (a non-null medium) is specified, see e.g.

http://jigsaw.w3.org/css-validator/validator?text=h1+%7B+border-right%3A+%22foo%
22+bar+10+%7D&warning=2&profile=css2&usermedium=all
http://jigsaw.w3.org/css-validator/validator?text=h1+%7B+border-right%3A+%22foo%
22+bar+10+%7D&warning=2&profile=css2

for a demonstration. It's likely that this is not limited to
border-right.

See
http://www.w3.org/mid/3f450278.182632651@smtp.bjoern.hoehrmann.de
Comment 1 Etan Wexler 2004-10-05 08:18:25 UTC
Created attachment 376 [details]
Junk values in shorthand declarations
Comment 2 Etan Wexler 2004-10-05 08:43:36 UTC
The phenomenon of accepting junk values in shorthand declarations and generating
valid values in the internal model is spread across the properties 'background',
'border-bottom', 'border-left', 'border-right', 'border-top', and 'list-style'.
All of these properties require at least one term, permit more than one term,
use white space as a term separator, and do not require any particular ordering
of the terms that appear. The "Value" fields of the definitions of these
properties use as their only conjoiner the double vertical line ("||").

For reasons unknown to me, invalid 'border' declarations raise an error rather
than participating in the phenomenon described
Comment 3 Yves Lafon 2005-08-26 14:44:17 UTC
Fixed, see http://qa-dev.w3.org:8001/css-validator/