RESOLVED FIXED 3437
"wrap" attribute not supported on <pre>
https://bugs.webkit.org/show_bug.cgi?id=3437
Summary "wrap" attribute not supported on <pre>
David Young
Reported 2005-06-11 08:42:45 PDT
Not much to say, it's a pretty simple tag, though apparently it's a proprietary MS extension to CSS, but that doesn't stop people from using it. Looking at html_blockimpl.cpp, there's just no code there to support it.
Attachments
testcase (363 bytes, text/html)
2006-01-16 01:11 PST, Joost de Valk (AlthA)
no flags
Dave Hyatt
Comment 2 2005-06-14 11:31:11 PDT
I may be wrong, but i think this is equivalent to the new CSS2.1 white-space property value, "pre-wrap."
Niels Leenheer (HTML5test)
Comment 3 2005-06-15 11:56:46 PDT
I think you're right. The CSS 2.1 even gives the following example to mimic IE's proprietary wrap parameter: "In addition, the effect of an HTML PRE element with the non-standard "wrap" attribute is demonstrated by the following example:" pre[wrap] { white-space: pre-wrap }
Eric Seidel (no email)
Comment 4 2005-12-27 13:53:50 PST
We would need a test case. The css 2.1 test suite we've landed does not seem to have a test for this.
Joost de Valk (AlthA)
Comment 5 2006-01-16 01:11:13 PST
Created attachment 5716 [details] testcase
Joost de Valk (AlthA)
Comment 6 2006-01-16 01:13:38 PST
Added a testcase, even with <pre wrap="soft> and <pre wrap="hard"> in it... Don't know if we should support that though.
Paul Marks
Comment 7 2006-05-30 00:19:00 PDT
This is useful for styling <code> tags using CSS; currently just setting white-space: pre; is undesirable, because on small windows (or long lines of code), this forces the code to flow across other parts of the page. For <code>, the desirable effect is to have "white-space: pre-wrap;" with soft wrapping, though I cannot speak as to whether it's useful to support both hard and soft wrapping...
Paul Marks
Comment 8 2006-05-30 00:25:17 PDT
Regarding my comments in #7: Looks like I was using <code> incorrectly; I got its default behavior confused with that of <pre>. However, <pre> still flows text outside of its box for small windows or long lines, which was already known, so please pardon the bump.
Alexey Proskuryakov
Comment 9 2011-03-11 12:03:17 PST
This looks like it's working now.
Robert Hogan
Comment 10 2012-12-26 10:20:19 PST
It does look like there's nothing to do in this bug anymore. So please shout if you disagree!
Note You need to log in before you can comment on or make changes to this bug.