SimpleCSSStyles contains all the style names that SimpleCSSStylesImpl is 
guaranteed to support.  So I wouldn’t say fontWeight not being supported by 
SimpleCSSStylesImpl was a bug, unless it were added to SimpleCSSStyles.

I think if you want to be safe in MXML, it’s best to avoid using string values 
for style and to use objects such as SimpleCSSStyles insead.

From: Justin Mclean<mailto:jus...@classsoftware.com>
Sent: Sunday, March 5, 2017 12:33 PM
To: dev@flex.apache.org<mailto:dev@flex.apache.org>
Subject: Re: git commit: [flex-asjs] [refs/heads/develop] - Add JS support for 
non pixel numeric properties ie fontWeight

Hi,

> Again, with PAYG, we want SimpleCSSStylesImpl to be simple and we want the
> SWF side to remain at parity.

IMO this is not a PAYG issue it is a bug. FontWeight does accept px values see 
[1]

Without this change any font weight values are ignored in JS and no warnings 
given.

Thanks,
Justin

1.https://www.w3.org/wiki/CSS/Properties/font-weight 
<https://www.w3.org/wiki/CSS/Properties/font-weight>

Reply via email to