Closed
Bug 33655
Opened 26 years ago
Closed 25 years ago
[WFM][TXT]INPUT incorrectly applying SIZE= attribute
Categories
(Core :: Layout: Form Controls, defect, P3)
Tracking
()
VERIFIED
WORKSFORME
Future
People
(Reporter: andrew, Assigned: rods)
References
()
Details
Attachments
(1 file)
|
538 bytes,
text/html
|
Details |
See the URL for an example of a INPUT TYPE=TEXT field specified as SIZE=10 which
is being displayed as (approximately!) SIZE=18
Comment 1•26 years ago
|
||
andrew@cat-it.co.nz - could you revist your mozilla-bug-demo and say which bits
you think are still broken, commenting in the bugs appropriately? Thanks :-)
Gerv
| Assignee | ||
Comment 2•26 years ago
|
||
The HTML 4.x spec does not specify how wide the inpt type=text should be when
the "size" is set and the control is using a proportional font. We get the width
of "Ww" and divide by 2 to get an average char width instead of using the
average char width of the font. The tends to make our controls wider compared
to IE but we almost always fit any combination of 10 chars where they do not.
If you want exactly 10 chars you should a fixed width font in Standard/"Strict"
mode.
Status: UNCONFIRMED → RESOLVED
Closed: 26 years ago
Resolution: --- → INVALID
| Reporter | ||
Comment 3•26 years ago
|
||
Well, when I look at my size=10 field, filled with WWWWWWWWWW there is still
space left over, so I guess this really _is_ a bug, since you are saying it
should exactly fit WwWwWwWwWw.
There is also some doubt in my mind whether a field should 'fit almost all cases
of 10 characters' for a size=10 field. I guess this is a philosophical point
that could be argued forever. I know that Netscape's approach of 10 numeric
characters is probably narrower than ideal - I think it is narrower than IE, but
on the other hand approximating character width as a Ww average seems too wide
to me.
I have put a variety of suggestions on my demo page anyway. My preference would
probably be for a Gg average, which is going to hold about 90% of all real-world
10-character strings, and hey the field can scroll for the others, can't it?
Seems I can't re-open this bug, but I don't believe that it is validly closed.
Updated•26 years ago
|
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
Comment 4•26 years ago
|
||
Reopening for further discussion, at the request of the reporter.
Gerv
Comment 5•26 years ago
|
||
Just as an additional data point, in my copy of 20000512 under Windows 95, a
line of ten W's exactly fills the field; therefore, if we are currently supposed
to be taking a Ww average, then there's something wrong.
Gerv
Status: UNCONFIRMED → NEW
Ever confirmed: true
| Reporter | ||
Comment 6•26 years ago
|
||
Under Linux 2000051210 the ten W's leaves room for another 0.6 of a W, so there
is a Linux difference as well.
PS. I forgot to put my (updated) page on the internet - it is now.
| Assignee | ||
Comment 7•26 years ago
|
||
| Assignee | ||
Updated•26 years ago
|
Status: NEW → RESOLVED
Closed: 26 years ago → 26 years ago
Resolution: --- → LATER
Target Milestone: --- → M20
| Assignee | ||
Comment 8•26 years ago
|
||
I have tested this out on Linux and Windows. It seems to be sizing corectly on
Windows and Linux is a little off, but that probably has more to do with the
font metrics on Linux then any of the algorithms used for calculating the width.
I just don't think this is a bug. marking as later
Comment 10•26 years ago
|
||
reopening and marking Future...
Status: RESOLVED → REOPENED
Resolution: LATER → ---
Target Milestone: M20 → Future
| Assignee | ||
Updated•26 years ago
|
Status: REOPENED → ASSIGNED
Summary: INPUT incorrectly applying SIZE= attribute → [TXT]INPUT incorrectly applying SIZE= attribute
| Assignee | ||
Updated•25 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 26 years ago → 25 years ago
Resolution: --- → WORKSFORME
Summary: [TXT]INPUT incorrectly applying SIZE= attribute → [WFM][TXT]INPUT incorrectly applying SIZE= attribute
| Assignee | ||
Comment 11•25 years ago
|
||
This is still working ok as far as I can tell. The little space at the end is a
different filed bug for the positioning of the text inside the text control.
marking works for me
Comment 12•25 years ago
|
||
I think this bug should be reopened. That's true that W3C doesn't specifies how
the size should be computed with proportional fonts. But the algorithm of
Sizeof("Ww") / 2, is OK.
I you open the attachment with mozilla 2000120620:
http://bugzilla.mozilla.org/showattachment.cgi?attach_id=8702
you can see that last tree inputs are extremely wide. And the width of the
controls aren't equal to the formula.
I also support Andrew McMillar when hi says that a "Gg" average aproximates the
formula to the "real" world.
| Assignee | ||
Comment 13•25 years ago
|
||
The last three controls look fine on WinNT. What fonts do you installed on your
Linux box? Are they the True-type fonts? At this point on Linux, it is all about
font metrics, not the algorthims.
Comment 14•25 years ago
|
||
I've tried on Windows 2000 and it doesn't looks fine. They are very (so much)
wide. Can you test it on this platform? Do you need more info?
You need to log in
before you can comment on or make changes to this bug.
Description
•