W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > May 2011

[Bug 12655] Suggestion: For <wbr/> tag, include an example of use of <wbr/> in "text-wrap: none" ("white-space: nowrap" or "white-space: pre") content

From: <bugzilla@jessica.w3.org>
Date: Fri, 13 May 2011 18:34:41 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1QKxCD-0000SI-E6@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=12655

Rob S. <RobS.w3c6@MailScreen.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |RobS.w3c6@MailScreen.com

--- Comment #1 from Rob S. <RobS.w3c6@MailScreen.com> 2011-05-13 18:34:40 UTC ---
WebKit browsers (Chrome, etc.) support the <wbr/> tag in "text-wrap: none"
content in addition to "text-wrap: normal" content. The current example shows
<wbr/> being used at non-whitespace locations, since breaks may already occur
at spaces in "text-wrap: normal" content.  However, in "text-wrap: none"
content ("white-space: nowrap" or "white-space: pre" included), it also makes
sense to include "wbr" elements in locations where whitespace appears.

Suggestion: Include an example with "white-space: nowrap" or "white-space:
pre", such as:

<p style="white-space: pre">echo ("This is a very long line of computer program
code. <wbr/>The author may want to allow it to be displayed across multiple
lines, <wbr/>even though it might only be one line of code in the actual
program.");</p>

or this example, which makes sure the trailing colon after the hypertext link
doesn't get put on a line all by itself and the content inside the "cite"
element breaks only at a couple appropriate locations:

<p>One of my favorite quotes from <span style="white-space: nowrap">
   <a href="http://www.Shakespeare-Literature.com/Twelfth_Night/10.html">
      <cite>William Shakespeare <wbr/>Twelfth Night <wbr/>Act II Scene
5</cite></a>:</span>
</p>
<blockquote
   cite="http://www.Shakespeare-Literature.com/Twelfth_Night/10.html"
>In my stars I am above thee; but be not afraid of greatness:
   some are born great, some achieve greatness,
   and some have greatness thrust upon 'em.
</blockquote>

-- 
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 Friday, 13 May 2011 18:34:43 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 16:31:10 UTC