Detailed Description

Represents MathElement.style, a likely upcoming API. It hosts the computed style amongst other things.

Represents SVGElement.style, a likely upcoming API. It hosts the computed style amongst other things.

The .style property of a html element.

Represents SpeechElement.style. It hosts the computed style amongst other things.

Inheritance diagram for Css.ElementStyle:
Css.Style

Public Member Functions

 ElementStyle (Dom.Element element)
 Creates a new element style for the given element. More...
 
override void OnChanged (CssProperty property, Value newValue)
 called when the named property changes. More...
 
ComputedStyle getComputedStyle ()
 JS API function for getting the computed style. More...
 
override ComputedStyle GetComputed ()
 Gets the computed form of this style. More...
 
override string GetString (string property)
 Gets the given property as a css string. May optionally read the given inner index of it as a css string. More...
 
- Public Member Functions inherited from Css.Style
 Style (Node element)
 Creates a new style for the given element. More...
 
 Style (string text, Node element)
 Creates a new style with the given css text string seperated by semicolons. More...
 
Style Clone ()
 Clone this style object. More...
 
string getPropertyValue (string property)
 JS API for getting property values. In PowerUI you can just use this[property] instead. More...
 
void CopyTo (Style otherStyle, StyleCopyMode mode)
 Copies this objects properties to the other given style, overwriting existing properties if told to do so. More...
 
void LoadProperties (CssLexer lexer, OnReadProperty onPropertyRead)
 Reads the properties for this style block from the lexer. Essentially treats it like a set of properties only. Terminated by }, null or >. More...
 
Value Get (string cssProperty)
 Gets the value of the given property, if any. More...
 
void CallChange (CssProperty property, Value value)
 Lets the sheet know that a value changed. Non-alias values here only. More...
 
Css.Value Set (string cssProperty, string valueText)
 Sets the named property on this style to the given value. More...
 
void SetComposite (string cssProperty, Css.Value newValue, Css.Value composite)
 Sets a property from a composite set. Any new values that are null are set to the initial value and inherit the specifity from the composite value. More...
 
override string ToString ()
 

Public Attributes

ComputedStyle Computed
 The computed style of this element. More...
 
- Public Attributes inherited from Css.Style
Node Element
 The element that this style belongs to, if any. More...
 
Dictionary< CssProperty, ValueProperties =new Dictionary<CssProperty,Value>()
 The mapping of css property (e.g. display) to value ("none" as a Css.Value). Do not set values directly into this - use style[property]=value; instead to correctly handle aliases. More...
 

Properties

string scriptMinSize [get, set]
 -spark-script-min-size. More...
 
string scriptLevel [get, set]
 -spark-script-level. More...
 
string slides [get, set]
 The PowerSlide CSS property. Works just like "animation" does. More...
 
string voice [get, set]
 The voice in use. More...
 
string borderTopLeftRadius [get, set]
 Sets the top left border radius. More...
 
string borderTopRightRadius [get, set]
 Sets the top right border radius. More...
 
string borderBottomRightRadius [get, set]
 Sets the bottom right border radius. More...
 
string borderBottomLeftRadius [get, set]
 Sets the bottom left border radius. More...
 
string borderRadius [get, set]
 Sets the border radius of all corners. More...
 
string animation [get, set]
 CSS animation. More...
 
string scrollLeft [get, set]
 Sets the left scroll offset. More...
 
string scrollTop [get, set]
 Sets the top scroll offset. More...
 
string minHeight [get, set]
 The minimum height for this element. Default is 0px. More...
 
string minWidth [get, set]
 The minimum width for this element. Default is 0px. More...
 
string maxHeight [get, set]
 The maximum height for this element. More...
 
string maxWidth [get, set]
 The maximum width for this element. More...
 
string textClip [get, set]
 How scrolling text gets clipped. By default this is "fast" and makes text look like it is being squished. "fast" or "clip". More...
 
string background [get, set]
 A shortcut for applying an image, solid colour and the repeat setting all at once. E.g. "url(myImage.png) repeat-x #000000". More...
 
string backgroundAttachment [get, set]
 background-attachment. More...
 
string backgroundColor [get, set]
 The colour of a solid background. E.g. "#ffffff". More...
 
string backgroundImage [get, set]
 The location of a background image. E.g. "url(imgInResources.png)", "url(cache://cachedImage)". See PowerUI.FileProtocol for more information on the default protocols://. More...
 
string backgroundPosition [get, set]
 The offset of the background. E.g. "10px 5px" (x,y). More...
 
string backgroundRepeat [get, set]
 How the background should be repeated if at all. E.g. "repeat-x", "repeat-y", "none". More...
 
string backgroundSize [get, set]
 How the background should be scaled if at all. E.g. "100% 100%" or "auto" (default). More...
 
string backgroundSizeX [get, set]
 How the width of the background should be scaled if at all. E.g. "100%" or "auto" (default). More...
 
string backgroundSizeY [get, set]
 How the height of the background should be scaled if at all. E.g. "100%" or "auto" (default). More...
 
string backgroundClip [get, set]
 background-clip. More...
 
string bottom [get, set]
 How far from the bottom this element is. E.g. "10px", "10%". What it's relative to depends on the position value. More...
 
string borderStyle [get, set]
 The style of the border around the element. Can only be "solid" for now. More...
 
string borderWidth [get, set]
 The width of the border around the element. E.g. "2px" (all sides) or "4px 5px 4px 5px" (top,right,bottom,left). More...
 
string borderColor [get, set]
 The colour of the border around the element. E.g. "#ffffff". Also supports alpha (e.g. #ffffff77). More...
 
string border [get, set]
 A shortcut for defining width, style and colour of all sides in one go. E.g. "2px solid #ffffff". More...
 
string borderLeft [get, set]
 The width of the left border. E.g. "2px". More...
 
string borderRight [get, set]
 The width of the right border. E.g. "2px". More...
 
string borderTop [get, set]
 The width of the top border. E.g. "2px". More...
 
string borderBottom [get, set]
 The width of the bottom border. E.g. "2px". More...
 
string borderLeftStyle [get, set]
 The style of the left border. E.g. "solid". More...
 
string borderRightStyle [get, set]
 The style of the right border. E.g. "solid". More...
 
string borderTopStyle [get, set]
 The style of the top border. E.g. "solid". More...
 
string borderBottomStyle [get, set]
 The style of the bottom border. E.g. "solid". More...
 
string borderLeftColor [get, set]
 The color of the left border. More...
 
string borderRightColor [get, set]
 The color of the right border. More...
 
string borderTopColor [get, set]
 The color of the top border. More...
 
string borderBottomColor [get, set]
 The color of the bottom border. More...
 
string borderLeftWidth [get, set]
 The width of the left border. More...
 
string borderRightWidth [get, set]
 The width of the right border. More...
 
string borderTopWidth [get, set]
 The width of the top border. More...
 
string borderBottomWidth [get, set]
 The width of the bottom border. More...
 
string clear [get, set]
 The CSS clear property. More...
 
string cssFloat [get, set]
 The CSS float property. More...
 
string clip [get, set]
 The clip property. More...
 
string color [get, set]
 The font colour. E.g. "#ffffff". More...
 
string content [get, set]
 Sets the text content of this element. More...
 
string colorOverlayR [get, set]
 The red component of the colour overlay as a value from 0->1. e.g. "0.5". More...
 
string colorOverlayG [get, set]
 The green component of the colour overlay as a value from 0->1. e.g. "0.5". More...
 
string colorOverlayB [get, set]
 The blue component of the colour overlay as a value from 0->1. e.g. "0.5". More...
 
string colorOverlayA [get, set]
 The alpha component of the colour overlay as a value from 0->1. e.g. "0.5". More...
 
string colorOverlay [get, set]
 A colour to apply over the top of this element. E.g. "#ff0000" will make it get a red tint. More...
 
string cursor [get, set]
 The cursor property. More...
 
string direction [get, set]
 The text direction. More...
 
string display [get, set]
 How this element should sit around other elements. "inline", "inline-block", "block", "none" (not visible). More...
 
string filter [get, set]
 Filter CSS property. More...
 
string filterMode [get, set]
 How images should be filtered. "point", "bilinear","trilinear". More...
 
string font [get, set]
 The font CSS property. More...
 
string fontFamily [get, set]
 This property has strict usage. It must refer to the name of a font in resources only; e.g. "PowerUI/Arial". Currently, there can only be one font in use on screen. There is certainly scope for adding more in the future. More...
 
string fontSize [get, set]
 The size of the font. E.g. "1.5em", "10px". More...
 
string fontVariant [get, set]
 The font-variant property. More...
 
string fontWeight [get, set]
 Sets the weight (thickness) of the font. "bold", "normal". More...
 
string fontStyle [get, set]
 Sets the styling of the font. "italic", "oblique", "none". More...
 
string height [get, set]
 Sets the height of this element. E.g. "50%", "120px". More...
 
string left [get, set]
 How far from the left this element is. E.g. "10px", "10%". What it's relative to depends on the position value. More...
 
string letterSpacing [get, set]
 Sets the gap between letters for custom kerning. You may also use a percentage, e.g. 100% is no spacing and 200% is a gap that is the size of the font size between letters. More...
 
string lineHeight [get, set]
 Sets the line height for this element, e.g. "200%". More...
 
string listStyle [get, set]
 Sets the list-style property. More...
 
string listStyleImage [get, set]
 Sets the list-style-image property. More...
 
string listStylePosition [get, set]
 Sets the list-style-position property. More...
 
string listStyleType [get, set]
 Sets the list-style-type property. More...
 
string margin [get, set]
 The margin around the outside of the element. E.g. "6px" (all sides) or "4px 5px 4px 5px" (top,right,bottom,left). More...
 
string marginLeft [get, set]
 The size of the left margin around the outside of the element. E.g. "5px". More...
 
string marginRight [get, set]
 The size of the right margin around the outside of the element. E.g. "5px". More...
 
string marginTop [get, set]
 The size of the top margin around the outside of the element. E.g. "5px". More...
 
string marginBottom [get, set]
 The size of the bottom margin around the outside of the element. E.g. "5px". More...
 
string opacity [get, set]
 The opacity of the element as a value from 0->1. e.g. "0.5". More...
 
string overflow [get, set]
 Sets what should happen if the content of an element overflows its boundaries. "scroll scroll" (x,y). More...
 
string overflowX [get, set]
 What happens if the content of an element overflows the x boundary. "scroll", "hidden", "auto", "visible". More...
 
string overflowY [get, set]
 What happens if the content of an element overflows the y boundary. "scroll", "hidden", "auto", "visible". More...
 
string onAtlas [get, set]
 Should an image be on the atlas? May be globally overridden with UI.RenderMode. "true" (default) or "false". More...
 
string padding [get, set]
 The size of the padding inside the element. E.g. "20px" (all sides) or "4px 5px 4px 5px" (top,right,bottom,left). More...
 
string paddingLeft [get, set]
 The size of the left padding inside the element. E.g. "5px". More...
 
string paddingRight [get, set]
 The size of the right padding inside the element. E.g. "5px". More...
 
string paddingTop [get, set]
 The size of the top padding inside the element. E.g. "5px". More...
 
string paddingBottom [get, set]
 The size of the bottom padding inside the element. E.g. "5px". More...
 
string pageBreakAfter [get, set]
 The page-break-after property. More...
 
string pageBreakBefore [get, set]
 The page-break-before property. More...
 
string position [get, set]
 The position of this element. "fixed","relative","absolute". More...
 
string right [get, set]
 How far from the right this element is. E.g. "10px", "10%". What it's relative to depends on the position value. More...
 
string top [get, set]
 How far from the top this element is. E.g. "10px", "10%". What it's relative to depends on the position value. More...
 
string textAlign [get, set]
 The horizontal alignment of text and other elements. "left", "right", "center", "justify". More...
 
string transform [get, set]
 The transform to apply. More...
 
string transformOrigin [get, set]
 The location of the transform origin in 2D screen space. E.g. "10px 10px", "50% 50%". More...
 
string transformOriginX [get, set]
 The x component of the location of the transform origin in 2D screen space. More...
 
string transformOriginY [get, set]
 The y component of the location of the transform origin in 2D screen space. More...
 
string transformOriginPosition [get, set]
 How the origin is positioned. "relative" (to the top left corner of the element) or "fixed" (fixed location on the screen). More...
 
string textDecoration [get, set]
 Can be used to apply a line to text. E.g. "underline", "line-through", "overline", "none". More...
 
bool textDecorationBlink [get, set]
 text-decoration:blink. More...
 
bool textDecorationLineThrough [get, set]
 text-decoration:line-through. More...
 
bool textDecorationNone [get, set]
 text-decoration:none. More...
 
bool textDecorationOverline [get, set]
 text-decoration:overline. More...
 
bool textDecorationUnderline [get, set]
 text-decoration:underline. More...
 
string verticalAlign [get, set]
 The vertical alignment of child elements. "top","middle","bottom". More...
 
string visibility [get, set]
 Is this element visible? If not, it still takes up space. See display to make it act like it's not there at all. More...
 
string width [get, set]
 Sets the width of this element. E.g. "50%", "120px". More...
 
string wordSpacing [get, set]
 Sets the gap between words for custom kerning. More...
 
string whiteSpace [get, set]
 Defines how text should wrap onto new lines. Either "nowrap" or "normal". More...
 
string zIndex [get, set]
 Sets the depth of this element. The higher the value, the higher up the element. More...
 
string fill [get, set]
 The fill of this element. More...
 
string stroke [get, set]
 The stroke of this element. More...
 
string floodColor [get, set]
 The flood-color of this element (feFlood). More...
 
string floodOpacity [get, set]
 The flood-opacity of this element (feFlood). More...
 
- Properties inherited from Css.Style
ReflowDocument document [get]
 The document containing this style. More...
 
string cssText [get, set]
 Sets the css text of this style as a css string seperated by semicolons (;). More...
 
Value this[string cssProperty] [get, set]
 Gets or sets the parsed value of this style by property name. More...
 
virtual Value this[CssProperty property] [get, set]
 Gets or sets the parsed value of this style by property name. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Css.Style
static Style Create (string properties, Node element)
 Creates a style from the given property block with the given parent. More...
 
- Package Functions inherited from Css.Style
Css.Value GetBaseValue (CssProperty property)
 Gets or creates the base value for the given property. The base value is essentially the value held directly in this style sheet. E.g. if the value you're setting is the R channel of color-overlay, this sets up the color-overlay value for you. More...
 

Constructor & Destructor Documentation

Css.ElementStyle.ElementStyle ( Dom.Element  element)
inline

Creates a new element style for the given element.

Parameters
elementThe element that this will be the style for.

Member Function Documentation

override ComputedStyle Css.ElementStyle.GetComputed ( )
inlinevirtual

Gets the computed form of this style.

Returns
The computed style.

Reimplemented from Css.Style.

ComputedStyle Css.ElementStyle.getComputedStyle ( )
inline

JS API function for getting the computed style.

override string Css.ElementStyle.GetString ( string  cssProperty)
inlinevirtual

Gets the given property as a css string. May optionally read the given inner index of it as a css string.

Parameters
propertyThe property to get as a string.
innerIndexThe inner value to get from the property. -1 for the whole property.
Returns
The property as a css string, e.g. color-overlay may return "#ffffff".

Reimplemented from Css.Style.

override void Css.ElementStyle.OnChanged ( CssProperty  property,
Value  newValue 
)
inlinevirtual

called when the named property changes.

Parameters
propertyThe property that changed.
newValueIt's new fully parsed value. May be null.

Reimplemented from Css.Style.

Member Data Documentation

ComputedStyle Css.ElementStyle.Computed

The computed style of this element.

Property Documentation

string Css.ElementStyle.animation
getset

CSS animation.

string Css.ElementStyle.background
getset

A shortcut for applying an image, solid colour and the repeat setting all at once. E.g. "url(myImage.png) repeat-x #000000".

string Css.ElementStyle.backgroundAttachment
getset

background-attachment.

string Css.ElementStyle.backgroundClip
getset

background-clip.

string Css.ElementStyle.backgroundColor
getset

The colour of a solid background. E.g. "#ffffff".

string Css.ElementStyle.backgroundImage
getset

The location of a background image. E.g. "url(imgInResources.png)", "url(cache://cachedImage)". See PowerUI.FileProtocol for more information on the default protocols://.

string Css.ElementStyle.backgroundPosition
getset

The offset of the background. E.g. "10px 5px" (x,y).

string Css.ElementStyle.backgroundRepeat
getset

How the background should be repeated if at all. E.g. "repeat-x", "repeat-y", "none".

string Css.ElementStyle.backgroundSize
getset

How the background should be scaled if at all. E.g. "100% 100%" or "auto" (default).

string Css.ElementStyle.backgroundSizeX
getset

How the width of the background should be scaled if at all. E.g. "100%" or "auto" (default).

string Css.ElementStyle.backgroundSizeY
getset

How the height of the background should be scaled if at all. E.g. "100%" or "auto" (default).

string Css.ElementStyle.border
getset

A shortcut for defining width, style and colour of all sides in one go. E.g. "2px solid #ffffff".

string Css.ElementStyle.borderBottom
getset

The width of the bottom border. E.g. "2px".

string Css.ElementStyle.borderBottomColor
getset

The color of the bottom border.

string Css.ElementStyle.borderBottomLeftRadius
getset

Sets the bottom left border radius.

string Css.ElementStyle.borderBottomRightRadius
getset

Sets the bottom right border radius.

string Css.ElementStyle.borderBottomStyle
getset

The style of the bottom border. E.g. "solid".

string Css.ElementStyle.borderBottomWidth
getset

The width of the bottom border.

string Css.ElementStyle.borderColor
getset

The colour of the border around the element. E.g. "#ffffff". Also supports alpha (e.g. #ffffff77).

string Css.ElementStyle.borderLeft
getset

The width of the left border. E.g. "2px".

string Css.ElementStyle.borderLeftColor
getset

The color of the left border.

string Css.ElementStyle.borderLeftStyle
getset

The style of the left border. E.g. "solid".

string Css.ElementStyle.borderLeftWidth
getset

The width of the left border.

string Css.ElementStyle.borderRadius
getset

Sets the border radius of all corners.

string Css.ElementStyle.borderRight
getset

The width of the right border. E.g. "2px".

string Css.ElementStyle.borderRightColor
getset

The color of the right border.

string Css.ElementStyle.borderRightStyle
getset

The style of the right border. E.g. "solid".

string Css.ElementStyle.borderRightWidth
getset

The width of the right border.

string Css.ElementStyle.borderStyle
getset

The style of the border around the element. Can only be "solid" for now.

string Css.ElementStyle.borderTop
getset

The width of the top border. E.g. "2px".

string Css.ElementStyle.borderTopColor
getset

The color of the top border.

string Css.ElementStyle.borderTopLeftRadius
getset

Sets the top left border radius.

string Css.ElementStyle.borderTopRightRadius
getset

Sets the top right border radius.

string Css.ElementStyle.borderTopStyle
getset

The style of the top border. E.g. "solid".

string Css.ElementStyle.borderTopWidth
getset

The width of the top border.

string Css.ElementStyle.borderWidth
getset

The width of the border around the element. E.g. "2px" (all sides) or "4px 5px 4px 5px" (top,right,bottom,left).

string Css.ElementStyle.bottom
getset

How far from the bottom this element is. E.g. "10px", "10%". What it's relative to depends on the position value.

string Css.ElementStyle.clear
getset

The CSS clear property.

string Css.ElementStyle.clip
getset

The clip property.

string Css.ElementStyle.color
getset

The font colour. E.g. "#ffffff".

string Css.ElementStyle.colorOverlay
getset

A colour to apply over the top of this element. E.g. "#ff0000" will make it get a red tint.

string Css.ElementStyle.colorOverlayA
getset

The alpha component of the colour overlay as a value from 0->1. e.g. "0.5".

string Css.ElementStyle.colorOverlayB
getset

The blue component of the colour overlay as a value from 0->1. e.g. "0.5".

string Css.ElementStyle.colorOverlayG
getset

The green component of the colour overlay as a value from 0->1. e.g. "0.5".

string Css.ElementStyle.colorOverlayR
getset

The red component of the colour overlay as a value from 0->1. e.g. "0.5".

string Css.ElementStyle.content
getset

Sets the text content of this element.

string Css.ElementStyle.cssFloat
getset

The CSS float property.

string Css.ElementStyle.cursor
getset

The cursor property.

string Css.ElementStyle.direction
getset

The text direction.

string Css.ElementStyle.display
getset

How this element should sit around other elements. "inline", "inline-block", "block", "none" (not visible).

string Css.ElementStyle.fill
getset

The fill of this element.

string Css.ElementStyle.filter
getset

Filter CSS property.

string Css.ElementStyle.filterMode
getset

How images should be filtered. "point", "bilinear","trilinear".

string Css.ElementStyle.floodColor
getset

The flood-color of this element (feFlood).

string Css.ElementStyle.floodOpacity
getset

The flood-opacity of this element (feFlood).

string Css.ElementStyle.font
getset

The font CSS property.

string Css.ElementStyle.fontFamily
getset

This property has strict usage. It must refer to the name of a font in resources only; e.g. "PowerUI/Arial". Currently, there can only be one font in use on screen. There is certainly scope for adding more in the future.

string Css.ElementStyle.fontSize
getset

The size of the font. E.g. "1.5em", "10px".

string Css.ElementStyle.fontStyle
getset

Sets the styling of the font. "italic", "oblique", "none".

string Css.ElementStyle.fontVariant
getset

The font-variant property.

string Css.ElementStyle.fontWeight
getset

Sets the weight (thickness) of the font. "bold", "normal".

string Css.ElementStyle.height
getset

Sets the height of this element. E.g. "50%", "120px".

string Css.ElementStyle.left
getset

How far from the left this element is. E.g. "10px", "10%". What it's relative to depends on the position value.

string Css.ElementStyle.letterSpacing
getset

Sets the gap between letters for custom kerning. You may also use a percentage, e.g. 100% is no spacing and 200% is a gap that is the size of the font size between letters.

string Css.ElementStyle.lineHeight
getset

Sets the line height for this element, e.g. "200%".

string Css.ElementStyle.listStyle
getset

Sets the list-style property.

string Css.ElementStyle.listStyleImage
getset

Sets the list-style-image property.

string Css.ElementStyle.listStylePosition
getset

Sets the list-style-position property.

string Css.ElementStyle.listStyleType
getset

Sets the list-style-type property.

string Css.ElementStyle.margin
getset

The margin around the outside of the element. E.g. "6px" (all sides) or "4px 5px 4px 5px" (top,right,bottom,left).

string Css.ElementStyle.marginBottom
getset

The size of the bottom margin around the outside of the element. E.g. "5px".

string Css.ElementStyle.marginLeft
getset

The size of the left margin around the outside of the element. E.g. "5px".

string Css.ElementStyle.marginRight
getset

The size of the right margin around the outside of the element. E.g. "5px".

string Css.ElementStyle.marginTop
getset

The size of the top margin around the outside of the element. E.g. "5px".

string Css.ElementStyle.maxHeight
getset

The maximum height for this element.

string Css.ElementStyle.maxWidth
getset

The maximum width for this element.

string Css.ElementStyle.minHeight
getset

The minimum height for this element. Default is 0px.

string Css.ElementStyle.minWidth
getset

The minimum width for this element. Default is 0px.

string Css.ElementStyle.onAtlas
getset

Should an image be on the atlas? May be globally overridden with UI.RenderMode. "true" (default) or "false".

string Css.ElementStyle.opacity
getset

The opacity of the element as a value from 0->1. e.g. "0.5".

string Css.ElementStyle.overflow
getset

Sets what should happen if the content of an element overflows its boundaries. "scroll scroll" (x,y).

string Css.ElementStyle.overflowX
getset

What happens if the content of an element overflows the x boundary. "scroll", "hidden", "auto", "visible".

string Css.ElementStyle.overflowY
getset

What happens if the content of an element overflows the y boundary. "scroll", "hidden", "auto", "visible".

string Css.ElementStyle.padding
getset

The size of the padding inside the element. E.g. "20px" (all sides) or "4px 5px 4px 5px" (top,right,bottom,left).

string Css.ElementStyle.paddingBottom
getset

The size of the bottom padding inside the element. E.g. "5px".

string Css.ElementStyle.paddingLeft
getset

The size of the left padding inside the element. E.g. "5px".

string Css.ElementStyle.paddingRight
getset

The size of the right padding inside the element. E.g. "5px".

string Css.ElementStyle.paddingTop
getset

The size of the top padding inside the element. E.g. "5px".

string Css.ElementStyle.pageBreakAfter
getset

The page-break-after property.

string Css.ElementStyle.pageBreakBefore
getset

The page-break-before property.

string Css.ElementStyle.position
getset

The position of this element. "fixed","relative","absolute".

string Css.ElementStyle.right
getset

How far from the right this element is. E.g. "10px", "10%". What it's relative to depends on the position value.

string Css.ElementStyle.scriptLevel
getset

-spark-script-level.

string Css.ElementStyle.scriptMinSize
getset

-spark-script-min-size.

string Css.ElementStyle.scrollLeft
getset

Sets the left scroll offset.

string Css.ElementStyle.scrollTop
getset

Sets the top scroll offset.

string Css.ElementStyle.slides
getset

The PowerSlide CSS property. Works just like "animation" does.

string Css.ElementStyle.stroke
getset

The stroke of this element.

string Css.ElementStyle.textAlign
getset

The horizontal alignment of text and other elements. "left", "right", "center", "justify".

string Css.ElementStyle.textClip
getset

How scrolling text gets clipped. By default this is "fast" and makes text look like it is being squished. "fast" or "clip".

string Css.ElementStyle.textDecoration
getset

Can be used to apply a line to text. E.g. "underline", "line-through", "overline", "none".

bool Css.ElementStyle.textDecorationBlink
getset

text-decoration:blink.

bool Css.ElementStyle.textDecorationLineThrough
getset

text-decoration:line-through.

bool Css.ElementStyle.textDecorationNone
getset

text-decoration:none.

bool Css.ElementStyle.textDecorationOverline
getset

text-decoration:overline.

bool Css.ElementStyle.textDecorationUnderline
getset

text-decoration:underline.

string Css.ElementStyle.top
getset

How far from the top this element is. E.g. "10px", "10%". What it's relative to depends on the position value.

string Css.ElementStyle.transform
getset

The transform to apply.

string Css.ElementStyle.transformOrigin
getset

The location of the transform origin in 2D screen space. E.g. "10px 10px", "50% 50%".

string Css.ElementStyle.transformOriginPosition
getset

How the origin is positioned. "relative" (to the top left corner of the element) or "fixed" (fixed location on the screen).

string Css.ElementStyle.transformOriginX
getset

The x component of the location of the transform origin in 2D screen space.

string Css.ElementStyle.transformOriginY
getset

The y component of the location of the transform origin in 2D screen space.

string Css.ElementStyle.verticalAlign
getset

The vertical alignment of child elements. "top","middle","bottom".

string Css.ElementStyle.visibility
getset

Is this element visible? If not, it still takes up space. See display to make it act like it's not there at all.

string Css.ElementStyle.voice
getset

The voice in use.

string Css.ElementStyle.whiteSpace
getset

Defines how text should wrap onto new lines. Either "nowrap" or "normal".

string Css.ElementStyle.width
getset

Sets the width of this element. E.g. "50%", "120px".

string Css.ElementStyle.wordSpacing
getset

Sets the gap between words for custom kerning.

string Css.ElementStyle.zIndex
getset

Sets the depth of this element. The higher the value, the higher up the element.