BackgroundAttachment enum
The background-attachment CSS property sets whether a background image's position is fixed within the viewport, or scrolls with its containing block.
Constructors
- BackgroundAttachment(String value)
-
const
Values
- scroll → const BackgroundAttachment
-
The background is fixed relative to the element itself and does not scroll with its contents. (It is effectively attached to the element's border.)
const BackgroundAttachment('scroll')
- fixed → const BackgroundAttachment
-
The background is fixed relative to the viewport. Even if an element has a scrolling mechanism, the background doesn't move with the element. (This is not compatible with background-clip: text.)
const BackgroundAttachment('fixed')
- local → const BackgroundAttachment
-
The background is fixed relative to the element's contents. If the element has a scrolling mechanism, the background scrolls with the element's contents, and the background painting area and background positioning area are relative to the scrollable area of the element rather than to the border framing them.
const BackgroundAttachment('local')
- inherit → const BackgroundAttachment
-
const BackgroundAttachment('inherit')
- initial → const BackgroundAttachment
-
const BackgroundAttachment('initial')
- revert → const BackgroundAttachment
-
const BackgroundAttachment('revert')
- revertLayer → const BackgroundAttachment
-
const BackgroundAttachment('revert-layer')
- unset → const BackgroundAttachment
-
const BackgroundAttachment('unset')
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
BackgroundAttachment> - A constant List of the values in this enum, in order of their declaration.