[mpeg-OTspec] format of CSS Variables has changed

Levantovsky, Vladimir vladimir.levantovsky at monotype.com
Mon Mar 24 20:16:43 CET 2014


Hi Cameron,

Thank you very much for letting us know about the upcoming changes in the CSS Variables spec and the new format for custom properties names. I will add these to the list of changes related to the user agent style sheet, with this and earlier changes you recommended it will look as follows (just want to make sure that I get everything right):

@namespace svg url(http://www.w3.org/2000/svg);
svg|text, svg|foreignObject {
     display: none !important;;
}
:root {
   fill: context-fill;
   fill-opacity: context-fill-opacity;
   stroke: context-stroke;
   stroke-opacity: context-stroke-opacity;
   stroke-width: context-value;
   stroke-dasharray: context-value;
   stroke-dashoffset: context-value;
/* examples: optional custom property declarations */
   --color<num>: <color>;
   --color0: rgba(255,0,0, 0.5);
}

Does this look okay?

Thank you,
Vlad


-----Original Message-----
From: mpeg-OTspec at yahoogroups.com [mailto:mpeg-OTspec at yahoogroups.com] On Behalf Of cam at mcc.id.au
Sent: Sunday, March 23, 2014 6:54 PM
To: mpeg-OTspec at yahoogroups.com
Subject: [mpeg-OTspec] format of CSS Variables has changed

Hi,

The W3C CSS Working Group agreed at their last teleconference to make a last minute change to the syntax used to declare CSS Variables. This affects the user agent style sheet that is required to be applied when processing font SVG documents that come from the SVG table. Instead of using custom properties with names that begin with a "var-" prefix, they now begin with "--". Also, variable references must now use the full custom property name rather than just the part after the prefix. (These changes are yet to make it into the CSS Variables specification http://dev.w3.org/csswg/css-variables/ but will be made soon.)

The spec changes needed to account for this are just to replace the two occurrences of "var-color" with "--color", and the right-hand side variable reference "var(color0)" with "var(--color0)".

Thanks,

Cameron

------------------------------------

Yahoo Groups Links





More information about the mpeg-otspec mailing list