Bug 36068 - Inconsistency in property parsing
Summary: Inconsistency in property parsing
Status: CLOSED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: general (show other bugs)
Version: trunk
Hardware: Other other
: P2 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-08 05:53 UTC by Manuel Mall
Modified: 2012-04-01 07:10 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Manuel Mall 2005-08-08 05:53:06 UTC
This is just a minor issue.

There is an inconsistency in the way some "enumerated" type properties are
handled. Typically they are checked and if a value outside the spec is
encountered a suitable error is raised, e.g. font-stretch has the allowed values
"normal | wider | narrower | ultra-condensed | extra-condensed | condensed |
semi-condensed | semi-expanded | expanded | extra-expanded | ultra-expanded |
inherit" and if anything else is put into the property value the user will get
an error. However, I noticed that this is not the case for font-style whose
allowed values are "normal | italic | oblique | backslant | inherit" or
font-weight (allowed values: "normal | bold | bolder | lighter | 100 | 200 | 300
| 400 | 500 | 600 | 700 | 800 | 900 | inherit"). These properties accept non
conformant input without rasing an error or a warning.
Comment 1 Finn Bock 2005-09-12 10:06:54 UTC
Fixed in revision 280286.
Comment 2 Glenn Adams 2012-04-01 07:10:18 UTC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed