Documentation ¶
Overview ¶
Package cssom is parsing and serialization rules for Media Queries, Selectors, and of course CSS itself.
Index ¶
- Constants
- type CSSGroupingRule
- type CSSImportRule
- type CSSMarginRule
- type CSSNamespaceRule
- type CSSPageRule
- type CSSRule
- type CSSRuleList
- type CSSStyleDeclaration
- func (_this *CSSStyleDeclaration) CssFloat() string
- func (_this *CSSStyleDeclaration) CssText() string
- func (_this *CSSStyleDeclaration) GetPropertyPriority(property string) (_result string)
- func (_this *CSSStyleDeclaration) GetPropertyValue(property string) (_result string)
- func (_this *CSSStyleDeclaration) Index(index uint) (_result string)
- func (_this *CSSStyleDeclaration) Item(index uint) (_result string)
- func (_this *CSSStyleDeclaration) JSValue() js.Value
- func (_this *CSSStyleDeclaration) Length() uint
- func (_this *CSSStyleDeclaration) ParentRule() *CSSRule
- func (_this *CSSStyleDeclaration) RemoveProperty(property string) (_result string)
- func (_this *CSSStyleDeclaration) SetCssFloat(value string)
- func (_this *CSSStyleDeclaration) SetCssText(value string)
- func (_this *CSSStyleDeclaration) SetProperty(property string, value string, priority *string)
- type CSSStyleRule
- type CSSStyleSheet
- type MediaList
- func (_this *MediaList) AppendMedium(medium string)
- func (_this *MediaList) DeleteMedium(medium string)
- func (_this *MediaList) Index(index uint) (_result *string)
- func (_this *MediaList) Item(index uint) (_result *string)
- func (_this *MediaList) JSValue() js.Value
- func (_this *MediaList) Length() uint
- func (_this *MediaList) MediaText() string
- func (_this *MediaList) SetMediaText(value string)
- func (_this *MediaList) ToString() string
- type StyleSheet
- func (_this *StyleSheet) Disabled() bool
- func (_this *StyleSheet) Href() *string
- func (_this *StyleSheet) JSValue() js.Value
- func (_this *StyleSheet) Media() *MediaList
- func (_this *StyleSheet) OwnerNode() *Union
- func (_this *StyleSheet) ParentStyleSheet() *CSSStyleSheet
- func (_this *StyleSheet) SetDisabled(value bool)
- func (_this *StyleSheet) Title() *string
- func (_this *StyleSheet) Type() string
- type StyleSheetList
- type Union
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 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CSSGroupingRule ¶
type CSSGroupingRule struct {
CSSRule
}
class: CSSGroupingRule
func CSSGroupingRuleFromJS ¶
func CSSGroupingRuleFromJS(value js.Wrapper) *CSSGroupingRule
CSSGroupingRuleFromJS is casting a js.Wrapper into CSSGroupingRule.
func (*CSSGroupingRule) CssRules ¶
func (_this *CSSGroupingRule) CssRules() *CSSRuleList
CssRules returning attribute 'cssRules' with type CSSRuleList (idl: CSSRuleList).
func (*CSSGroupingRule) DeleteRule ¶
func (_this *CSSGroupingRule) DeleteRule(index uint)
func (*CSSGroupingRule) InsertRule ¶
func (_this *CSSGroupingRule) InsertRule(rule string, index *uint) (_result uint)
type CSSImportRule ¶
type CSSImportRule struct {
CSSRule
}
class: CSSImportRule
func CSSImportRuleFromJS ¶
func CSSImportRuleFromJS(value js.Wrapper) *CSSImportRule
CSSImportRuleFromJS is casting a js.Wrapper into CSSImportRule.
func (*CSSImportRule) Href ¶
func (_this *CSSImportRule) Href() string
Href returning attribute 'href' with type string (idl: USVString).
func (*CSSImportRule) Media ¶
func (_this *CSSImportRule) Media() *MediaList
Media returning attribute 'media' with type MediaList (idl: MediaList).
func (*CSSImportRule) StyleSheet ¶
func (_this *CSSImportRule) StyleSheet() *CSSStyleSheet
StyleSheet returning attribute 'styleSheet' with type CSSStyleSheet (idl: CSSStyleSheet).
type CSSMarginRule ¶
type CSSMarginRule struct {
CSSRule
}
class: CSSMarginRule
func CSSMarginRuleFromJS ¶
func CSSMarginRuleFromJS(value js.Wrapper) *CSSMarginRule
CSSMarginRuleFromJS is casting a js.Wrapper into CSSMarginRule.
func (*CSSMarginRule) Name ¶
func (_this *CSSMarginRule) Name() string
Name returning attribute 'name' with type string (idl: DOMString).
func (*CSSMarginRule) Style ¶
func (_this *CSSMarginRule) Style() *CSSStyleDeclaration
Style returning attribute 'style' with type CSSStyleDeclaration (idl: CSSStyleDeclaration).
type CSSNamespaceRule ¶
type CSSNamespaceRule struct {
CSSRule
}
class: CSSNamespaceRule
func CSSNamespaceRuleFromJS ¶
func CSSNamespaceRuleFromJS(value js.Wrapper) *CSSNamespaceRule
CSSNamespaceRuleFromJS is casting a js.Wrapper into CSSNamespaceRule.
func (*CSSNamespaceRule) NamespaceURI ¶
func (_this *CSSNamespaceRule) NamespaceURI() string
NamespaceURI returning attribute 'namespaceURI' with type string (idl: DOMString).
func (*CSSNamespaceRule) Prefix ¶
func (_this *CSSNamespaceRule) Prefix() string
Prefix returning attribute 'prefix' with type string (idl: DOMString).
type CSSPageRule ¶
type CSSPageRule struct {
CSSGroupingRule
}
class: CSSPageRule
func CSSPageRuleFromJS ¶
func CSSPageRuleFromJS(value js.Wrapper) *CSSPageRule
CSSPageRuleFromJS is casting a js.Wrapper into CSSPageRule.
func (*CSSPageRule) SelectorText ¶
func (_this *CSSPageRule) SelectorText() string
SelectorText returning attribute 'selectorText' with type string (idl: DOMString).
func (*CSSPageRule) SetSelectorText ¶
func (_this *CSSPageRule) SetSelectorText(value string)
SetSelectorText setting attribute 'selectorText' with type string (idl: DOMString).
func (*CSSPageRule) Style ¶
func (_this *CSSPageRule) Style() *CSSStyleDeclaration
Style returning attribute 'style' with type CSSStyleDeclaration (idl: CSSStyleDeclaration).
type CSSRule ¶
class: CSSRule
func CSSRuleFromJS ¶
CSSRuleFromJS is casting a js.Wrapper into CSSRule.
func (*CSSRule) ParentRule ¶
ParentRule returning attribute 'parentRule' with type CSSRule (idl: CSSRule).
func (*CSSRule) ParentStyleSheet ¶
func (_this *CSSRule) ParentStyleSheet() *CSSStyleSheet
ParentStyleSheet returning attribute 'parentStyleSheet' with type CSSStyleSheet (idl: CSSStyleSheet).
func (*CSSRule) SetCssText ¶
SetCssText setting attribute 'cssText' with type string (idl: DOMString).
type CSSRuleList ¶
class: CSSRuleList
func CSSRuleListFromJS ¶
func CSSRuleListFromJS(value js.Wrapper) *CSSRuleList
CSSRuleListFromJS is casting a js.Wrapper into CSSRuleList.
func (*CSSRuleList) Index ¶
func (_this *CSSRuleList) Index(index uint) (_result *CSSRule)
func (*CSSRuleList) Item ¶
func (_this *CSSRuleList) Item(index uint) (_result *CSSRule)
func (*CSSRuleList) JSValue ¶
func (_this *CSSRuleList) JSValue() js.Value
func (*CSSRuleList) Length ¶
func (_this *CSSRuleList) Length() uint
Length returning attribute 'length' with type uint (idl: unsigned long).
type CSSStyleDeclaration ¶
type CSSStyleDeclaration struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: CSSStyleDeclaration
func CSSStyleDeclarationFromJS ¶
func CSSStyleDeclarationFromJS(value js.Wrapper) *CSSStyleDeclaration
CSSStyleDeclarationFromJS is casting a js.Wrapper into CSSStyleDeclaration.
func (*CSSStyleDeclaration) CssFloat ¶
func (_this *CSSStyleDeclaration) CssFloat() string
CssFloat returning attribute 'cssFloat' with type string (idl: DOMString).
func (*CSSStyleDeclaration) CssText ¶
func (_this *CSSStyleDeclaration) CssText() string
CssText returning attribute 'cssText' with type string (idl: DOMString).
func (*CSSStyleDeclaration) GetPropertyPriority ¶
func (_this *CSSStyleDeclaration) GetPropertyPriority(property string) (_result string)
func (*CSSStyleDeclaration) GetPropertyValue ¶
func (_this *CSSStyleDeclaration) GetPropertyValue(property string) (_result string)
func (*CSSStyleDeclaration) Index ¶
func (_this *CSSStyleDeclaration) Index(index uint) (_result string)
func (*CSSStyleDeclaration) Item ¶
func (_this *CSSStyleDeclaration) Item(index uint) (_result string)
func (*CSSStyleDeclaration) JSValue ¶
func (_this *CSSStyleDeclaration) JSValue() js.Value
func (*CSSStyleDeclaration) Length ¶
func (_this *CSSStyleDeclaration) Length() uint
Length returning attribute 'length' with type uint (idl: unsigned long).
func (*CSSStyleDeclaration) ParentRule ¶
func (_this *CSSStyleDeclaration) ParentRule() *CSSRule
ParentRule returning attribute 'parentRule' with type CSSRule (idl: CSSRule).
func (*CSSStyleDeclaration) RemoveProperty ¶
func (_this *CSSStyleDeclaration) RemoveProperty(property string) (_result string)
func (*CSSStyleDeclaration) SetCssFloat ¶
func (_this *CSSStyleDeclaration) SetCssFloat(value string)
SetCssFloat setting attribute 'cssFloat' with type string (idl: DOMString).
func (*CSSStyleDeclaration) SetCssText ¶
func (_this *CSSStyleDeclaration) SetCssText(value string)
SetCssText setting attribute 'cssText' with type string (idl: DOMString).
func (*CSSStyleDeclaration) SetProperty ¶
func (_this *CSSStyleDeclaration) SetProperty(property string, value string, priority *string)
type CSSStyleRule ¶
type CSSStyleRule struct {
CSSRule
}
class: CSSStyleRule
func CSSStyleRuleFromJS ¶
func CSSStyleRuleFromJS(value js.Wrapper) *CSSStyleRule
CSSStyleRuleFromJS is casting a js.Wrapper into CSSStyleRule.
func (*CSSStyleRule) SelectorText ¶
func (_this *CSSStyleRule) SelectorText() string
SelectorText returning attribute 'selectorText' with type string (idl: DOMString).
func (*CSSStyleRule) SetSelectorText ¶
func (_this *CSSStyleRule) SetSelectorText(value string)
SetSelectorText setting attribute 'selectorText' with type string (idl: DOMString).
func (*CSSStyleRule) Style ¶
func (_this *CSSStyleRule) Style() *CSSStyleDeclaration
Style returning attribute 'style' with type CSSStyleDeclaration (idl: CSSStyleDeclaration).
func (*CSSStyleRule) StyleMap ¶
func (_this *CSSStyleRule) StyleMap() *typedom.StylePropertyMap
StyleMap returning attribute 'styleMap' with type typedom.StylePropertyMap (idl: StylePropertyMap).
type CSSStyleSheet ¶
type CSSStyleSheet struct {
StyleSheet
}
class: CSSStyleSheet
func CSSStyleSheetFromJS ¶
func CSSStyleSheetFromJS(value js.Wrapper) *CSSStyleSheet
CSSStyleSheetFromJS is casting a js.Wrapper into CSSStyleSheet.
func (*CSSStyleSheet) CssRules ¶
func (_this *CSSStyleSheet) CssRules() *CSSRuleList
CssRules returning attribute 'cssRules' with type CSSRuleList (idl: CSSRuleList).
func (*CSSStyleSheet) DeleteRule ¶
func (_this *CSSStyleSheet) DeleteRule(index uint)
func (*CSSStyleSheet) InsertRule ¶
func (_this *CSSStyleSheet) InsertRule(rule string, index *uint) (_result uint)
func (*CSSStyleSheet) OwnerRule ¶
func (_this *CSSStyleSheet) OwnerRule() *CSSRule
OwnerRule returning attribute 'ownerRule' with type CSSRule (idl: CSSRule).
type MediaList ¶
class: MediaList
func MediaListFromJS ¶
MediaListFromJS is casting a js.Wrapper into MediaList.
func (*MediaList) AppendMedium ¶
func (*MediaList) DeleteMedium ¶
func (*MediaList) MediaText ¶
MediaText returning attribute 'mediaText' with type string (idl: DOMString).
func (*MediaList) SetMediaText ¶
SetMediaText setting attribute 'mediaText' with type string (idl: DOMString).
type StyleSheet ¶
class: StyleSheet
func StyleSheetFromJS ¶
func StyleSheetFromJS(value js.Wrapper) *StyleSheet
StyleSheetFromJS is casting a js.Wrapper into StyleSheet.
func (*StyleSheet) Disabled ¶
func (_this *StyleSheet) Disabled() bool
Disabled returning attribute 'disabled' with type bool (idl: boolean).
func (*StyleSheet) Href ¶
func (_this *StyleSheet) Href() *string
Href returning attribute 'href' with type string (idl: USVString).
func (*StyleSheet) JSValue ¶
func (_this *StyleSheet) JSValue() js.Value
func (*StyleSheet) Media ¶
func (_this *StyleSheet) Media() *MediaList
Media returning attribute 'media' with type MediaList (idl: MediaList).
func (*StyleSheet) OwnerNode ¶
func (_this *StyleSheet) OwnerNode() *Union
OwnerNode returning attribute 'ownerNode' with type Union (idl: Union).
func (*StyleSheet) ParentStyleSheet ¶
func (_this *StyleSheet) ParentStyleSheet() *CSSStyleSheet
ParentStyleSheet returning attribute 'parentStyleSheet' with type CSSStyleSheet (idl: CSSStyleSheet).
func (*StyleSheet) SetDisabled ¶
func (_this *StyleSheet) SetDisabled(value bool)
SetDisabled setting attribute 'disabled' with type bool (idl: boolean).
func (*StyleSheet) Title ¶
func (_this *StyleSheet) Title() *string
Title returning attribute 'title' with type string (idl: DOMString).
func (*StyleSheet) Type ¶
func (_this *StyleSheet) Type() string
Type returning attribute 'type' with type string (idl: DOMString).
type StyleSheetList ¶
type StyleSheetList struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: StyleSheetList
func StyleSheetListFromJS ¶
func StyleSheetListFromJS(value js.Wrapper) *StyleSheetList
StyleSheetListFromJS is casting a js.Wrapper into StyleSheetList.
func (*StyleSheetList) Index ¶
func (_this *StyleSheetList) Index(index uint) (_result *CSSStyleSheet)
func (*StyleSheetList) Item ¶
func (_this *StyleSheetList) Item(index uint) (_result *CSSStyleSheet)
func (*StyleSheetList) JSValue ¶
func (_this *StyleSheetList) JSValue() js.Value
func (*StyleSheetList) Length ¶
func (_this *StyleSheetList) Length() uint
Length returning attribute 'length' with type uint (idl: unsigned long).