001    package com.osbcp.css.constants;
002    
003    import java.io.Serializable;
004    
005    /**
006     * Values for the <i>background-attachment</i> property.
007     * 
008     * @see <a href="http://www.w3schools.com/cssref/pr_background-attachment.asp">CSS background-attachment Property</a>
009     * @author <a href="mailto:christoffer@christoffer.me">Christoffer Pettersson</a>
010     */
011    
012    public enum BackgroundAttachment implements Serializable {
013    
014            /**
015             * The background image scrolls with the rest of the page. This is default.
016             */
017            SCROLL,
018    
019            /**
020             * The background image is fixed.
021             */
022            FIXED,
023    
024            /**
025             * Specifies that the setting of the background-attachment property should be inherited from the parent element.
026             */
027            INHERIT;
028    
029            @Override
030            public String toString() {
031                    return name().toLowerCase();
032            }
033    
034    }