[Webkit-unassigned] [Bug 54598] Trailing tabs in a textarea become unselectable under certain conditions

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jun 13 16:57:24 PDT 2011


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





--- Comment #19 from Ryosuke Niwa <rniwa at webkit.org>  2011-06-13 16:57:23 PST ---
(In reply to comment #18)
> 16.6.1:
> 2. If 'white-space' is set to 'pre' or 'pre-wrap', any sequence of spaces (U+0020) unbroken by an element boundary is treated as a sequence of non-breaking spaces. However, for 'pre-wrap', a line breaking opportunity exists at the end of the sequence.
> 
> ...
> 1. If a space (U+0020) at the beginning of a line has 'white-space' set to 'normal', 'nowrap', or 'pre-line', it is removed.
> ...
> 4. If spaces (U+0020) or tabs (U+0009) at the end of a line have 'white-space' set to 'pre-wrap', UAs may visually collapse them.
> 
> It's the combination of these 3 paragraphs that get us into trouble.  If we never collapsed tabs or spaces at the end of a line with 'white-space' set to 'pre-wrap', this bug will go away.

Uh-huh!  We're violating point 1 by applying point 4 to the leading whitespace as well.  We can fix this bug by NOT collapsing leading whitespace when 'white-space' is set to 'pre-wrap'.

-- 
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