negative line spacing in Text

Pedro Duque Vieira pedro.duquevieira at
Thu Jun 14 12:50:06 UTC 2018

I'm all in favor of following W3C CSS, but you can't specify negative
values in W3C CSS line-height property either. The minimum value is 0 which
just collapses everything into the same line, so negative values wouldn't
make sense since it would layout the paragraph upside down.


I looked at the source and it is a double property that is just added to
> the default line height
> So I don't see why it would just cause line wrap to fail such that text
> was all on the same line,
> which is how I am interpreting what you are saying.
> Perhaps if you are using too large a negative value something I'm
> overlooking is clamping it ..
> FWIW line-spacing is not a W3C CSS property so far as I can tell, so it
> is just FX CSS
> There is line-height in the W3C spec but it is specified differently.
> -phil.

Pedro Duque Vieira

More information about the openjfx-dev mailing list