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

CSS: Add support for custom properties lookup for font and font size

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: openjfx13
    • Fix Version/s: tbd
    • Component/s: javafx
    • Labels:
    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      generic

      Description

      A DESCRIPTION OF THE PROBLEM :
      According to the JavaFX CSS Specification, Colors are the only properties that support lookup to custom properties.

      .root {
        --primary--background-color: black;
        --secondary-background-color: rgb(0, 0, 0);
      }

      It would benefit a lot having support to define custom properties for more than just colors, but also for Size and Font.

      .root {
        --primary-font-family: "Segoe UI Semibold";
        --secondary-font-family: "Roboto";
        --primary-padding: 10px;
        --secondary-padding: 5px;
      }

      It would preclude any use of a preprocessor like SASS to do this.


        Attachments

          Activity

            People

            • Assignee:
              aghaisas Ajit Ghaisas
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: