[Bug 24978] New: Section 10.6.3 doesn't specify the exact color format to which implementation should transform style

https://www.w3.org/Bugs/Public/show_bug.cgi?id=24978

            Bug ID: 24978
           Summary: Section 10.6.3 doesn't specify the exact color format
                    to which implementation should transform style
           Product: Browser Test/Tools WG
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: WebDriver
          Assignee: public-browser-tools-testing@w3.org
          Reporter: botalov.andrey@gmail.com
        QA Contact: public-browser-tools-testing@w3.org
                CC: mike@w3.org

Section 10.6.3 says:
Color property values must be standardized to rgba format, matching the regular
expression: rgba(\d+,\s*\d+,\s*\d+\s*(,\s*(1|0(\.\d+)?)))

There are a number of issues with regexp above:
1. ( and ) should be escaped
2. It doesn't specify amount of spaces using which numerical values should be
separated.
3. It doesn't define which format should be returned:
rgba(255, 0, 0, 1.0000)
rgba(255, 0, 0, 1.000)
rgba(255, 0, 0, 1.00)
rgba(255, 0, 0, 1.0)
rgba(255, 0, 0, 1)

I think spec should specify format strictly so there won't be driver
incompatibilities.

What about?
rgba\(\d+, \d+, \d+, (?:1|0)\.\d+\)

but it doesn't fully solve issue 3 from the list above

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Sunday, 9 March 2014 12:53:58 UTC