Closed
Bug 712128
Opened 13 years ago
Closed 13 years ago
Irremovable whitespace on textareas
Categories
(Core :: DOM: Editor, defect)
Core
DOM: Editor
Tracking
()
RESOLVED
DUPLICATE
of bug 157846
People
(Reporter: alexhenrie24, Unassigned)
Details
Attachments
(4 files)
User Agent: Mozilla/5.0 (Ubuntu; X11; Linux x86_64; rv:8.0) Gecko/20100101 Firefox/8.0
Build ID: 20111115183541
Steps to reproduce:
Firefox adds extra whitespace to textarea elements. This whitespace is not removable even by setting margin:0 and padding:0. To demonstrate the problem, I made a simple test case where black text in a textarea is positioned exactly on top of red text in an identically styled div. In a correct rendering, the black text will hide the red text, and indeed this is what happens in Chromium. In Firefox, the red text is out of alignment with the black text and shows through.
This bug is a problem for Javascript-based source code editors which behave much like the test case. For example, EditArea includes a hack for Firefox on lines 213-218 of http://editarea.svn.sourceforge.net/viewvc/editarea/trunk/edit_area/edit_area.js?revision=30&view=markup but even this hack does not fix the problem in all circumstances or on all platforms.
Reporter | ||
Comment 1•13 years ago
|
||
Reporter | ||
Comment 2•13 years ago
|
||
Reporter | ||
Comment 3•13 years ago
|
||
Reporter | ||
Updated•13 years ago
|
Attachment #582950 -
Attachment mime type: text/plain → application/xhtml+xml
Comment on attachment 582950 [details]
Textarea rendering test.html
Confirming on trunk
Attachment #582950 -
Attachment mime type: application/xhtml+xml → text/html
Comment 5•13 years ago
|
||
> In a correct rendering,
There is no spec defining rendering of text controls.
The space is there because it's needed to match IE and WebKit behavior in other cases. Removing it requires implementing a non-CSS scrolling mechanism for textareas. There are existing bugs on that, but rewriting the entire textarea layout implementation around this is a low priority.
Whiteboard: DUPEME
> There are existing bugs on that
I found bug 33654, bug 73817, bug 157846 but none seems related to this issue.
Updated•13 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•