santosh
santosh

Reputation: 892

background-attachment: local; CSS style not working in Firefox

I am trying to show a line number for every line. My code working properly in Chrome but in Firefox it's not working because of background-attachment: local; not accepting in Firefox. I want it should work in both browsers.

JsFiddle: https://jsfiddle.net/k8go4d5b/

Here is my code:

textarea{
  background: url(http://i.imgur.com/2cOaJ.png);
  background-attachment: local;
  background-repeat: no-repeat;
  padding-left: 35px;
  padding-top: 10px;
  border-color:#ccc;
}
<textarea rows="10" cols="40"></textarea>

Upvotes: 1

Views: 286

Answers (2)

Graymatter
Graymatter

Reputation: 82

I am seeing the same issue with Firefox version 124.0 (64bit) on Windows.  This is the latest released version at the time of writing.

This is indeed a bug in Firefox when applying background-attachment: local; to a textarea element.

See https://bugzilla.mozilla.org/show_bug.cgi?id=1007064

This bug was reported/opened more than 10 years ago.  It's mind-blowing that it has not been fixed in all that time.

I have not found any workarounds.

Upvotes: 1

Mateo Randwolf
Mateo Randwolf

Reputation: 2870

It works for me in Firefox. Check the version you are using, here you can find the allowance of this resource in firefox

Hope this helped. :D

Upvotes: -1

Related Questions