Re: [css-houdini-drafts] [css-typed-om] Change CSSKeywordValue's attribute to allow forward-compatible upgrades

Yes, that's it exactly.  Old code can pretend that `ComplexValue` is a `CSSKeywordValue` (or, depending on what the property's grammar was before it got extended, a `CSSUnitValue` or `CSSStringValue`), and it'll act exactly correct. New code can interact with `ComplexValue` in the new ways that the new class offers, giving them more powers.

I wonder if the right way to go about it is to actually make them subclasses of CSSKeywordValue/CSSMathValue/etc.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/735#issuecomment-375486666 using your GitHub account

Received on Thursday, 22 March 2018 23:07:35 UTC