Power Your Software Testing with AI and Cloud

Supercharge QA with AI for Faster & Smarter Software Testing

Next-Gen App & Browser Testing Cloud

CSS background-attachment

background-attachment defines how a background image will be displayed when the content is scrolled. Values include scroll, fixed, and local.

Last updated on : 2025-11-11

Browser Versions

IEIE

EdgeEdge

FirefoxFirefox

ChromeChrome

SafariSafari

OperaOpera

5.5 - 8
Test on IE 5.5 - 8 ...
9 - 11
Test on IE 9 - 11 ...
12 - 142
Test on Edge 12 - 142 ...
2 - 24
Test on Firefox 2 - 24 ...
25 - 147
Test on Firefox 25 - 147 ...
4 - 145
Test on Chrome 4 - 145 ...
14.1 - 16
Test on Safari 14.1 - 16 ...
3.2 - 13.1
Test on Safari 3.2 - 13.1 ...
5.1 - 26.2
Test on Safari 5.1 - 26.2 ...
9.5 - 10
Test on Opera 9.5 - 10 ...
10.6 - 122
Test on Opera 10.6 - 122 ...

...Fully Supported

...Partially

...No Support

Formal Definition

Inherited

no

Applies to

all elements. It also applies to ::first-letter and ::first-line.

Initial value

scroll

Animation type

discrete

Computed value

as specified

Specifications

CSS Backgrounds and Borders Module Level 4 # the-background-attachment

Syntax

/* Keyword values */
 background-attachment: scroll;
 background-attachment: fixed;
 background-attachment: local;
 /* Global values */
 background-attachment: inherit;
 background-attachment: initial;
 background-attachment: revert;
 background-attachment: unset;

Browser Compatibility

CSS background-attachment on IE is fully supported on 9-11 and partially supported on 5.5-8 IE versions.

CSS background-attachment on Edge is fully supported on all Edge versions.

CSS background-attachment on Firefox is fully supported on 25-147 and partially supported on 2-24 Firefox versions.

CSS background-attachment on Chrome is fully supported on all Chrome versions.

CSS background-attachment on Safari is fully supported on 5.1-26.2, partially supported on 3.2-13.1, and not supported on 14.1-16 Safari versions.

CSS background-attachment on Opera is fully supported on 10.6-122 and partially supported on 9.5-10 Opera versions.

CSS background-attachment on Safari on iOS is fully supported on 17.6-26.1, partially supported on 5-12.2, and not supported on 3.2-18.1 Safari on iOS versions.

CSS background-attachment on Android Browser is partially supported on 4.2-4.1, and not supported on 2.3-142 Android Browser versions.

CSS background-attachment on Opera Mobile is fully supported on 11.5-80, partially supported on 10-10, and not supported on 64-64 Opera Mobile versions.

CSS background-attachment on Chrome for Android is fully supported on all Chrome for Android versions.

CSS background-attachment on Firefox for Android is fully supported on all Firefox for Android versions.

CSS background-attachment on Samsung Internet is partially supported on 5-29, and not supported on 4-4 Samsung Internet versions.

88
Hightooltip

Overall Browser Compatibility Score

Note:CSS background-attachment shows a browser compatibility score of 88. This is a collective score out of 100 to represent browser support of a web technology. The higher this score is, the greater is the browser compatibility. The browser compatibility score is not a 100% reflection for every browser and the web technology support. However, it does give you an estimate on how much you should rely on a particular web technology in terms of browser compatibility.


Test on 3000+ browsers for CSS background-attachment & more

Test your website for CSS background-attachment and other web technologies. Get 100 FREE automation test minutes!

Test Now...

More Web Technologies

  • CSS
  • HTML 5
  • SVG
  • JS API
  • Security
  • JavaScript
  • Other Web Technologies
ShadowLT Logo

Start your journey with LambdaTest

Get 100 minutes of automation test minutes FREE!!

Did you find this page helpful?

Helpful

NotHelpful