[Bug 9097] Add wbr { content: "\200B"; } (ZWSP)?

http://www.w3.org/Bugs/Public/show_bug.cgi?id=9097

Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Depends on|                            |9711
         Resolution|NEEDSINFO                   |

--- Comment #4 from Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no> 2011-07-04 10:09:28 UTC ---
(In reply to comment #1)

> Rationale: Is that really equivalent in all cases? I'd rather just leave it up
> to prose unless that really does match all cases correctly.

Though browsers are extremely buggy and uneven w.r.t. how they implement - or
*whether* they implemnent <wbr>, the answer is  yes, it *is* equivalent in all
cases: normal, pre, nowrap, pre-wrap and pre-line. Test page: 
http://malform.no/testing/html5/nobr

The test page shows that unless the browser has a genereal bug in its CSS
generated content support *or* a bug in its implementation of Zero Width Space
character, then the proposed wbr{content:"\00200B"} matches reality.

Caveat: I disagree that <wbr> should have any effect inside white-space:pre and
white-space:nowrap. 

(In reply to comment #0)
> Add wbr { content: "\200B"; } (ZWSP)?

+1 But you forgot two zeroes:  wbr{content:"\00200B"}

(In reply to comment #2)
> I think it doesn't make a difference (for Opera/WebKit) in the normal case

Your statement is incorrect, with regard to Opera. The proposed style (see
above) does work very well with Opera. Not only does it work well in Opera: if
we change the selector from wbr{} to wbr:before{}, then it also works very well
in IE8. Test case for white-space:normal:
http://malform.no/testing/html5/nobr#normal

> and doesn't do what's desired inside <nobr>.

Test case: http://malform.no/testing/html5/nobr#nowrap

IE-in-quirks mode, IE6, IE7, Webkit and Konqueror do *not* define the desired
behavior. The desired behaviour is defined by Firefox 5, IE8, IE9 and Opera.
See bug 9711 (see 5th comment).

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Monday, 4 July 2011 10:09:30 UTC