Bug 116239 - [CSS] CSS Variables are case-sensitive
Summary: [CSS] CSS Variables are case-sensitive
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-16 12:05 PDT by Claudio Saavedra
Modified: 2013-05-16 14:04 PDT (History)
6 users (show)

See Also:


Attachments
Patch (6.92 KB, patch)
2013-05-16 13:12 PDT, Claudio Saavedra
no flags Details | Formatted Diff | Diff
Patch for landing (6.91 KB, patch)
2013-05-16 13:34 PDT, Claudio Saavedra
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>