webapi: github.com/gowebapi/webapi/css/cssom Index | Files | Directories

package cssom

import "github.com/gowebapi/webapi/css/cssom"

Package cssom is parsing and serialization rules for Media Queries, Selectors, and of course CSS itself.

Index

Package Files

cssom.go doc.go

Constants

const (
    STYLE_RULE               int = 1
    CHARSET_RULE             int = 2
    IMPORT_RULE              int = 3
    MEDIA_RULE               int = 4
    FONT_FACE_RULE           int = 5
    PAGE_RULE                int = 6
    MARGIN_RULE              int = 9
    NAMESPACE_RULE           int = 10
    KEYFRAMES_RULE           int = 7
    KEYFRAME_RULE            int = 8
    SUPPORTS_RULE            int = 12
    COUNTER_STYLE_RULE       int = 11
    VIEWPORT_RULE            int = 15
    FONT_FEATURE_VALUES_RULE int = 14
    FONT_PALETTE_VALUES_RULE int = 15
)

type CSSGroupingRule Uses

type CSSGroupingRule struct {
    CSSRule
}

class: CSSGroupingRule

func CSSGroupingRuleFromJS Uses

func CSSGroupingRuleFromJS(value js.Wrapper) *CSSGroupingRule

CSSGroupingRuleFromJS is casting a js.Wrapper into CSSGroupingRule.

func (*CSSGroupingRule) CssRules Uses

func (_this *CSSGroupingRule) CssRules() *CSSRuleList

CssRules returning attribute 'cssRules' with type CSSRuleList (idl: CSSRuleList).

func (*CSSGroupingRule) DeleteRule Uses

func (_this *CSSGroupingRule) DeleteRule(index uint)

func (*CSSGroupingRule) InsertRule Uses

func (_this *CSSGroupingRule) InsertRule(rule string, index *uint) (_result uint)

type CSSImportRule Uses

type CSSImportRule struct {
    CSSRule
}

class: CSSImportRule

func CSSImportRuleFromJS Uses

func CSSImportRuleFromJS(value js.Wrapper) *CSSImportRule

CSSImportRuleFromJS is casting a js.Wrapper into CSSImportRule.

func (*CSSImportRule) Href Uses

func (_this *CSSImportRule) Href() string

Href returning attribute 'href' with type string (idl: USVString).

func (*CSSImportRule) Media Uses

func (_this *CSSImportRule) Media() *MediaList

Media returning attribute 'media' with type MediaList (idl: MediaList).

func (*CSSImportRule) StyleSheet Uses

func (_this *CSSImportRule) StyleSheet() *CSSStyleSheet

StyleSheet returning attribute 'styleSheet' with type CSSStyleSheet (idl: CSSStyleSheet).

type CSSMarginRule Uses

type CSSMarginRule struct {
    CSSRule
}

class: CSSMarginRule

func CSSMarginRuleFromJS Uses

func CSSMarginRuleFromJS(value js.Wrapper) *CSSMarginRule

CSSMarginRuleFromJS is casting a js.Wrapper into CSSMarginRule.

func (*CSSMarginRule) Name Uses

func (_this *CSSMarginRule) Name() string

Name returning attribute 'name' with type string (idl: DOMString).

func (*CSSMarginRule) Style Uses

func (_this *CSSMarginRule) Style() *CSSStyleDeclaration

Style returning attribute 'style' with type CSSStyleDeclaration (idl: CSSStyleDeclaration).

type CSSNamespaceRule Uses

type CSSNamespaceRule struct {
    CSSRule
}

class: CSSNamespaceRule

func CSSNamespaceRuleFromJS Uses

func CSSNamespaceRuleFromJS(value js.Wrapper) *CSSNamespaceRule

CSSNamespaceRuleFromJS is casting a js.Wrapper into CSSNamespaceRule.

func (*CSSNamespaceRule) NamespaceURI Uses

func (_this *CSSNamespaceRule) NamespaceURI() string

NamespaceURI returning attribute 'namespaceURI' with type string (idl: DOMString).

func (*CSSNamespaceRule) Prefix Uses

func (_this *CSSNamespaceRule) Prefix() string

Prefix returning attribute 'prefix' with type string (idl: DOMString).

type CSSPageRule Uses

type CSSPageRule struct {
    CSSGroupingRule
}

class: CSSPageRule

func CSSPageRuleFromJS Uses

func CSSPageRuleFromJS(value js.Wrapper) *CSSPageRule

CSSPageRuleFromJS is casting a js.Wrapper into CSSPageRule.

func (*CSSPageRule) SelectorText Uses

func (_this *CSSPageRule) SelectorText() string

SelectorText returning attribute 'selectorText' with type string (idl: DOMString).

func (*CSSPageRule) SetSelectorText Uses

func (_this *CSSPageRule) SetSelectorText(value string)

SetSelectorText setting attribute 'selectorText' with type string (idl: DOMString).

func (*CSSPageRule) Style Uses

func (_this *CSSPageRule) Style() *CSSStyleDeclaration

Style returning attribute 'style' with type CSSStyleDeclaration (idl: CSSStyleDeclaration).

type CSSRule Uses

type CSSRule struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: CSSRule

func CSSRuleFromJS Uses

func CSSRuleFromJS(value js.Wrapper) *CSSRule

CSSRuleFromJS is casting a js.Wrapper into CSSRule.

func (*CSSRule) CssText Uses

func (_this *CSSRule) CssText() string

CssText returning attribute 'cssText' with type string (idl: DOMString).

func (*CSSRule) JSValue Uses

func (_this *CSSRule) JSValue() js.Value

func (*CSSRule) ParentRule Uses

func (_this *CSSRule) ParentRule() *CSSRule

ParentRule returning attribute 'parentRule' with type CSSRule (idl: CSSRule).

func (*CSSRule) ParentStyleSheet Uses

func (_this *CSSRule) ParentStyleSheet() *CSSStyleSheet

ParentStyleSheet returning attribute 'parentStyleSheet' with type CSSStyleSheet (idl: CSSStyleSheet).

func (*CSSRule) SetCssText Uses

func (_this *CSSRule) SetCssText(value string)

SetCssText setting attribute 'cssText' with type string (idl: DOMString).

func (*CSSRule) Type Uses

func (_this *CSSRule) Type() int

Type returning attribute 'type' with type int (idl: unsigned short).

type CSSRuleList Uses

type CSSRuleList struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: CSSRuleList

func CSSRuleListFromJS Uses

func CSSRuleListFromJS(value js.Wrapper) *CSSRuleList

CSSRuleListFromJS is casting a js.Wrapper into CSSRuleList.

func (*CSSRuleList) Index Uses

func (_this *CSSRuleList) Index(index uint) (_result *CSSRule)

func (*CSSRuleList) Item Uses

func (_this *CSSRuleList) Item(index uint) (_result *CSSRule)

func (*CSSRuleList) JSValue Uses

func (_this *CSSRuleList) JSValue() js.Value

func (*CSSRuleList) Length Uses

func (_this *CSSRuleList) Length() uint

Length returning attribute 'length' with type uint (idl: unsigned long).

type CSSStyleDeclaration Uses

type CSSStyleDeclaration struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: CSSStyleDeclaration

func CSSStyleDeclarationFromJS Uses

func CSSStyleDeclarationFromJS(value js.Wrapper) *CSSStyleDeclaration

CSSStyleDeclarationFromJS is casting a js.Wrapper into CSSStyleDeclaration.

func (*CSSStyleDeclaration) CssFloat Uses

func (_this *CSSStyleDeclaration) CssFloat() string

CssFloat returning attribute 'cssFloat' with type string (idl: DOMString).

func (*CSSStyleDeclaration) CssText Uses

func (_this *CSSStyleDeclaration) CssText() string

CssText returning attribute 'cssText' with type string (idl: DOMString).

func (*CSSStyleDeclaration) GetPropertyPriority Uses

func (_this *CSSStyleDeclaration) GetPropertyPriority(property string) (_result string)

func (*CSSStyleDeclaration) GetPropertyValue Uses

func (_this *CSSStyleDeclaration) GetPropertyValue(property string) (_result string)

func (*CSSStyleDeclaration) Index Uses

func (_this *CSSStyleDeclaration) Index(index uint) (_result string)

func (*CSSStyleDeclaration) Item Uses

func (_this *CSSStyleDeclaration) Item(index uint) (_result string)

func (*CSSStyleDeclaration) JSValue Uses

func (_this *CSSStyleDeclaration) JSValue() js.Value

func (*CSSStyleDeclaration) Length Uses

func (_this *CSSStyleDeclaration) Length() uint

Length returning attribute 'length' with type uint (idl: unsigned long).

func (*CSSStyleDeclaration) ParentRule Uses

func (_this *CSSStyleDeclaration) ParentRule() *CSSRule

ParentRule returning attribute 'parentRule' with type CSSRule (idl: CSSRule).

func (*CSSStyleDeclaration) RemoveProperty Uses

func (_this *CSSStyleDeclaration) RemoveProperty(property string) (_result string)

func (*CSSStyleDeclaration) SetCssFloat Uses

func (_this *CSSStyleDeclaration) SetCssFloat(value string)

SetCssFloat setting attribute 'cssFloat' with type string (idl: DOMString).

func (*CSSStyleDeclaration) SetCssText Uses

func (_this *CSSStyleDeclaration) SetCssText(value string)

SetCssText setting attribute 'cssText' with type string (idl: DOMString).

func (*CSSStyleDeclaration) SetProperty Uses

func (_this *CSSStyleDeclaration) SetProperty(property string, value string, priority *string)

type CSSStyleRule Uses

type CSSStyleRule struct {
    CSSRule
}

class: CSSStyleRule

func CSSStyleRuleFromJS Uses

func CSSStyleRuleFromJS(value js.Wrapper) *CSSStyleRule

CSSStyleRuleFromJS is casting a js.Wrapper into CSSStyleRule.

func (*CSSStyleRule) SelectorText Uses

func (_this *CSSStyleRule) SelectorText() string

SelectorText returning attribute 'selectorText' with type string (idl: DOMString).

func (*CSSStyleRule) SetSelectorText Uses

func (_this *CSSStyleRule) SetSelectorText(value string)

SetSelectorText setting attribute 'selectorText' with type string (idl: DOMString).

func (*CSSStyleRule) Style Uses

func (_this *CSSStyleRule) Style() *CSSStyleDeclaration

Style returning attribute 'style' with type CSSStyleDeclaration (idl: CSSStyleDeclaration).

func (*CSSStyleRule) StyleMap Uses

func (_this *CSSStyleRule) StyleMap() *typedom.StylePropertyMap

StyleMap returning attribute 'styleMap' with type typedom.StylePropertyMap (idl: StylePropertyMap).

type CSSStyleSheet Uses

type CSSStyleSheet struct {
    StyleSheet
}

class: CSSStyleSheet

func CSSStyleSheetFromJS Uses

func CSSStyleSheetFromJS(value js.Wrapper) *CSSStyleSheet

CSSStyleSheetFromJS is casting a js.Wrapper into CSSStyleSheet.

func (*CSSStyleSheet) CssRules Uses

func (_this *CSSStyleSheet) CssRules() *CSSRuleList

CssRules returning attribute 'cssRules' with type CSSRuleList (idl: CSSRuleList).

func (*CSSStyleSheet) DeleteRule Uses

func (_this *CSSStyleSheet) DeleteRule(index uint)

func (*CSSStyleSheet) InsertRule Uses

func (_this *CSSStyleSheet) InsertRule(rule string, index *uint) (_result uint)

func (*CSSStyleSheet) OwnerRule Uses

func (_this *CSSStyleSheet) OwnerRule() *CSSRule

OwnerRule returning attribute 'ownerRule' with type CSSRule (idl: CSSRule).

type MediaList Uses

type MediaList struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: MediaList

func MediaListFromJS Uses

func MediaListFromJS(value js.Wrapper) *MediaList

MediaListFromJS is casting a js.Wrapper into MediaList.

func (*MediaList) AppendMedium Uses

func (_this *MediaList) AppendMedium(medium string)

func (*MediaList) DeleteMedium Uses

func (_this *MediaList) DeleteMedium(medium string)

func (*MediaList) Index Uses

func (_this *MediaList) Index(index uint) (_result *string)

func (*MediaList) Item Uses

func (_this *MediaList) Item(index uint) (_result *string)

func (*MediaList) JSValue Uses

func (_this *MediaList) JSValue() js.Value

func (*MediaList) Length Uses

func (_this *MediaList) Length() uint

Length returning attribute 'length' with type uint (idl: unsigned long).

func (*MediaList) MediaText Uses

func (_this *MediaList) MediaText() string

MediaText returning attribute 'mediaText' with type string (idl: DOMString).

func (*MediaList) SetMediaText Uses

func (_this *MediaList) SetMediaText(value string)

SetMediaText setting attribute 'mediaText' with type string (idl: DOMString).

func (*MediaList) ToString Uses

func (_this *MediaList) ToString() string

ToString is an alias for MediaText.

type StyleSheet Uses

type StyleSheet struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: StyleSheet

func StyleSheetFromJS Uses

func StyleSheetFromJS(value js.Wrapper) *StyleSheet

StyleSheetFromJS is casting a js.Wrapper into StyleSheet.

func (*StyleSheet) Disabled Uses

func (_this *StyleSheet) Disabled() bool

Disabled returning attribute 'disabled' with type bool (idl: boolean).

func (*StyleSheet) Href Uses

func (_this *StyleSheet) Href() *string

Href returning attribute 'href' with type string (idl: USVString).

func (*StyleSheet) JSValue Uses

func (_this *StyleSheet) JSValue() js.Value

func (*StyleSheet) Media Uses

func (_this *StyleSheet) Media() *MediaList

Media returning attribute 'media' with type MediaList (idl: MediaList).

func (*StyleSheet) OwnerNode Uses

func (_this *StyleSheet) OwnerNode() *Union

OwnerNode returning attribute 'ownerNode' with type Union (idl: Union).

func (*StyleSheet) ParentStyleSheet Uses

func (_this *StyleSheet) ParentStyleSheet() *CSSStyleSheet

ParentStyleSheet returning attribute 'parentStyleSheet' with type CSSStyleSheet (idl: CSSStyleSheet).

func (*StyleSheet) SetDisabled Uses

func (_this *StyleSheet) SetDisabled(value bool)

SetDisabled setting attribute 'disabled' with type bool (idl: boolean).

func (*StyleSheet) Title Uses

func (_this *StyleSheet) Title() *string

Title returning attribute 'title' with type string (idl: DOMString).

func (*StyleSheet) Type Uses

func (_this *StyleSheet) Type() string

Type returning attribute 'type' with type string (idl: DOMString).

type StyleSheetList Uses

type StyleSheetList struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: StyleSheetList

func StyleSheetListFromJS Uses

func StyleSheetListFromJS(value js.Wrapper) *StyleSheetList

StyleSheetListFromJS is casting a js.Wrapper into StyleSheetList.

func (*StyleSheetList) Index Uses

func (_this *StyleSheetList) Index(index uint) (_result *CSSStyleSheet)

func (*StyleSheetList) Item Uses

func (_this *StyleSheetList) Item(index uint) (_result *CSSStyleSheet)

func (*StyleSheetList) JSValue Uses

func (_this *StyleSheetList) JSValue() js.Value

func (*StyleSheetList) Length Uses

func (_this *StyleSheetList) Length() uint

Length returning attribute 'length' with type uint (idl: unsigned long).

type Union Uses

type Union struct {
    Value js.Value
}

func UnionFromJS Uses

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue Uses

func (u *Union) JSValue() js.Value

Directories

PathSynopsis
viewPackage view is to inspect and manipulate the visual view of a document.

Package cssom imports 2 packages (graph) and is imported by 10 packages. Updated 2019-09-21. Refresh now. Tools for package owners.