General XMetaL Discussion
XMetaL Community Forum › General XMetaL Discussion › CSS Inherit Support
-
scotth November 18, 2011 at 3:21 pm
CSS Inherit Support
November 18, 2011 at 3:21 pmParticipants 1Replies 0Last Activity 11 years, 2 months agoI 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:
emphasis {
font-weight: bold;
}emphasis[type=”italic”] {
font-style: italic;
font-weight: inherit;
}emphasis[type=”underline”] {
text-decoration: underline;
font-weight: inherit;
}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?
testing -
AuthorPosts
- You must be logged in to reply to this topic.