[Webkit-unassigned] [Bug 84448] New: combining text-align: justify with white-space: pre-wrap does not justify the text

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Apr 20 06:53:32 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=84448

           Summary: combining text-align: justify with white-space:
                    pre-wrap does not justify the text
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: jelte.liebrand at quickoffice.com


Created an attachment (id=138086)
 --> (https://bugs.webkit.org/attachment.cgi?id=138086&action=review)
Test html file

At the moment, webkit does not justify text if the text also has white-space: pre-wrap set.  I've attached a small sample test html page to show this problem. 

According to the CSS3 specification however, the UA could choose to indeed justify the text in these cases, as long as tab stop positions are adhered to.  Here's the relevant text from the spec:

In the case of ‘justify’, the UA may stretch or shrink any inline
boxes by adjusting their text in addition to shifting their positions.
(See also ‘text-justify’, ‘letter-spacing’, and ‘word-spacing’.) If an
element's white space is set to be non-collapsible, then the UA is not
required to adjust its text for the purpose of justification and may
instead treat the text as having no expansion opportunities. If the UA
chooses to adjust the text, then it must ensure that tab stops
continue to line up as required by the white space processing rules.


It would be very useful to add this ability, so that we can represent more word processing like features where end users tend to use multiple white spaces to layout their text, whilst also being able to justify align their paragraphs.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list