Skip to main content
Participating Frequently
March 29, 2011
Answered

backgroundColor/backgroundAlpha non-inheriting?

  • March 29, 2011
  • 1 reply
  • 560 views

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 has been closed for replies.
Correct answer Jin-Huang

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

1 reply

Jin-HuangCorrect answer
Adobe Employee
March 30, 2011

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

blmarksAuthor
Participating Frequently
March 30, 2011

Thanks Jin.