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

    Details

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

      Description

      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"; }
      }

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Imported: