W3C home > Mailing lists > Public > www-xsl-fo@w3.org > December 2003

fo:inline on the edge of the region

From: Victor Vishnyakov <tch_@mail.ru>
Date: Fri, 5 Dec 2003 14:26:01 +0200
To: <XSL-FO@yahoogroups.com>, <www-xsl-fo@w3.org>
Message-ID: <002301c3bb2a$f3376420$2500a8c0@ISLC.local>

"6.6.7 fo:inline" formatting object generates one or more "normal
inline-area"s. In "4.2.3 Geometric Definitions"
normal-allocation-rectangle of an inline-area is defined as box with
trimmed spaces and trimmed border+padding at the top and at the bottom,
thus top padding and border on the top edge of the "6.4.13
fo:region-body" causes overflow. Default "7.20.2 overflow" value is
"auto" and described as: "The behaviour of the "auto" value is user
agent dependent, but should cause a scrolling mechanism to be provided
for overflowing boxes." Scrolling for the printable document is the same
to hidden and should be clipped. Thus due to specification the following
XSL-FO file should not contain the top border of the inline. Am I right?

<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" font-size="12pt">
	<fo:layout-master-set>
		<fo:simple-page-master master-name="main-page-master"
page-width="21cm" page-height="29.7cm" margin-top="2cm"
margin-bottom="2cm" margin-left="2cm" margin-right="2cm">
			<fo:region-body region-name="xsl-region-body"
margin-top="1cm" margin-bottom="1cm"/>
		</fo:simple-page-master>
	</fo:layout-master-set>
	<fo:page-sequence master-reference="main-page-master">
		<fo:flow flow-name="xsl-region-body"
font-family="Courier">
			<fo:block>
				<fo:inline border="2px solid
black">Hello</fo:inline>
			</fo:block>
		</fo:flow>
	</fo:page-sequence>
</fo:root>

PS: neither XEP nor XSL Formatter clips the top border. FOP does not
support borders for the fo:inline. 
Received on Friday, 5 December 2003 07:21:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:11 GMT