Shorthands are one of the CSS niceties that other languages using CSSish syntax should be able to use without a lot of difficulty. One of the options the parser should take is a list of property names that are shorthands, and a callback that will be given those declarations (one at a time) and allowed to return a list of expanded declarations that will actually show up in the generic OM.
Shorthands are one of the CSS niceties that other languages using CSSish syntax should be able to use without a lot of difficulty. One of the options the parser should take is a list of property names that are shorthands, and a callback that will be given those declarations (one at a time) and allowed to return a list of expanded declarations that will actually show up in the generic OM.