Closed Bug 1496085 Opened 7 years ago Closed 7 years ago

[wpt-sync] Sync PR 13334 - [css-properties-values-api] Proper behavior for direct CSSStyleValues.

Categories

(Core :: CSS Parsing and Computation, enhancement, P4)

enhancement

Tracking

()

RESOLVED FIXED
mozilla64
Tracking Status
firefox64 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 13334 into mozilla-central (this bug is closed when the sync is complete). PR: https://github.com/web-platform-tests/wpt/pull/13334 Details from upstream follow. Anders Hartvoll Ruud <andruud@chromium.org> wrote: > [css-properties-values-api] Proper behavior for direct CSSStyleValues. > > In CSS Typed OM, types that are not yet supported by a specialized > CSSStyleValue subclass are represented by "direct" CSSStyleValue objects. > These objects are only valid for their associated property. For instance, > you may not get a (direct) CSSStyleValue object from 'color', and then > set it on 'background-color'; the (direct) CSSStyleValue acquired from > 'color' is valid for 'color' only. > > The same should apply for registered custom properties; a direct > CSSStyleValue acquired from '--x' is only valid for '--x'. > > To do this, blink::CSSUnsupportedStyleValue must be aware of the > custom property name. This means the AtomicString with the custom property > name must be passed around to almost everything. However, if the property > at hand is not a custom property, I want to avoid AtomicString-ing the > name of the property. Hence there are DCHECKs to make sure this is avoided. > > Reminder: this CL would be much less ... grotesque and perhaps less > error-prone if dynamic CSSProperties (Ribbon) were in place, but because > we like pain, we decided to not give that project a very high priority. > > R=chrishtr@chromium.org > > Bug: 641877 > Change-Id: I99af4745d1d33365759e9fd4acef5082ab213229 > Reviewed-on: https://chromium-review.googlesource.com/1257916 > WPT-Export-Revision: 21317723232b50675dbdb89ce60ffdd35ba4bf3a
Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core
Ran 1 tests and 20 subtests FAIL : 20 ERROR : 1
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/ddb8b080f0b4 [wpt PR 13334] - [css-properties-values-api] Proper behavior for direct CSSStyleValues., a=testonly
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
You need to log in before you can comment on or make changes to this bug.