Bug 26414 - Text overflows from a table when <WBR> occurs in an element with "white-space:pre"
Summary: Text overflows from a table when <WBR> occurs in an element with "white-space...
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on: 64005
Blocks:
  Show dependency treegraph
 
Reported: 2009-06-15 14:31 PDT by Niranjan Tulpule
Modified: 2022-07-12 12:38 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Niranjan Tulpule 2009-06-15 14:31:10 PDT
Webkit seems to be confused when <WBR> occurs in an element with "white-space:pre" inside a table. 

Reduced test case:

<HTML> 
  <BODY> 
    <TABLE width="100%" border="1" bordercolor="black"> 
      <TBODY> 
      <TR> 
        <TD> 
          <SPAN style="white-space:pre">aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa<WBR>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</SPAN> 
        </TD> 
      </TR> 
    </TBODY> 
    </TABLE> 
  </BODY> 
</HTML>
Comment 1 Leif Halvard Silli 2011-07-08 00:08:24 PDT
With the styling I proposed in Bug 64005, the issue would not have occurred:

http://malform.no/testing/html5/wbr-table
Comment 2 Brent Fulgham 2022-07-12 12:37:19 PDT
WebKit and Gecko agree on the behavior here, Blink differs.
Comment 3 Brent Fulgham 2022-07-12 12:38:02 PDT
We do not overflow the table, but we do not break the line (like Blink does).

I don't believe there is an active issue here.