Doubts on CSS-Documentation

David Grieve david.grieve at oracle.com
Thu Aug 2 07:14:26 PDT 2012


I have RT-23722, targeted to the next release, for updating the ref. I'll add this to it.

On Aug 2, 2012, at 5:21 AM, Tom Schindl wrote:

> Hi,
> 
> I've got a bug report in e(fx)clipse [1] where I mark something as an
> error because it is speced this way but it looks like e.g.
> SceneBuilder-Samples use it differently [2].
> 
> My doubt is on the derive function where the spec says:
> 
> ---8<---
> derive( <color> , <number>% )
> 
> The derive function takes a color and computes a brighter or darker
> version of that color. The second parameter is the brightness offset,
> ranging from -100% to 100%. Positive percentages indicate brighter
> colors and negative percentages indicate darker colors. A value of -100%
> means completely black, 0% means no change in brightness, and 100% means
> completely white.
> ---8<---
> 
> but the css uses it:
> 
> ---8<---
> -fx-background-color:
>        linear-gradient(
>            derive(-master-color, 120%),
>            derive(-master-color, 90%)
>        ),
>        radial-gradient(
>            center 50% -40%,
>            radius 180%,
>            derive(-master-color, 95%) 55%,
>            derive(-master-color, 75%) 55%
>        );
> ---8<---
> 
> My tests indicate that the percentage can be higher than 100%! So I
> guess the documentation has to be updated.
> 
> Tom
> 
> [1]http://efxclipse.org/trac/ticket/178
> [2]http://download.oracle.com/otn-pub/java/javafx_scenebuilder/1.0-b45/javafx_scenebuilder_samples-1_0-beta-b45-02_jul_2012.zip
> -- 
> B e s t S o l u t i o n . a t                        EDV Systemhaus GmbH
> ------------------------------------------------------------------------
> tom schindl                 geschäftsführer/CEO
> ------------------------------------------------------------------------
> eduard-bodem-gasse 5-7/1   A-6020 innsbruck     fax      ++43 512 935833
> http://www.BestSolution.at                      phone    ++43 512 935834


David Grieve | Principal Member of Technical Staff
Mobile: +16033121013 
Oracle Java Client UI and Tools
Durham, NH 03824 
 Oracle is committed to developing practices and products that help protect the environment



More information about the openjfx-dev mailing list