Bug 160214 - Align CSSStyleDeclaration with the specification
Summary: Align CSSStyleDeclaration with the specification
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL: https://drafts.csswg.org/cssom/#the-c...
Keywords: WebExposed
Depends on:
Blocks:
 
Reported: 2016-07-26 14:35 PDT by Chris Dumez
Modified: 2016-07-26 15:39 PDT (History)
6 users (show)

See Also:


Attachments
Patch (10.55 KB, patch)
2016-07-26 14:58 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (10.53 KB, patch)
2016-07-26 15:08 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2016-07-26 14:35:54 PDT
Align CSSStyleDeclaration with the specification:
- https://drafts.csswg.org/cssom/#the-cssstyledeclaration-interface

In particular, the parameters to removeProperty() / item() / getPropertyPriority() should be mandatory.

Firefox and Chrome match the specification.
Comment 1 Chris Dumez 2016-07-26 14:58:56 PDT
Created attachment 284638 [details]
Patch
Comment 2 Darin Adler 2016-07-26 15:04:05 PDT
Comment on attachment 284638 [details]
Patch

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

> Source/WebCore/css/CSSStyleDeclaration.idl:35
> +    [Custom] CSSValue getPropertyCSSValue(DOMString propertyName);

Shouldn’t the return value be CSSValue? with a question mark so it’s clear it’s nullable?
Comment 3 Chris Dumez 2016-07-26 15:07:08 PDT
(In reply to comment #2)
> Comment on attachment 284638 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=284638&action=review
> 
> > Source/WebCore/css/CSSStyleDeclaration.idl:35
> > +    [Custom] CSSValue getPropertyCSSValue(DOMString propertyName);
> 
> Shouldn’t the return value be CSSValue? with a question mark so it’s clear
> it’s nullable?

Yes indeed. I'll update.
Comment 4 Chris Dumez 2016-07-26 15:08:35 PDT
Created attachment 284639 [details]
Patch
Comment 5 WebKit Commit Bot 2016-07-26 15:39:25 PDT
Comment on attachment 284639 [details]
Patch

Clearing flags on attachment: 284639

Committed r203744: <http://trac.webkit.org/changeset/203744>
Comment 6 WebKit Commit Bot 2016-07-26 15:39:31 PDT
All reviewed patches have been landed.  Closing bug.