Closed Bug 274337 Opened 20 years ago Closed 17 years ago

Clicking on the button makes it shrink in size (float:left and next to select drop down)

Categories

(Core :: CSS Parsing and Computation, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: martijn.martijn, Assigned: dbaron)

References

()

Details

(Keywords: helpwanted, testcase)

Attachments

(2 files, 1 obsolete file)

Clicking on one of the buttons on that size makes them shrink.
I'll attach a minimal testcase.

It seems like a regression:
Not happening in:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624
Happening in:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5a) Gecko/20030718
Attached file Testcase
I don't see it shrink, but I do see a change in size.  Seems to regress between
2003-06-14-05 and 2003-06-15-05 nightly builds.

I don't really see anything in that range that would cause this, though.  :(
Attached file Testcase #2
Tracing frame->GetStyleFont()->mFont.name and .size in nsHTMLReflowState::Init :
font=Arial,serif:240 in normal state and
font=Arial,serif:200 when the button is pressed (for Testcase #2, Line 1.)

Looks like a style system problem...
Assignee: nobody → dbaron
Component: Layout → Style System (CSS)
OS: Windows XP → All
QA Contact: layout → ian
Attached patch fix? (obsolete) — Splinter Review
This fixes it, I'm not sure exactly why 'medium' is needed there though...
Maybe this has something to do with it:
http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/layout/style/nsRuleNode.cpp&rev=1.156&root=/cvsroot&mark=642-663#635
Bug 98765 seems the most likely culprit in the interval Boris mentioned...
That looks like an invalid 'font' declaration.
Comment on attachment 186712 [details] [diff] [review]
fix?

Yeah, my mistake... so we should fix this then:
http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/layout/style/forms.css&rev=
3.101&root=/cvsroot&mark=106#100
Attachment #186712 - Attachment is obsolete: true
-moz-fixed is a generic font-family, -moz-button is a system font.
Perhaps what you want is:

font: -moz-button;
font-size: medium;

?
Keywords: helpwanted
see also bug 199755
Depends on: 199755
QA Contact: ian → style-system
This is now worksforme, using:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b2pre) Gecko/2007120505 Minefield/3.0b2pre
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → WORKSFORME
Flags: in-testsuite?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: