Clear Up
SharpKit Reference

CSS2Properties Class

The

CSS2Properties
interface represents a convenience mechanism for retrieving and setting properties within a
CSSStyleDeclaration
. The attributes of this interface correspond to all the properties specified in CSS2. Getting an attribute of this interface is equivalent to calling the
getPropertyValue
method of the
CSSStyleDeclaration
interface. Setting an attribute of this interface is equivalent to calling the
setProperty
method of the
CSSStyleDeclaration
interface.
A conformant implementation of the CSS module is not required to implement the
CSS2Properties
interface. If an implementation does implement this interface, the expectation is that language-specific methods can be used to cast from an instance of the
CSSStyleDeclaration
interface to the
CSS2Properties
interface.
If an implementation does implement this interface, it is expected to understand the specific syntax of the shorthand properties, and apply their semantics; when the
margin
property is set, for example, the
marginTop
,
marginRight
,
marginBottom
and
marginLeft
properties are actually being set by the underlying implementation.
When dealing with CSS "shorthand" properties, the shorthand properties should be decomposed into their component longhand properties as appropriate, and when querying for their value, the form returned should be the shortest form exactly equivalent to the declarations made in the ruleset. However, if there is no shorthand declaration that could be added to the ruleset without changing in any way the rules already declared in the ruleset (i.e., by adding longhand rules that were previously not declared in the ruleset), then the empty string should be returned for the shorthand property.
For example, querying for the
font
property should not return "normal normal normal 14pt/normal Arial, sans-serif", when "14pt Arial, sans-serif" suffices. (The normals are initial values, and are implied by use of the longhand property.)
If the values for all the longhand properties that compose a particular string are the initial values, then a string consisting of all the initial values should be returned (e.g. a
border-width
value of "medium" should be returned as such, not as "").
For some shorthand properties that take missing values from other sides, such as the
margin
,
padding
, and
border-[width|style|color]
properties, the minimum number of sides possible should be used; i.e., "0px 10px" will be returned instead of "0px 10px 0px 10px".
If the value of a shorthand property can not be decomposed into its component longhand properties, as is the case for the
font
property with a value of "menu", querying for the values of the component longhand properties should return the empty string.
See also the Document Object Model (DOM) Level 2 Style Specification. @since DOM Level 2

Namespace: SharpKit.Html

Base Types

System.Object

Constructors

Name Description
CSS2Properties()

Properties

Name Description
azimuth See the azimuth property definition in CSS2.
background See the background property definition in CSS2.
backgroundAttachment See the background-attachment property definition in CSS2.
backgroundColor See the background-color property definition in CSS2.
backgroundImage See the background-image property definition in CSS2.
backgroundPosition See the background-position property definition in CSS2.
backgroundRepeat See the background-repeat property definition in CSS2.
border See the border property definition in CSS2.
borderBottom See the border-bottom property definition in CSS2.
borderBottomColor See the border-bottom-color property definition in CSS2.
borderBottomStyle See the border-bottom-style property definition in CSS2.
borderBottomWidth See the border-bottom-width property definition in CSS2.
borderCollapse See the border-collapse property definition in CSS2.
borderColor See the border-color property definition in CSS2.
borderLeft See the border-left property definition in CSS2.
borderLeftColor See the border-left-color property definition in CSS2.
borderLeftStyle See the border-left-style property definition in CSS2.
borderLeftWidth See the border-left-width property definition in CSS2.
borderRight See the border-right property definition in CSS2.
borderRightColor See the border-right-color property definition in CSS2.
borderRightStyle See the border-right-style property definition in CSS2.
borderRightWidth See the border-right-width property definition in CSS2.
borderSpacing See the border-spacing property definition in CSS2.
borderStyle See the border-style property definition in CSS2.
borderTop See the border-top property definition in CSS2.
borderTopColor See the border-top-color property definition in CSS2.
borderTopStyle See the border-top-style property definition in CSS2.
borderTopWidth See the border-top-width property definition in CSS2.
borderWidth See the border-width property definition in CSS2.
bottom See the bottom property definition in CSS2.
captionSide See the caption-side property definition in CSS2.
clear See the clear property definition in CSS2.
clip See the clip property definition in CSS2.
color See the color property definition in CSS2.
content See the content property definition in CSS2.
counterIncrement See the counter-increment property definition in CSS2.
counterReset See the counter-reset property definition in CSS2.
cssFloat See the float property definition in CSS2.
cue See the cue property definition in CSS2.
cueAfter See the cue-after property definition in CSS2.
cueBefore See the cue-before property definition in CSS2.
cursor See the cursor property definition in CSS2.
direction See the direction property definition in CSS2.
display See the display property definition in CSS2.
elevation See the elevation property definition in CSS2.
emptyCells See the empty-cells property definition in CSS2.
font See the font property definition in CSS2.
fontFamily See the font-family property definition in CSS2.
fontSize See the font-size property definition in CSS2.
fontSizeAdjust See the font-size-adjust property definition in CSS2.
fontStretch See the font-stretch property definition in CSS2.
fontStyle See the font-style property definition in CSS2.
fontVariant See the font-variant property definition in CSS2.
fontWeight See the font-weight property definition in CSS2.
height See the height property definition in CSS2.
left See the left property definition in CSS2.
letterSpacing See the letter-spacing property definition in CSS2.
lineHeight See the line-height property definition in CSS2.
listStyle See the list-style property definition in CSS2.
listStyleImage See the list-style-image property definition in CSS2.
listStylePosition See the list-style-position property definition in CSS2.
listStyleType See the list-style-type property definition in CSS2.
margin See the margin property definition in CSS2.
marginBottom See the margin-bottom property definition in CSS2.
marginLeft See the margin-left property definition in CSS2.
marginRight See the margin-right property definition in CSS2.
marginTop See the margin-top property definition in CSS2.
markerOffset See the marker-offset property definition in CSS2.
marks See the marks property definition in CSS2.
maxHeight See the max-height property definition in CSS2.
maxWidth See the max-width property definition in CSS2.
minHeight See the min-height property definition in CSS2.
minWidth See the min-width property definition in CSS2.
orphans See the orphans property definition in CSS2.
outline See the outline property definition in CSS2.
outlineColor See the outline-color property definition in CSS2.
outlineStyle See the outline-style property definition in CSS2.
outlineWidth See the outline-width property definition in CSS2.
overflow See the overflow property definition in CSS2.
padding See the padding property definition in CSS2.
paddingBottom See the padding-bottom property definition in CSS2.
paddingLeft See the padding-left property definition in CSS2.
paddingRight See the padding-right property definition in CSS2.
paddingTop See the padding-top property definition in CSS2.
page See the page property definition in CSS2.
pageBreakAfter See the page-break-after property definition in CSS2.
pageBreakBefore See the page-break-before property definition in CSS2.
pageBreakInside See the page-break-inside property definition in CSS2.
pause See the pause property definition in CSS2.
pauseAfter See the pause-after property definition in CSS2.
pauseBefore See the pause-before property definition in CSS2.
pitch See the pitch property definition in CSS2.
pitchRange See the pitch-range property definition in CSS2.
playDuring See the play-during property definition in CSS2.
position See the position property definition in CSS2.
quotes See the quotes property definition in CSS2.
richness See the richness property definition in CSS2.
right See the right property definition in CSS2.
size See the size property definition in CSS2.
speak See the speak property definition in CSS2.
speakHeader See the speak-header property definition in CSS2.
speakNumeral See the speak-numeral property definition in CSS2.
speakPunctuation See the speak-punctuation property definition in CSS2.
speechRate See the speech-rate property definition in CSS2.
stress See the stress property definition in CSS2.
tableLayout See the table-layout property definition in CSS2.
textAlign See the text-align property definition in CSS2.
textDecoration See the text-decoration property definition in CSS2.
textIndent See the text-indent property definition in CSS2.
textShadow See the text-shadow property definition in CSS2.
textTransform See the text-transform property definition in CSS2.
top See the top property definition in CSS2.
unicodeBidi See the unicode-bidi property definition in CSS2.
verticalAlign See the vertical-align property definition in CSS2.
visibility See the visibility property definition in CSS2.
voiceFamily See the voice-family property definition in CSS2.
volume See the volume property definition in CSS2.
whiteSpace See the white-space property definition in CSS2.
widows See the widows property definition in CSS2.
width See the width property definition in CSS2.
wordSpacing See the word-spacing property definition in CSS2.
zIndex See the z-index property definition in CSS2.
© Copyright 2005-2011 SharpKit. All rights reserved.