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)

1.9.2 Branch
defect
Not set
normal

Tracking

()

VERIFIED FIXED
Tracking Status
blocking1.9.2 --- -
status1.9.2 --- .7-fixed

People

(Reporter: mrjoops, Assigned: bzbarsky)

References

Details

(Keywords: regression, testcase)

Attachments

(3 files)

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.
Attached file HTML test file (deleted) —
Version: unspecified → 3.6 Branch
This works fine with FF 3.5 and below.
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
Component: Layout → Layout: Form Controls
QA Contact: layout → layout.form-controls
Blocks: 491180
well, Fx 3.5, Chrome 4 dev and Opera 10.5 behave equally on above testcase. really intended?
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
Or maybe I got Webkit and Opera backwards in bug 491180? Opera's not clipping that text from the data: URI....
Attached patch The minimal fix (deleted) — Splinter Review
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
Attachment #423117 - Flags: review?(roc)
Blocks: 541839
Status: ASSIGNED → RESOLVED
blocking1.9.2: --- → ?
Closed: 15 years ago
status1.9.2: --- → ?
Flags: in-testsuite+
Resolution: --- → FIXED
Comment on attachment 423117 [details] [diff] [review] The minimal fix We should get this in on branch.
Attachment #423117 - Flags: approval1.9.2.1?
Does it have tests? It feels like this should have tests!
blocking1.9.2: ? → -
> Does it have tests? There's a reftest in the patch, yes....
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?
Attachment #423117 - Flags: approval1.9.2.3?
Attachment #423117 - Flags: approval1.9.2.3?
(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...
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.
Attachment #423117 - Flags: approval1.9.2.4? → approval1.9.2.6?
Attachment #423117 - Flags: approval1.9.2.6?
Attachment #423117 - Flags: approval1.9.2.6?
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+
Attached image VERIFIED FIXED (deleted) —
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.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: