Force-assigns a typed style to a string even if its type would not normally .
Force-assigns a typed style to a string even if its type would not normally .allow it
The name of this style in CSS, normally dash-separated
The name of this style in CSS, normally dash-separated
This keyword means that the background image will not scroll with its containing element, instead remaining stationary within the viewport.
This keyword means that the background image will not scroll with its containing element, instead remaining stationary within the viewport.
MDN
The name of this style from Javascript, normally camel-case
The name of this style from Javascript, normally camel-case
This keyword means that the background image will not scroll with its containing element, but will scroll when the element's content scrolls: it is fixed regarding the element's content.
This keyword means that the background image will not scroll with its containing element, but will scroll when the element's content scrolls: it is fixed regarding the element's content.
MDN
This keyword means that the background image will scroll within the viewport along with the block the image is contained within.
This keyword means that the background image will scroll within the viewport along with the block the image is contained within.
MDN
If a background-image is specified, the background-attachment CSS property determines whether that image's position is fixed within the viewport, or scrolls along with its containing block.
MDN