// Copyright © 2020 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
namespace CefSharp.DevTools.CSS
{
///
/// CSS property declaration data.
///
[System.Runtime.Serialization.DataContractAttribute]
public class CSSProperty : CefSharp.DevTools.DevToolsDomainEntityBase
{
///
/// The property name.
///
[System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))]
public string Name
{
get;
set;
}
///
/// The property value.
///
[System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (true))]
public string Value
{
get;
set;
}
///
/// Whether the property has "!important" annotation (implies `false` if absent).
///
[System.Runtime.Serialization.DataMemberAttribute(Name = ("important"), IsRequired = (false))]
public bool? Important
{
get;
set;
}
///
/// Whether the property is implicit (implies `false` if absent).
///
[System.Runtime.Serialization.DataMemberAttribute(Name = ("implicit"), IsRequired = (false))]
public bool? Implicit
{
get;
set;
}
///
/// The full property text as specified in the style.
///
[System.Runtime.Serialization.DataMemberAttribute(Name = ("text"), IsRequired = (false))]
public string Text
{
get;
set;
}
///
/// Whether the property is understood by the browser (implies `true` if absent).
///
[System.Runtime.Serialization.DataMemberAttribute(Name = ("parsedOk"), IsRequired = (false))]
public bool? ParsedOk
{
get;
set;
}
///
/// Whether the property is disabled by the user (present for source-based properties only).
///
[System.Runtime.Serialization.DataMemberAttribute(Name = ("disabled"), IsRequired = (false))]
public bool? Disabled
{
get;
set;
}
///
/// The entire property range in the enclosing style declaration (if available).
///
[System.Runtime.Serialization.DataMemberAttribute(Name = ("range"), IsRequired = (false))]
public CefSharp.DevTools.CSS.SourceRange Range
{
get;
set;
}
}
}