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 6935 - rgb(0%, 50%, 0%) declaration unexpectedly get modified in validation report
Summary: rgb(0%, 50%, 0%) declaration unexpectedly get modified in validation report
Status: RESOLVED FIXED
Alias: None
Product: CSSValidator
Classification: Unclassified
Component: CSS 2.1 (show other bugs)
Version: CSS Validator
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
URL: http://jigsaw.w3.org/css-validator/va...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-20 21:38 UTC by Gérard Talbot
Modified: 2009-07-07 13:37 UTC (History)
0 users

See Also:


Attachments

Description Gérard Talbot 2009-05-20 21:38:52 UTC
Start URL:
http://www.hixie.ch/tests/evil/css/css21/tests/t040306-syntax-01-f.htm

Original CSS declarations in the test relevant for this bug report are:

p#percentpercentpercent1 { color: rgb(0%, 50%, 0%) }
p#percentpercentpercent2 { color: rgb(0%, 49.99%, 0%) }

Actual results
==============
Validated CSS info according to CSS validator validation report is:

p#percentpercentpercent1  { 
color : rgb(0.0%, 0.0%, 0.0%); 
 } 
 p#percentpercentpercent2  { 
color : rgb(0.0%, 0.0%, 0.0%); 
 }

Description
===========
From the test to the CSS validator validation report, the validated CSS declarations are modified. 50% and 49.99% both become/change to 0.0%


Expected results
================
Validated CSS info according to CSS validator validation report should be:

p#percentpercentpercent1  { 
color : rgb(0%, 50%, 0%); 
 } 
 p#percentpercentpercent2  { 
color : rgb(0%, 49.99%, 0%); 
 }

If required, I can create a reduced testcase for this bug. 
This bug is following up on comment #2 in bug 1269

regards, Gérard
Comment 1 Gérard Talbot 2009-05-20 21:42:29 UTC
The bug is entirely reproducible when using the "By direct input" tab, Validate by direct input and by inputting:

p#percentpercentpercent1 { color: rgb(0%, 50%, 0%) }
p#percentpercentpercent2 { color: rgb(0%, 49.99%, 0%) }

regards, Gérard
Comment 2 Gérard Talbot 2009-05-29 16:03:44 UTC
The provided test has been submitted to the CSS 2.1 Conformance test suite:

RGB color syntax error handling (test for validity)
http://www.w3.org/Style/CSS/Test/CSS2.1/current/html4/color-000.htm

regards, Gérard
Comment 3 Yves Lafon 2009-07-07 13:37:30 UTC
Thanks, it was a stupid typo in the green setter, leaving the value to always 0, if your test was 50%, 0%, 0% it would still be unnoticed!

Fixed on http://qa-dev.w3.org:8001/css-validator/