CSS background-attachment

Last updated on : 2022-04-10

Note:
CSS background-attachment shows a browser compatibility score of 67. 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.

Overview

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

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, partially supported on 5.5-8, and not supported on below 5.5 IE versions.
  • CSS background-attachment on Edge is fully supported on 12-99, partially supported on None of the versions, and not supported on below 12 Edge versions.
  • CSS background-attachment on Firefox is fully supported on 25-100, partially supported on 2-24, and not supported on below 2 Firefox versions.
  • CSS background-attachment on Chrome is fully supported on 4-103, partially supported on None of the versions, and not supported on below 4 Chrome versions.
  • CSS background-attachment on Safari is fully supported on 5.1-12, partially supported on 3.2-13, and not supported on 14.1-15.4 Safari versions.
  • CSS background-attachment on Opera is fully supported on 10.6-83, partially supported on 9.5-10, and not supported on below 9.5 Opera versions.
  • CSS background-attachment on Safari on iOS is fully supported on None of the versions, partially supported on 5-12, and not supported on 3.2-15.4 Safari on iOS versions.
  • CSS background-attachment on Android Browser is fully supported on None of the versions, partially supported on 4.2-4.1, and not supported on 2.3-99 Android Browser versions.
  • CSS background-attachment on Opera Mobile is fully supported on 11.5-12, 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 97-100, partially supported on None of the versions, and not supported on below 97 Chrome for Android versions.
  • CSS background-attachment on Firefox for Android is fully supported on 95-98, partially supported on None of the versions, and not supported on below 95 Firefox for Android versions.
  • CSS background-attachment on Samsung Internet is fully supported on None of the versions, partially supported on 5-16, and not supported on 4-4 Samsung Internet versions.
67
Mediumtooltip

Browser Compatibility Score

Chrome IE
High

Browser Support For IE Versions

9-11
Fully
5.5-8
Partially
-
No Support
Chrome Edge
High

Browser Support For Edge Versions

12-99
Fully
-
Partially
-
No Support
Chrome Firefox
High

Browser Support For Firefox Versions

25-100
Fully
2-24
Partially
-
No Support
Chrome Chrome
High

Browser Support For Chrome Versions

4-103
Fully
-
Partially
-
No Support
Chrome Safari
Low

Browser Support For Safari Versions

5.1-12
Fully
3.2-13
Partially
14.1-15.4
No Support
Chrome Opera
High

Browser Support For Opera Versions

10.6-83
Fully
9.5-10
Partially
-
No Support
Chrome Safari on iOS
Low

Browser Support For Safari on iOS Versions

-
Fully
5-12
Partially
3.2-15.4
No Support
Chrome Android Browser
Low

Browser Support For Android Browser Versions

-
Fully
4.2-4.1
Partially
2.3-99
No Support
Chrome Opera Mobile
Low

Browser Support For Opera Mobile Versions

11.5-12
Fully
10-10
Partially
64-64
No Support
Chrome Chrome for Android
High

Browser Support For Chrome for Android Versions

97-100
Fully
-
Partially
-
No Support
Chrome Firefox for Android
High

Browser Support For Firefox for Android Versions

95-98
Fully
-
Partially
-
No Support
Chrome Samsung Internet
High

Browser Support For Samsung Internet Versions

-
Fully
5-16
Partially
4-4
No Support

Test your website on 3000+ browsers

Test your website on 3000+ real browsers and operating systems for mobile and desktop with the LambdaTest cloud. Perform browser compatibility test for CSS background-attachment and many more web technologies that are a part of your website or web-application.

Last Modified date

2022-04-10

Browser Support for CSS background-attachment

  • ChromeChrome
  • Safari Safari
  • Firefox Firefox
  • IE Internet Explorer
  • Opera Opera
  • Edge Edge

References


Data sourced from

Test on a Real Browser

Test this and other features on your website for compatibility across
3,000 real browsers and devices using

Try LambdaTest
LambdaTestX

We use cookies to give you the best experience. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. Learn More in our Cookies policy, Privacy & Terms of service

Allow Cookie
Sarah

I hope we're able to help you build browser compatible web experience.

Fast track your browser testing experience on 3000+ browsers and OS combinations with LambdaTest.

Sarah Elson (Product & Growth Lead)