Bug 116239

Summary: [CSS] CSS Variables are case-sensitive
Product: WebKit Reporter: Claudio Saavedra <csaavedra>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, esprehn+autocc, glenn, macpherson, menard, rniwa
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch for landing none

Description Claudio Saavedra 2013-05-16 12:05:44 PDT
The specifications are very clear about this:

"Unlike other CSS properties, custom property names are case-sensitive. The "var-" prefix must be written in lower-case."

The implementation is treating them as any other CSS property. This is a bug.
Comment 1 Claudio Saavedra 2013-05-16 13:12:23 PDT
Created attachment 201986 [details]
Patch
Comment 2 Ryosuke Niwa 2013-05-16 13:17:06 PDT
Comment on attachment 201986 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=201986&action=review

> Source/WebCore/ChangeLog:8
> +        Test: fast/css/variables/case-sensitive.html

This line should appear below the description.

> Source/WebCore/ChangeLog:11
> +        The CSS Variables specification states that variables are not
> +        case-sensitive, like other CSS properties.

Please fix the change log per IRC discussion.
Comment 3 Claudio Saavedra 2013-05-16 13:34:20 PDT
Created attachment 201988 [details]
Patch for landing
Comment 4 Claudio Saavedra 2013-05-16 14:04:39 PDT
Committed r150207: <http://trac.webkit.org/changeset/150207>