Primary eng (and PM) emails
Link to “Intent to Deprecate” thread
https://groups.google.com/a/chromium.org/d/msg/blink-dev/eBu466IGmMw/ddqqlGBG2xkJ
Summary
Remove CSSValue (and all subclasses, including CSSPrimitiveValue, CSSValueList, Rect, RGBColor, WebKitCSSTransformValue, WebKitCSSFilterValue, etc.)
Remove CSSStyleDeclaration.getPropertyCSSValue
https://code.google.com/p/chromium/issues/detail?id=331608
Motivation
CSSValue and friends were deprecated by the W3C waaay back in 2003 (probably before WebKit even added many of them):
http://lists.w3.org/Archives/Public/www-style/2003Oct/0347.html
We are the only engine (besides WebKit) to fully implement these. Firefox exposes a limited set of CSSValues and only when accessed via getComputedStyle:
https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration
Usage information from UseCounter
https://www.chromestatus.com/metrics/feature/timeline/popularity/225
Usage of getPropertyCSSValue is at 0.0076%, lower than the threshold of 0.03% we commonly use.
Entry on chromestatus.com
None.
Compatibility Risk
This removal has low compatibility risk. getPropertyCSSValue is not implemented by IE, and the usage is quite low. We don’t have UseCounter data for usage of CSSValue/etc., but it is unlikely that these will be depended on separately from getPropertyCSSValue.To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
I assume you're referring to crbug.com/390065? We'll still keep CSSValues for representing values internally, although these will no longer be web-exposed (perhaps eventually they'll be replaced by something else).
I assume you're referring to crbug.com/390065? We'll still keep CSSValues for representing values internally, although these will no longer be web-exposed (perhaps eventually they'll be replaced by something else).Yes.Then we need to keep CSSValue in Blink implementation, but we no longer need to make CSSValue derive ScriptWrappable because CSSValue is no longer exposed to JS. In other words, we can mark crbug.com/390065 as WONTFIX. Am I understanding correctly?
Hi Timothy,Are you going to remove CSSValue.idl, etc. as well? As we will no longer expose CSSValue to web, I think they will be gone, too. We're especially interested in- core/css/CSSValue.idl- core/css/CSSRule.idl- core/css/RGBColor.idl- core/css/Rect.idl(implicitly including their subclasses. If you remove above 4 IDLs, then their subclasses should be gone, too.)These 4 IDLs (and their subclasses) were our targets to make ScriptWrappable.Will you remove them?Cheers,Yuki Shiino
LGTM