Bug 41951

Summary: External graphic doesnt size properly with height set at 100%
Product: Fop - Now in Jira Reporter: Barry Pearce <barry.pearce>
Component: generalAssignee: fop-dev
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 0.93   
Target Milestone: ---   
Hardware: PC   
OS: other   
Attachments: The rendered output in PDF.
The image used in the test.

Description Barry Pearce 2007-03-26 15:00:41 UTC
The following XSL-FO causes a complaint about the graphics being out of limits
and DOES NOT render at the scaled size. The specification states that a height
of 100% should cause the area to be set at the same size of the parent (which
should be the size of extent in this case.

<?xml version="1.0" encoding="utf-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">

		<fo:simple-page-master master-name="Form"
				page-width="210mm" page-height="297mm"
				margin-top="10mm"  margin-bottom="10mm"
				margin-left="10mm" margin-right="10mm"
				margin="0" margin-top="32mm" padding="0"/>
			<fo:region-before extent="32mm"
				margin="0" padding="0"/>
    <fo:page-sequence master-reference="Form">
	    <fo:static-content flow-name="xsl-region-before">
			<fo:block text-align="center"
					height="100%" width="100%"
					border-style="solid" border-color="orange" border-width="0.25mm">
						border-style="solid" border-color="black" border-width="0.25mm"
						scaling="uniform" scaling-method="resample-any-method"
						height="100%" content-height="scale-to-fit"
		<fo:flow flow-name="xsl-region-body">
					height="100%" width="100%"
					border-style="solid" border-color="blue" border-width="0.25mm">
				<fo:block text-align="center" font-size="20pt" font-family="serif"
		    		LOGO CHECK
Comment 1 Barry Pearce 2007-03-26 15:02:01 UTC
Created attachment 19800 [details]
The rendered output in PDF.

Both PDF and PS render the same.
Comment 2 Barry Pearce 2007-03-26 15:02:34 UTC
Created attachment 19801 [details]
The image used in the test.
Comment 3 Glenn Adams 2012-04-07 01:44:30 UTC
resetting P2 open bugs to P3 pending further review