Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8091994

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • fx1.3
    • 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"; }
      }

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

              Created:
              Updated:
              Imported: