Next-Gen App & Browser
Testing Cloud

Trusted by 2 Mn+ QAs & Devs to accelerate their release cycles

Next-Gen App & Browser Testing Cloud

CSS background-attachment

Last updated on : 2023-03-20

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

Code snippets

04_attachment.htm

Source:04_attachment.htm Github

copy

Full Screen

Full Screen

background_attachment.html

Source:background_attachment.html Github

copy

Full Screen

Full Screen

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-111, 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-113, partially supported on 2-24, and not supported on below 2 Firefox versions.
  • CSS background-attachment on Chrome is fully supported on 4-114, 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-16.4, partially supported on 3.2-13, and not supported on 14.1-16.1 Safari versions.
  • CSS background-attachment on Opera is fully supported on 10.5-95, partially supported on 9.5-10, and not supported on below 9.5 Opera versions.
  • Safari on iOS is fully supported on None of the versions, partially supported on 5-12.2, and not supported on 3.2-16.4 Safari on iOS versions.
  • Android Browser is fully supported on None of the versions, partially supported on 4.2-4.1, and not supported on 2.1-111 Android Browser versions.
  • Opera Mobile is fully supported on 11.5-73, partially supported on 10-10, and not supported on 64-64 Opera Mobile versions.
  • Chrome for Android is fully supported on 97-111, partially supported on None of the versions, and not supported on below 97 Chrome for Android versions.
  • Firefox for Android is fully supported on 95-110, partially supported on None of the versions, and not supported on below 95 Firefox for Android versions.
  • Samsung Internet is fully supported on None of the versions, partially supported on 5-20, and not supported on 4-4 Samsung Internet versions.
72
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-111
Fully
-
Partially
-
No Support
Chrome Firefox
High

Browser Support For Firefox Versions

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

Browser Support For Chrome Versions

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

Browser Support For Safari Versions

5.1-16.4
Fully
3.2-13
Partially
14.1-16.1
No Support
Chrome Opera
High

Browser Support For Opera Versions

10.5-95
Fully
9.5-10
Partially
-
No Support
Chrome Safari on iOS
Low

Browser Support For Safari on iOS Versions

-
Fully
5-12.2
Partially
3.2-16.4
No Support
Chrome Android Browser
Low

Browser Support For Android Browser Versions

-
Fully
4.2-4.1
Partially
2.1-111
No Support
Chrome Opera Mobile
Medium

Browser Support For Opera Mobile Versions

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

Browser Support For Chrome for Android Versions

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

Browser Support For Firefox for Android Versions

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

Browser Support For Samsung Internet Versions

-
Fully
5-20
Partially
4-4
No Support

Debug webpages on the go with LT Debug Chrome extension.

Add to Chrome
LT Browser

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

2023-03-20

References


Data sourced from

Debug webpages on the go with LT Debug Chrome extension.

Add to Chrome
LT Browser

Debug Your Mobile Websites Faster With LT Browser!

Harness the power of Chromium-based engine to deliver responsive websites and web apps.

Try for free...
Join

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful