cssom

package
v0.0.0-...-724c8d0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2020 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
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

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

class: CSSRule

func CSSRuleFromJS

func CSSRuleFromJS(value js.Wrapper) *CSSRule

CSSRuleFromJS is casting a js.Wrapper into CSSRule.

func (*CSSRule) CssText

func (_this *CSSRule) CssText() string

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

func (*CSSRule) JSValue

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

func (*CSSRule) ParentRule

func (_this *CSSRule) ParentRule() *CSSRule

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

func (_this *CSSRule) SetCssText(value string)

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

func (*CSSRule) Type

func (_this *CSSRule) Type() int

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

type CSSRuleList

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

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

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

class: MediaList

func MediaListFromJS

func MediaListFromJS(value js.Wrapper) *MediaList

MediaListFromJS is casting a js.Wrapper into MediaList.

func (*MediaList) AppendMedium

func (_this *MediaList) AppendMedium(medium string)

func (*MediaList) DeleteMedium

func (_this *MediaList) DeleteMedium(medium string)

func (*MediaList) Index

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

func (*MediaList) Item

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

func (*MediaList) JSValue

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

func (*MediaList) Length

func (_this *MediaList) Length() uint

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

func (*MediaList) MediaText

func (_this *MediaList) MediaText() string

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

func (*MediaList) SetMediaText

func (_this *MediaList) SetMediaText(value string)

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

func (*MediaList) ToString

func (_this *MediaList) ToString() string

ToString is an alias for MediaText.

type StyleSheet

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

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).

type Union

type Union struct {
	Value js.Value
}

func UnionFromJS

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue

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

Directories

Path Synopsis
Package view is to inspect and manipulate the visual view of a document.
Package view is to inspect and manipulate the visual view of a document.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL