<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>6935</bug_id>
          
          <creation_ts>2009-05-20 21:38:52 +0000</creation_ts>
          <short_desc>rgb(0%, 50%, 0%) declaration unexpectedly get modified in validation report</short_desc>
          <delta_ts>2009-07-07 13:37:30 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSSValidator</product>
          <component>CSS 2.1</component>
          <version>CSS Validator</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://jigsaw.w3.org/css-validator/validator?uri=http://www.hixie.ch/tests/evil/css/css21/tests/t040306-syntax-01-f.htm&amp;lang=en#css</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gérard Talbot">info</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>25242</commentid>
    <comment_count>0</comment_count>
    <who name="Gérard Talbot">info</who>
    <bug_when>2009-05-20 21:38:52 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25243</commentid>
    <comment_count>1</comment_count>
    <who name="Gérard Talbot">info</who>
    <bug_when>2009-05-20 21:42:29 +0000</bug_when>
    <thetext>The bug is entirely reproducible when using the &quot;By direct input&quot; 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25368</commentid>
    <comment_count>2</comment_count>
    <who name="Gérard Talbot">info</who>
    <bug_when>2009-05-29 16:03:44 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25889</commentid>
    <comment_count>3</comment_count>
    <who name="Yves Lafon">ylafon</who>
    <bug_when>2009-07-07 13:37:30 +0000</bug_when>
    <thetext>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/</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>