New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 700338 link

Starred by 4 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Feature

Blocked on: View detail
issue 850323
issue 850972



Sign in to add a comment

Generate CSSStyleDeclaration attributes from CSSProperties.json5

Project Member Reported by foolip@chromium.org, Mar 10 2017

Issue description

In https://github.com/w3c/csswg-drafts/issues/1089 I suggested changing the CSSOM spec to be more like Blink, without knowing exactly how that would work. Turns out that Gecko already does what the spec suggests, and that this results in a more reasonable behavior.

Investigate if this would be a simple change in Blink, and if not revisit the spec issue. In particular, it would be worth measuring the increase in binary size to make sure it doesn't add 100s of KB.
 
Cc: meade@chromium.org shend@chromium.org
Labels: -Type-Bug Type-Feature
Status: Available (was: Untriaged)
Labels: Update-Quarterly
Labels: -Update-Quarterly

Comment 4 by emilio@chromium.org, Dec 16 2017

Labels: Hotlist-Interop
It'd be nice to get this fixed, there are WPT tests relying on the incorrect Blink behavior which I'm fixing in https://bugzilla.mozilla.org/show_bug.cgi?id=1425227.

Comment 5 by cnardi@chromium.org, May 31 2018

So I have a very rough WIP patch for this, but the main problem I ran into was for dashed attributes. Our current IDL parser doesn't allow dashes anywhere in an attribute name (contrary to the spec, which allows dashes anywhere other than the first character), meaning that attributes like font-size don't work. But even if that is fixed, WebIDL doesn't allow dashes as the first character of an identifier, meaning that -webkit/other prefixed properties cannot be attributes in WebIDL.

Firefox avoids this issue as they have implemented a special extended attribute of [BindingAlias=] (see https://searchfox.org/mozilla-central/source/dom/bindings/GenerateCSS2PropertiesWebIDL.py#58) which means that they only define one attribute (the lower camel case one) for each property and the rest are aliased to that, without needing to be valid WebIDL identifiers.
Blockedon: 850323

Comment 7 by peria@chromium.org, Jun 8 2018

Blockedon: 850972

Sign in to add a comment