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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • jfx13
    • javafx
    • x86_64
    • generic

      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.


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

              Created:
              Updated: