[css-houdini-drafts] [typed-om] Align array-likes with future plans

tabatkins has just created a new issue for https://github.com/w3c/css-houdini-drafts:

== [typed-om] Align array-likes with future plans ==
So I finally cornered @domenic and nailed down a plan for Array-likes in the future. Details:

* array-likes should still be Array subclasses, so additions to Array.prototype work, Array.isArray() works, etc
* since Arrays already hook data properties (so they can update `.length`), it's reasonably possible to further invoke some provided get/set hooks

-----

Changes for the spec in anticipation of doing this:

* TypedOM's array-likes need to descend from Array, which means they *can't* descend from CSSStyleValue:
 * CSSMathArray is fine to switch over.
 * CSSUnparsedValue and CSSTransformList should probably switch to taking a `.segments`/`.functions` property which are array-likes, rather than being array-like themselves.
* add the rest of the Array methods to the array-likes, presumably via a mixin

Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/825 using your GitHub account

Received on Thursday, 18 October 2018 07:47:27 UTC