word-wrap:break-word does not work in tables
Categories
(Core :: Layout: Tables, defect)
Tracking
()
People
(Reporter: karl156, Unassigned)
References
(Blocks 1 open bug, )
Details
(Keywords: css3, dev-doc-needed, testcase, Whiteboard: [css3-text])
Attachments
(2 files)
Updated•15 years ago
|
Comment 5•13 years ago
|
||
![]() |
||
Comment 7•12 years ago
|
||
Comment 8•11 years ago
|
||
Updated•11 years ago
|
Comment 10•9 years ago
|
||
Comment 11•9 years ago
|
||
![]() |
||
Comment 13•7 years ago
|
||
![]() |
||
Comment 14•7 years ago
|
||
Updated•3 years ago
|
Comment 15•3 years ago
|
||
The severity field for this bug is relatively low, S3. However, the bug has 10 votes.
:dholbert, could you consider increasing the bug severity?
For more information, please visit auto_nag documentation.
Comment 16•3 years ago
|
||
The last needinfo from me was triggered in error by recent activity on the bug. I'm clearing the needinfo since this is a very old bug and I don't know if it's still relevant.
Comment 17•2 years ago
|
||
= Text wrapping unbreakable texts in "<table>" has incorrect width assumption =
Derived from: https://util.unicode.org/UnicodeJsps/character.jsp?a=%23
Test case:
[[
<body style="word-wrap: break-word; border: 1px solid">
<table><tr>
<td style="background-color: #ff9bce; word-wrap: break-word">af,as,ast,az,bgc,bho,bn,brx,ca,ccp,ce,ceb,chr,cv,cy,da,de,doi,dsb,dz,ee,en,es,eu,fi,fil,fo,fr,fy,ga,gd,gl,gu,gv,hi,hi-Latn,hsb,hu,ia,id,ii,is,ja,ka,kea,kgp,kk,kn,ko,kok,ks,ksh,ku,ky,lb,lij,lkt,lo,lv,mai,ml,mn,mni,mr,ms,my,nb,nds,nl,nn,no,oc,or,os,pcm,pl,pt,qu,raj,ru,sa,sc,sd-Deva,si,so,sq,sr,su,sv,szl,ta,tg,th,tk,to,tr,tt,uz,vi,vmw,xh,yo,yrl,yue,yue-Hans,za,zh,zh-Hant</td>
<td style="background-color: #a5d6ff">af,as,ast,az,bgc,bho,bn,brx,ca,ccp,ce,ceb,chr,cv,cy,da,de,doi,dsb,dz,ee,en,es,eu,fi,fil,fo,fr,fy,ga,gd,gl,gu,gv,hi,hi-Latn,hsb,hu,ia,id,ii,is,ja,ka,kea,kgp,kk,kn,ko,kok,ks,ksh,ku,ky,lb,lij,lkt,lo,lv,mai,ml,mn,mni,mr,ms,my,nb,nds,nl,nn,no,oc,or,os,pcm,pl,pt,qu,raj,ru,sa,sc,sd-Deva,si,so,sq,sr,su,sv,szl,ta,tg,th,tk,to,tr,tt,uz,vi,vmw,xh,yo,yrl,yue,yue-Hans,za,zh,zh-Hant</td>
</tr></table>
af,as,ast,az,bgc,bho,bn,brx,ca,ccp,ce,ceb,chr,cv,cy,da,de,doi,dsb,dz,ee,en,es,eu,fi,fil,fo,fr,fy,ga,gd,gl,gu,gv,hi,hi-Latn,hsb,hu,ia,id,ii,is,ja,ka,kea,kgp,kk,kn,ko,kok,ks,ksh,ku,ky,lb,lij,lkt,lo,lv,mai,ml,mn,mni,mr,ms,my,nb,nds,nl,nn,no,oc,or,os,pcm,pl,pt,qu,raj,ru,sa,sc,sd-Deva,si,so,sq,sr,su,sv,szl,ta,tg,th,tk,to,tr,tt,uz,vi,vmw,xh,yo,yrl,yue,yue-Hans,za,zh,zh-Hant
]]
"word-wrap: break-word" ("overflow-wrap: break-word") doesn't work intended.
"overflow-wrap: anywhere" ("word-break: break-word") works though.
Comment 18•1 year ago
|
||
The issue is not Firefox-exclusive: affects Chrome too.
Comment 19•1 year ago
|
||
(In reply to Thomas Wisniewski from comment #10)
I just tested in Chromium 49 and today's Firefox nightly, and both now
render the testcase on this bug similarly
[...]
In light of this, I suspect this is a WONTFIX.
(In reply to Karl Dubost💡 :karlcow from comment #14)
I would say this is working now?
Yup, I think we're good here, and I agree we should WONTFIX. In particular:
- Firefox's behavior today matches Firefox's behavior as of Nightly 2011-01-01 (approximately when this was filed).
- Other browser engines (Chromium and WebKit) match us at this point.
- The one thing that we were doing differently in comment 13's screenshot (which I can reproduce in Nightly 2018-08-16) seems to have been a temporary issue that's been fixed in more recent builds.
I suspect the lack-of-text-wrapping-in-the-table-sizing here arises out of some specialized/quirky behavior of word-wrap
(per comment 11) and/or tables; not sure about the exact details, and it's perhaps weird, but it's good that things are interoperable, and that there's an alternate bit of CSS (word-break: break-word
) that's designed a bit more recently/intentionally and interoperably produces the desired result.
(In reply to Master ? [:masterquestionable] from comment #17)
= Text wrapping unbreakable texts in "<table>" has incorrect width assumption =
[...]
"word-wrap: break-word" ("overflow-wrap: break-word") doesn't work intended.
"overflow-wrap: anywhere" ("word-break: break-word") works though.
(In reply to Master ? [:masterquestionable] from comment #18)
The issue is not Firefox-exclusive: affects Chrome too.
Firefox, Chrome, and Safari all render the testcase from comment 17 the same; I suspect it is the same issue described in this bug (so: good that you posted here), and I think your note comparing of word-wrap
vs. word-break
matches comment 11 here.
Unless there were an agreed-upon standards-based resolution to change behavior here (with browsers agreeing to do something different from what we interoperably do now), I don't think we're going to spend time doing something different & breaking compatibility/interoperability on this point. Hence: --> WONTFIX.
Description
•