Skip to main content
Participating Frequently
Mar 29, 2011 8:22 PM UTC
Answered

backgroundColor/backgroundAlpha non-inheriting?

I'm curious to if there is a reason that backgroundColor and backgroundAlpha are non-interiting.  They are the only character formats that do not inherit.

Thanks

This topic is closed to new replies. Start a new post to keep the conversation going.
Jin-HuangCorrect answer
Adobe Employee
Mar 30, 2011 2:28 AM UTC

backgroundColor on block-level elements is an unimplemented feature. Applying  backgroundColor on a paragraph is not the same as applying it to all the spans  of the paragraph, because the former will cover the entire area covered by the  paragraph (including first line indent), and the latter includes only the area  covered by the text. Because backgroundColor is non-inheritable, applying it to  the paragraph doesn't cause it to be applied to the spans. Eventually TLF should  include both backgroundColor on block-level and borders; but, alas, not yet.

I copy robin's reply from http://forums.adobe.com/thread/786508?tstart=0

2 replies

Jin-HuangCorrect answer
Adobe Employee
Mar 30, 2011 2:28 AM UTC

backgroundColor on block-level elements is an unimplemented feature. Applying  backgroundColor on a paragraph is not the same as applying it to all the spans  of the paragraph, because the former will cover the entire area covered by the  paragraph (including first line indent), and the latter includes only the area  covered by the text. Because backgroundColor is non-inheritable, applying it to  the paragraph doesn't cause it to be applied to the spans. Eventually TLF should  include both backgroundColor on block-level and borders; but, alas, not yet.

I copy robin's reply from http://forums.adobe.com/thread/786508?tstart=0

Translate
blmarksAuthor
Participating Frequently
Mar 30, 2011 3:22 AM UTC

Thanks Jin.

Translate