Closed
Bug 541382
Opened 15 years ago
Closed 15 years ago
CSS property "overflow: hidden" doesn't work on button with out-of-button text-indent value
Categories
(Core :: Layout: Form Controls, defect)
Tracking
()
VERIFIED
FIXED
People
(Reporter: mrjoops, Assigned: bzbarsky)
References
Details
(Keywords: regression, testcase)
Attachments
(3 files)
(deleted),
text/html
|
Details | |
(deleted),
patch
|
roc
:
review+
dveditz
:
approval1.9.2.7+
|
Details | Diff | Splinter Review |
(deleted),
image/png
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2) Gecko/20100115 Firefox/3.6 (.NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2) Gecko/20100115 Firefox/3.6 (.NET CLR 3.5.30729)
When using the following piece of HTML code, I expected FF 3.6 to display a button without text inside.
<button style="height: 20px; overflow: hidden; text-indent: 300px; width: 200px;">text</button>
Reproducible: Always
Steps to Reproduce:
1. Create a new HTML file with your favorite editor.
2. Add this button to your HTML body : <button style="height: 20px; overflow: hidden; text-indent: 300px; width: 200px;">text</button>
3. Open your HTML file with FF 3.6
Actual Results:
Text appears next to the button, as if "overflow: hidden" had no effect.
Expected Results:
Text should be hidden.
Reporter | ||
Comment 1•15 years ago
|
||
Reporter | ||
Updated•15 years ago
|
Version: unspecified → 3.6 Branch
Reporter | ||
Comment 2•15 years ago
|
||
This works fine with FF 3.5 and below.
Updated•15 years ago
|
Component: General → Layout
Keywords: regression,
testcase
OS: Windows XP → All
Product: Firefox → Core
QA Contact: general → layout
Hardware: x86 → All
Version: 3.6 Branch → 1.9.2 Branch
Comment 3•15 years ago
|
||
From the regression range below this is from Bug 491180 which means this was an intended change:
0722 text not shown http://hg.mozilla.org/mozilla-central/rev/02f8bf10f441
0723 text shown http://hg.mozilla.org/mozilla-central/rev/d783d91beec5
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=02f8bf10f441&tochange=d783d91beec5
Component: Layout → Layout: Form Controls
QA Contact: layout → layout.form-controls
Comment 4•15 years ago
|
||
well, Fx 3.5, Chrome 4 dev and Opera 10.5 behave equally on above testcase. really intended?
Assignee | ||
Comment 5•15 years ago
|
||
Man. Safari's changed its behavior since the patch for bug 491180 (and in particular they now clip the text in the data: testcase from bug 491180 comment 9.
The non-visible-overflow behavior is of course bogus, but I wonder whether we should try clipping the non-positioned text in the visible case. My gut feeling is "no" (especially since it would be a pain). roc?
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee | ||
Comment 6•15 years ago
|
||
Or maybe I got Webkit and Opera backwards in bug 491180? Opera's not clipping that text from the data: URI....
Assignee | ||
Comment 7•15 years ago
|
||
Attachment #423117 -
Flags: review?(roc) → review+
Assignee | ||
Comment 8•15 years ago
|
||
Status: ASSIGNED → RESOLVED
blocking1.9.2: --- → ?
Closed: 15 years ago
status1.9.2:
--- → ?
Flags: in-testsuite+
Resolution: --- → FIXED
Assignee | ||
Comment 9•15 years ago
|
||
Comment on attachment 423117 [details] [diff] [review]
The minimal fix
We should get this in on branch.
Attachment #423117 -
Flags: approval1.9.2.1?
Comment 11•15 years ago
|
||
Does it have tests? It feels like this should have tests!
blocking1.9.2: ? → -
Assignee | ||
Comment 12•15 years ago
|
||
> Does it have tests?
There's a reftest in the patch, yes....
Comment 13•15 years ago
|
||
Comment on attachment 423117 [details] [diff] [review]
The minimal fix
We missed 1.9.2.2. Moving approval request forward.
Attachment #423117 -
Flags: approval1.9.2.2? → approval1.9.2.3?
Assignee | ||
Updated•15 years ago
|
Attachment #423117 -
Flags: approval1.9.2.3?
Assignee | ||
Updated•15 years ago
|
Attachment #423117 -
Flags: approval1.9.2.3?
Reporter | ||
Comment 15•15 years ago
|
||
(In reply to comment #13)
> (From update of attachment 423117 [details] [diff] [review])
> We missed 1.9.2.2. Moving approval request forward.
It seems that we missed 1.9.2.3 too...
Assignee | ||
Comment 16•15 years ago
|
||
1.9.2.3 was a security firedrill release. It was 1.9.2 plus exactly one fix. The release that was planned to be 1.9.2.3 just got renamed to 1.9.2.4.
Updated•15 years ago
|
Attachment #423117 -
Flags: approval1.9.2.4? → approval1.9.2.6?
Assignee | ||
Updated•15 years ago
|
Attachment #423117 -
Flags: approval1.9.2.6?
Assignee | ||
Updated•15 years ago
|
Attachment #423117 -
Flags: approval1.9.2.6?
Comment 17•15 years ago
|
||
Comment on attachment 423117 [details] [diff] [review]
The minimal fix
Approved for 1.9.2.6, a=dveditz for release-drivers
Attachment #423117 -
Flags: approval1.9.2.6? → approval1.9.2.6+
Assignee | ||
Comment 18•14 years ago
|
||
Comment 20•14 years ago
|
||
VERIFIED FIXED on Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.7) Gecko/20100701 Firefox/3.6.7, screenshot attached.
Updated•14 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•