Closed Bug 355855 Opened 18 years ago Closed 18 years ago

CSS3 word-wrap: break-word not supported

Categories

(Firefox :: General, enhancement)

x86
Windows XP
enhancement
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 99457

People

(Reporter: robert.haas, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7 http://www.w3.org/TR/2005/WD-css3-text-20050627/ section 5.2 describes a CSS property called 'word-wrap' with legal values 'normal' and 'break-word': "This property specifies whether the UA may break within a word to prevent overflow when an otherwise-unbreakable string is too long to fit within the containing block." This would be nice to have because, without it, there is really no way of making sure that a box which may contain arbitrary text (e.g. because it is derived from user input) does not exceed a specified width. It is also worth noting that this property is supported by Internet Explorer, at least in 6.0 and possibly in earlier versions. Reproducible: Always Steps to Reproduce: Create a table with several cells and put a CSS width property on one of them. Also put "word-wrap: break-word". Then put a really, really long word (like WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW) into one of the cells. Actual Results: Since the CSS property is unsupported, the text stretches the box horizontally instead of forcing a line break. Expected Results: Line breaks get inserted in mid-word as necessary to prevent the box from stretching horizontally.
*** This bug has been marked as a duplicate of 99457 ***
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.