Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-26546

'@media not unknown' media query is not being evaluated correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • Adobe Flex SDK Previous
    • None
    • Mobile: Density
    • 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

      { chromeColor: #AAAAAA; color: #000000; fontSize: 24; }

      @media not unknown and (application-dpi: 240)
      {
      .buttonNotMediaUnknown240dpiTest

      { color: #009900; fontSize: 26; }

      }
      </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):

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: