Support media types in CSS to allow single CSS file to contain styles for desktop, tv and mobile

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: fx1.3
    • Component/s: javafx

      A property may have a different value depending on whether the device is handheld, tv or a computer screen. Therefore, it is necessary to express that a style sheet, or a section of a style sheet, applies to certain "media types". The CSS media types spec is http://www.w3.org/TR/CSS2/media.html.

      We should support the following media types:
      all
      handheld
      screen
      tv

      This would allow a designer to express the values for the different media types in a single stylesheet, for example:

      @media handheld {
          Text { -fx-font: 9pt "Arial"; }
      }
      @media screen {
          Text { -fx-font: 12pt "Arial"; }
      }
      @media tv {
          Text { -fx-font: 18pt "Arial"; }
      }

            Assignee:
            Unassigned
            Reporter:
            David Grieve
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Imported: