General XMetaL Discussion
scotth November 18, 2011 at 3:21 pm
CSS Inherit SupportNovember 18, 2011 at 3:21 pmParticipants 1Replies 0Last Activity 10 years, 10 months ago
I am working with XMetaL 6.0 and am trying to setup some rules for an emphasis tag that can display either bold, italic, or underline, based upon the value of an attribute. If my attribute is empty or it has a value of “bold”, the text should be rendered bold. If the attribute is “italic” the text should be italic. If the attribute is “underline”, the text should be underlined. I also need the effects of these to be additive when nested. If i have surrounded my text with an italic emphasis and an underline emphasis, the text should be both italic and underline.
Below is some sample CSS that will work in a web browser, but only partially works in XMetaL:
In XMetaL, this doesn't work quite right if I have the markup below. It will display the text and bold and italic instead of just italic. It would seem that “font-weight: inherit” is not being honored. Is this a known issue? Are there any good work-arounds?
- You must be logged in to reply to this topic.