• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 10. Text Properties > linefeed-treatment Property

10.19. linefeed-treatment Property

Like the wrap-option property (as well its fellow white-space sub-family of properties), the linefeed-treatment property is designed to work with embedded linefeed characters. In this case, when a U+000A character block is encountered, this property determines how to interpret this character as a linefeed.

This property has nine values, auto, ignore, preserve, treat-as-space, treat-as-zero, width-space, and ignore-if-after-linefeed, as well as the initial and inherit values. The auto value is the default, and tells the browser that it should treat linefeed characters as either a space character, a space character with zero width, or no character at all (the choice is to be made by the browser). The ignore value does just that — any linefeed characters are treated as if they weren't there. The preserve value says that linefeed characters indicate a boundary to the current text and sets a visual linefeed. The treat-as-space transforms any linefeed characters into a space character, nullifying their effect. The treat-as-zero-width-space is more specific, telling the browser that it should treat linefeeds like a space character with no width. The ignore-after-linefeed is there for cases where they may be multiple sequential linefeed characters — only one linefeed is accepted. The initial value is a way to explicitly set a property to its default value. Finally, the inherit value takes on whatever parent value may pre-exist for this property.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint