Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Not A Problem
-
Adobe Flex SDK Previous
-
None
-
None
-
Affected OS(s): All OS Platforms
Language Found: English
Description
Create a mobile project with the following View. Run it on a different dpi devices.
<?xml version="1.0" encoding="utf-8"?>
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark" title="HomeView">
<fx:Style>
@namespace s "library://ns.adobe.com/flex/spark";
.buttonNotMediaUnknown240dpiTest
@media not unknown and (application-dpi: 240)
{
.buttonNotMediaUnknown240dpiTest
}
</fx:Style>
<s:Button label="button" styleName="buttonStyle"/>
</s:View>
Actual Results:
The button is has green font on 160, 240 and 320 dpi devices.
Expected Results:
According to the spec: "The media query "unknown" will evaluate to false, unless unknown is actually a supported media type. Similarly, "not unknown" will evaluate to true." The button should be green only on 240dpi devices.
Workaround (if any):