[Webkit-unassigned] [Bug 38448] Web Inspector: Should Autocomplete Style Properties
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun May 2 21:23:46 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=38448
Joseph Pecoraro <joepeck at webkit.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
AssignedTo|webkit-unassigned at lists.web |joepeck at webkit.org
|kit.org |
Ever Confirmed|0 |1
Attachment #54905| |review?, commit-queue?
Flag| |
--- Comment #1 from Joseph Pecoraro <joepeck at webkit.org> 2010-05-02 21:23:45 PST ---
Created an attachment (id=54905)
--> (https://bugs.webkit.org/attachment.cgi?id=54905)
[PATCH] Proposed Fix
The generated list in this example came from converting the properties list
from the CSS Tokenizer. However, the list can be automatically generated like
so:
> // This is the list of properties
> var properties = []
> var keywords = window.getComputedStyle(document.documentElement);
> for (var i = 0, len = keywords.length; i < len; ++i) {
>
> // Strip leading hyphen from -vendor properties
> var property = keywords[i];
> if (property.charAt(0) === "-")
> property = property.substring(1);
>
> // Turn hypens points into camel case points
> properties[i] = property.replace(/\-./g, function(c) {
> return c.charAt(1).toUpperCase();
> });
> }
>
> // `properties` contains the results
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list