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

Broken interpretation of || in converter (e.g. -fx-background-position)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • None
    • javafx

      The CSS-spec says:


          [ [ <size> | left | center | right ] [ <size> | top | center |
      bottom ]? ]
          | [ [ center | [ left | right ] <size>? ] || [ center | [ top |
      bottom ] <size>? ]
      ]

      This would mean one can write:

      -fx-background-position: left top;

      or

      -fx-background-position: top left;

      but then the converter croaks:

      J?n 16, 2013 11:07:19 AM com.sun.javafx.css.parser.CSSParser declaration
      WARNING: CSS Error parsing in-line style '-fx-background-position: top
      left;-fx-background-image: url("tests/build.png");-fx-background-repeat:
      no-repeat;-fx-border-style: solid;-fx-border-width:
      1px;-fx-border-color: black;' from javafx.scene.Node$26@1c3d5104:
      Expected 'center', 'left' or 'right' while parsing
      '-fx-background-position' at [1,25]

            dgrieve David Grieve
            tschindl Tom Schindl
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: