modules/graphics/src/main/docs/javafx/scene/doc-files/cssref.html

Print this page
rev 9240 : 8076423: JEP 253: Prepare JavaFX UI Controls & CSS APIs for Modularization

*** 694,704 **** <h3><a name="introparserwarnings" id="introparserwarnings">Understanding Parser Warnings</a></h3> <p>When the JavaFX CSS parser encounters a syntax error, a warning message is emitted which conveys as much information as is available to help resolve the error. For example </p> ! <p class="example"> WARNING: com.sun.javafx.css.parser.CSSParser declaration Expected '&lt;percent&gt;' while parsing '-fx-background-color' at ?[1,49] </p> <p>The cryptic '<span class="p example">?[1,49]</span>' pertains to the location of the error. The format of the location string is </p> <p class="grammar">&lt;url&gt;[line, position]</p> --- 694,704 ---- <h3><a name="introparserwarnings" id="introparserwarnings">Understanding Parser Warnings</a></h3> <p>When the JavaFX CSS parser encounters a syntax error, a warning message is emitted which conveys as much information as is available to help resolve the error. For example </p> ! <p class="example"> WARNING: javafx.css.CssParser declaration Expected '&lt;percent&gt;' while parsing '-fx-background-color' at ?[1,49] </p> <p>The cryptic '<span class="p example">?[1,49]</span>' pertains to the location of the error. The format of the location string is </p> <p class="grammar">&lt;url&gt;[line, position]</p>
*** 707,718 **** given as a question mark. The line and position give an offset into the file or string where the token begins. <em>Please note that the line and position may not be accurate in releases prior to JavaFX 2.2.</em><br> </p> <p>Applications needing to detect errors from the parser can add a listener ! to the errors property of com.sun.javafx.css.StyleManager. This is not ! public API and is subject to change. <br> </p> <h3><a name="introlimitations" id="introlimitations">Limitations</a></h3> <ol> <li> While the JavaFX CSS parser will parse valid CSS syntax, it is not a fully compliant CSS parser. One should not expect the parser to handle --- 707,717 ---- given as a question mark. The line and position give an offset into the file or string where the token begins. <em>Please note that the line and position may not be accurate in releases prior to JavaFX 2.2.</em><br> </p> <p>Applications needing to detect errors from the parser can add a listener ! to the errors property of javafx.css.CssParser. <br> </p> <h3><a name="introlimitations" id="introlimitations">Limitations</a></h3> <ol> <li> While the JavaFX CSS parser will parse valid CSS syntax, it is not a fully compliant CSS parser. One should not expect the parser to handle