General XMetaL Discussion

  • scotth

    CSS Inherit Support

    Participants 1
    Replies 0
    Last 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:

    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?



  • You must be logged in to reply to this topic.

Lost Your Password?