Nice ideas! I'd really like to have automatic vendor-prefixing and linking on-wiki files.
How could we make them available for inline style attributes? That would mean to split the functionality in a parser and a translator part. The translator then could be used from sanitizeHTML() and co.
Some things to point out at #Syntax:
-
@-mw-extendedcss
should be standard mode. Only if you have something that need not use it you might declare a@-mw-dontextendcss
block. - -mw-embed: I don't like it to be a function with url()s as the argument. How about
-mw-embed-url('background.gif')
and-mw-embed-file('Name.png', 100)
? Another possibilty would be to allow the embed-comment directly before the css value, instead of before the css property:background-image: -mw-file('Background.jpg'), /* @embed */ url(images/icon.gif);
- calc(): I can't see any need for that. Do you want to allow the whole #expr:-syntax, or define you own math subset? The example with the 500px thing shows a need for a kind of templating system, but not for a calc-function.