Bug 13577
| Summary: | ER: the default font for textarea is not monospace (needed platform specific html4.css) | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Jungshik Shin <jshin> |
| Component: | Forms | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED WONTFIX | ||
| Severity: | Enhancement | CC: | ahmad.saleem792, ap, bfulgham, fishd, mike, rniwa, simon.fraser, zalan |
| Priority: | P4 | ||
| Version: | 523.x (Safari 3) | ||
| Hardware: | All | ||
| OS: | All | ||
Jungshik Shin
This is not a bug per se, but it'd be nice to be compatible with Firefox and MS IE.
Adding the following line to WebCore/css/html4.css (between the style specification for 'input, textarea, keygen,...' and that for 'input[type="hidden"]' would do it.
textarea {
font-family: monospace;
}
I wonder what others think of this change.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Dave Hyatt
This is incompatible with how textareas look on the Mac. I think it would be appropriate for the RenderTheme to make this decision so that a RenderThemeWin could do what it wanted to do.
Darin Fisher (:fishd, Google)
Since this can be solved via a platform-specific change to html4.css, wouldn't it be better to ship a platform-specific html4.css instead of modifying code to support this?
Robert Blaut
Confirmed as enhancement request.
Ahmad Saleem
It is currently configured to "system-ui":
https://github.com/WebKit/WebKit/blob/main/Source/WebCore/css/html.css#L411
plus HTML standard does not add "monospace" for textarea:
>> https://html.spec.whatwg.org/#the-textarea-element
ap@webkit.org - Is this valid anymore?
Ryosuke Niwa
We're not making this change in general for texture.