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 2446 - border-width validation omits "redundant" setting
Summary: border-width validation omits "redundant" setting
Status: RESOLVED FIXED
Alias: None
Product: CSSValidator
Classification: Unclassified
Component: text area (show other bugs)
Version: CSS Validator
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Olivier Thereaux
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-04 02:10 UTC by Jefferson Scher
Modified: 2006-04-20 05:20 UTC (History)
0 users

See Also:


Attachments
4 values for border property (112 bytes, text/css)
2006-04-20 05:19 UTC, Olivier Thereaux
Details

Description Jefferson Scher 2005-11-04 02:10:56 UTC
If you paste these in the text area:

border-width: 0 0 1px 0;
border-width: 1px 0 0 0;
border-width: 1px 0 0 1px;

You get back these as valid css:

border-width : 0 0 1px;
border-width : 1px 0 0;
border-width : 1px 0 0 1px;

The first two apparently are equivalent to the original, but I think it is bad
for usability to rewrite the user's css in this way. Trying to remember the
"12:00 3:00 6:00 9:00" versus "12:00/6:00 3:00/9:00" orientation is challenging
enough without getting back 3 settings.
Comment 1 Olivier Thereaux 2006-04-20 05:19:08 UTC
Created attachment 420 [details]
4 values for border property 

adding test case identical to the one reported in
http://www.w3.org/Bugs/Public/show_bug.cgi?id=2446#c0
the "source display" after validation should have 4 values for each case, not just 3.
Comment 2 Olivier Thereaux 2006-04-20 05:20:16 UTC
Fixed in CVS by Jean-Guilhem Rouel.

Testable at 
http://qa-dev.w3.org:8001/css-validator/validator?uri=http%3A%2F%2Fwww.w3.org%2FBugs%2FPublic%2Fattachment.cgi%3Fid%3D420

Will be in the production service shortly.