Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6558653
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:13:33+00:00 2026-05-25T13:13:33+00:00

This is confirmed to be a bug in Firefox and you can learn more

  • 0

This is confirmed to be a bug in Firefox and you can learn more about it at https://bugzilla.mozilla.org/show_bug.cgi?id=686247

I am setting overflow to hidden via jQuery but it does not get applied in Firefox 5 while in other browsers it does get applied well. Please test this jsfiddle to see the problem yourself: http://jsfiddle.net/f4HJd/ And here is an image of how it looks in Firefox 5: https://i.stack.imgur.com/70zfy.png and an image of that in Chrome to compare: https://i.stack.imgur.com/eKVPB.png What is wrong with overflow in FF5?

EDIT:

After some tests I found out that the overflow property does get applied to elements that have been added dynamically via JavaScript. So, that means we can workaround the bug by replacing the element in question with its copy and applying overflow: hidden to it as follows in jQuery:

$('textarea').replaceWith($('textarea').clone().css('overflow', 'hidden'));

Just as a side note, we could even avoid replacing the element when possible like so:

// for all browsers
$('textarea').css('overflow', 'hidden');
// for FF only
if ($.browser.mozilla) $('textarea').replaceWith($('textarea').clone());

EDIT 2:

As further tests showed, overflow: hidden also get applied well when the position property is set to absolute or when the display property is set to either block or inline-block, via CSS statically or via JavaScript. So, something like this can easily help out:

$('textarea').css({ display: 'inline-block', overflow: 'hidden' });

EDIT 3:

The problem only appear to be regarding textarea elements. I tested it on DIV elements and the content get clipped well. So, I suspect it is because textarea elements are inline and the overflow property is meant to work for block-level elements.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T13:13:34+00:00Added an answer on May 25, 2026 at 1:13 pm

    This appears to be a bug in Firefox. The call from jQuery to set overflow equal to hidden doens’t seem to work in Firefox unless you set the textarea’s css overflow to a value in your css or style attribute first, then tell jQuery to set overflow to hidden.

    textarea {
        width: 100px;
        height: 100px;
        overflow:auto;
    }
    
    (function ($) {
        $(document).ready(function () {
            $('textarea').css('overflow', 'hidden');
        });
    })(jQuery);
    

    Although, I am curious why you don’t just create a css class for that textarea, instead of relying on javascript to hide it’s scrollbars in the first place.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

EDIT: This was just confirmed as a bug in Doctrine 2 http://www.doctrine-project.org/jira/browse/DDC-1112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15724#action_15724 I have
Edit: This is a confirmed bug in jQuery 1.3.1. It is fixed in jQuery
Update : This is a confirmed bug in Silverlight 4 beta. http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=523052 I solved
EDIT: This bug was logged, and confirmed as a Facebook bug . It has
Update: This bug has been confirmed by at least two others. Even if you
Per this helpful article I have confirmed I have a connection pool leak in
This is a bit of a long shot, but if anyone can figure it
I've confirmed this same behavior in VS2005, so I was wrong to call it
This should be a simple one for someone. I just can't figure out how
I cannot imagine how this is anything other than a bug, but since I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.