Closed
Bug 542116
Opened 15 years ago
Closed 14 years ago
Cursor/caret inside empty input text/password or contenteditable element ignores font-size
Categories
(Core :: Layout: Form Controls, defect)
Core
Layout: Form Controls
Tracking
()
RESOLVED
FIXED
mozilla2.0b8
Tracking | Status | |
---|---|---|
blocking2.0 | --- | final+ |
People
(Reporter: stream, Assigned: ehsan.akhgari)
References
Details
(Keywords: regression, testcase, Whiteboard: [fixed by bug 389321])
Attachments
(3 files, 1 obsolete file)
(deleted),
text/html
|
Details | |
(deleted),
patch
|
roc
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
roc
:
review+
|
Details | Diff | Splinter Review |
When there is empty input type file or password the cursor is with height of the content instead with the font-size. If there is any letter the cursor is with the correct font-size.
This is regression in 3.6 and trunk.
Reporter | ||
Comment 1•15 years ago
|
||
Comment 2•15 years ago
|
||
Looks like the behavior changed between 2009-05-18 (rev 9703fd69e126) and 2009-05-19 (rev 409416c625bc). Pushlog: http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=9703fd69e126&tochange=409416c625bc
Looks like a change from bug 481751. Karl, was this an intentional change, or did we just change the block height and caret happens to use the block height if there's nothing on the line?
Assignee: nobody → karlt
Blocks: 481751
Comment 3•15 years ago
|
||
It wasn't an intentional change. ISTR there being no text frame when there is no text and so the caret using the block height sounds likely.
(BTW, the cursor also changes height when adding characters from fonts with larger heights, which is not this bug nor a regression, but kinda related.)
OS: Windows XP → All
Summary: Cursor inside empty input file/password ignores font-size → Cursor/caret inside empty input file/password ignores font-size
Reporter | ||
Comment 4•15 years ago
|
||
I mean input type text not file, correcting the summary. There is no way to change the field height of input type file. The testcase is correct.
Summary: Cursor/caret inside empty input file/password ignores font-size → Cursor/caret inside empty input text/password ignores font-size
Reporter | ||
Comment 5•15 years ago
|
||
This appears also in empty contentediable elements.
Summary: Cursor/caret inside empty input text/password ignores font-size → Cursor/caret inside empty input text/password or contenteditable element ignores font-size
Reporter | ||
Comment 6•15 years ago
|
||
Attachment #423435 -
Attachment is obsolete: true
This is one of a few contentEditable bugs that has made it difficult/impossible to implement Google Spreadsheet's formula highlighting in Firefox. We'd like to turn the feature on in FF 3.7 assuming enough of the issues have been addressed in the browser. Thanks!
http://googledocs.blogspot.com/2010/05/formula-highlighting-in-spreadsheets.html
Comment 9•14 years ago
|
||
(In reply to comment #5)
> This appears also in empty contentediable elements.
The contenteditable behavior is not a regression from bug 481751
(contenteditable behaved like that in Firefox 3.5.), but it is quite likely that a fix would correct both input and contenteditable elements.
Comment 10•14 years ago
|
||
Transferring Ben's blocking request to 3.7.
Ben, can you clarify please whether it is the input or contenteditable that is involved in Google Spreadsheet's formula highlighting, and why the height of the cursor makes this difficult/impossible?
blocking2.0: --- → ?
Flags: blocking1.9.0.19?
Comment 11•14 years ago
|
||
We use the contentEditable to do the formula highlighting since you can't have multiple colors in a standard input. The cursor generally behaves strangely in Firefox's contentEditable such as being in the wrong position, being invisible, or being the wrong size. To deal with this, the feature had to be disabled in Firefox and we fallback to the regular input.
blocking2.0: ? → final+
Comment 12•14 years ago
|
||
Sounds like Ehsan is dealing with this in bug 389321.
Assignee: karlt → ehsan
Depends on: 389321
Assignee | ||
Comment 13•14 years ago
|
||
I've confirmed that bug 389321 will fix this. I'll attach a reftest as well.
Whiteboard: [will be fixed by bug 389321]
Assignee | ||
Comment 14•14 years ago
|
||
Attachment #486928 -
Flags: review?(roc)
Attachment #486928 -
Flags: review?(roc) → review+
Assignee | ||
Comment 15•14 years ago
|
||
These reftests will also cause an instance of the assertion in bug 596901 in layout/reftests/editor/passwd-4.html, since that test focuses a password field, which leads to a call to BeginSecureKeyboardInput, and since the internal flag has already been corrupted, we assert in that test as well.
The good news is that this assertion annotation is temporary, and can be removed once bug 556873 is resolved.
Attachment #487249 -
Flags: review?(roc)
Reporter | ||
Updated•14 years ago
|
Hardware: x86 → All
Attachment #487249 -
Flags: review?(roc) → review+
Assignee | ||
Updated•14 years ago
|
Whiteboard: [will be fixed by bug 389321] → [will be fixed by bug 389321][needs landing]
Assignee | ||
Comment 16•14 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/764912922f20
http://hg.mozilla.org/mozilla-central/rev/a85c59d4a26e
Status: NEW → RESOLVED
Closed: 14 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Whiteboard: [will be fixed by bug 389321][needs landing] → [fixed by bug 389321]
Target Milestone: --- → mozilla2.0b8
Comment 17•11 years ago
|
||
Related bug: 885406
You need to log in
before you can comment on or make changes to this bug.
Description
•