pub fn cross_origin( &self ) -> CrossOriginSetting {
        match js!(
            return @{self}.crossOrigin;
        ) {
            Value::Null => CrossOriginSetting::None,
            Value::String( ref s ) if *s == "anonymous" => CrossOriginSetting::Anonymous,
            Value::String( ref s ) if *s == "use-credentials" => CrossOriginSetting::UseCredentials,
            _ => unreachable!("Unexpected crossOrigin value")
        }
    }
/// Returns the Cross-Origin Resource Sharing (CORS) setting for the image.
///
/// [(JavaScript docs)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/crossOrigin)
// https://html.spec.whatwg.org/#the-img-element:dom-img-crossorigin
Returns the Cross-Origin Resource Sharing (CORS) setting for the image.
Returns the Cross - Origin Resource Sharing ( CORS ) setting for the image .
pub fn cross_origin( &self ) -> CrossOriginSetting {
        match js!(
            return @{self}.crossOrigin;
        ) {
            Value::Null => CrossOriginSetting::None,
            Value::String( ref s ) if *s == "anonymous" => CrossOriginSetting::Anonymous,
            Value::String( ref s ) if *s == "use-credentials" => CrossOriginSetting::UseCredentials,
            _ => unreachable!("Unexpected crossOrigin value")
        }
    }
pub fn cross_origin ( & self ) -> CrossOriginSetting { match js ! ( return { self } crossOrigin ) { Value :: Null => CrossOriginSetting :: None , Value :: String ( ref s ) if * s == " " => CrossOriginSetting :: Anonymous , Value :: String ( ref s ) if * s == " " => CrossOriginSetting :: UseCredentials , _ => unreachable ! ( " " ) } }
Returns the Cross-Origin Resource Sharing (CORS) setting for the image.
Returns the Cross - Origin Resource Sharing ( CORS ) setting for the image .
&self
&self