2141Re: [XSL-FO] line-height of a basic-link around an
- Aug 11, 2002Hi Ken,
let me explain XEP's interpretation of the basic-links. Our idea is
straightforward: the hot area corresponds to the border-rectangle
of the basic-link inline area. When you specify a border around
the fo:basic-link, the zone inside the border becomes hot, and the
outside remains inactive. Natural, isn't it?
> Okay ... section 4.6 talks about the content rectangle in terms of the textUnfortunately, the spec prescribes otherwise. Let's look at [4.6. Inline-areas]:
> dimension ... but I would have thought the large allocation rectangle of
> the graphic would have increased the height of the content rectangle.
XSL> An inline-area with inline-area children has a content-rectangle
XSL> which extends from its dominant baseline ... by its text-depth in
XSL> the block-progression-direction, and in the opposite direction
XSL> by its text-altitude.
Ergo: the content rectangle of a typical inline _does not depend on
its contents_. Only font attributes matter, plus eventual redefinitions
of text-depth or text-altitude. This applies to fo:basic-link, too.
> ... after all, if I border a graphic, the border goes around the wholeThis would be true if @external-destination were ascribed directly
> graphic and not just the line height), then the containing area would, I
> thought, be well defined, thus would be "hot" to the hyperlink.
to the graphic. Unfortunately, fo:basic-link is another object that
generates inline-areas of its own. If you set a border on it, it may
cross a tall image located inside.
The above serves to demonstrate that our decision was not casual :-).
However, the problem is real - I concur that in David Cramer's case,
XEP's behaviour is far from intuitive. Maybe we should ask authors
of the XSL spec?
- << Previous post in topic Next post in topic >>