
6. DOM Level 2 CSS
6.1 CSS Fundamental Interfaces
| Interface | Attribute/Method | Support | Remark |
|---|---|---|---|
| CSSStyleSheet | |||
| Attribute | |||
| ownerRule | No | ||
| cssRules | No | ||
| Method | |||
| insertRule(in DOMString rule, in unsigned long index) | No | ||
| deleteRule(in unsigned long index) | No | ||
| CSSRuleList | |||
| Attribute | |||
| length | No | ||
| Method | |||
| item(in unsigned long index) | No | ||
| CSSRule | |||
| Attribute | |||
| cssText | No | ||
| parentStyleSheet | No | ||
| parentRule | No | ||
| type | No | ||
| CSSStyleRule | |||
| Attribute | |||
| selectorText | No | ||
| style | No | ||
| CSSMediaRule | |||
| Attribute | |||
| media | No | ||
| cssRules | No | ||
| Method | |||
| insertRule(in DOMString rule, in unsigned long index) | No | ||
| deleteRule(in unsigned long index) | No | ||
| CSSFontFaceRule | |||
| Attribute | |||
| style | No | ||
| CSSPageRule | |||
| Attribute | |||
| selectorText | No | ||
| style | No | ||
| CSSImportRule | |||
| Attribute | |||
| href | No | ||
| media | No | ||
| styleSheet | No | ||
| CSSCharsetRule | |||
| Attribute | |||
| encoding | No | ||
| CSSUnknownRule | |||
| CSSStyleDeclaration | |||
| Attribute | |||
| cssText | No | ||
| length | No | ||
| parentRule | No | ||
| Method | |||
| item(in unsigned long index) | No | ||
| getPropertyCSSValue(in DOMString propertyName) | No | ||
| getPropertyPriority(in DOMString propertyName) | No | ||
| getPropertyValue(in DOMString propertyName) | No | ||
| removeProperty(in DOMString propertyName) | No | ||
| setProperty(in DOMString propertyName, in DOMString value, in DOMString priority) | No | ||
| CSSValue | |||
| Attribute | |||
| cssText | No | ||
| cssValueType | No | ||
| CSSPrimitiveValue | |||
| Attribute | |||
| primitiveType | No | ||
| Method | |||
| setFloatValue(in unsigned short unitType, in float floatValue) | No | ||
| getFloatValue(in unsigned short unitType) | No | ||
| setStringValue(in unsigned short stringType, in DOMString stringValue) | No | ||
| getStringValue() | No | ||
| getCounterValue() | No | ||
| getRectValue() | No | ||
| getRGBColorValue() | No | ||
| CSSValueList | |||
| Attribute | |||
| length | No | ||
| Method | |||
| item(in unsigned long index) | No | ||
| RGBColor | |||
| Attribute | |||
| red | No | ||
| green | No | ||
| blue | No | ||
| Rect | |||
| Attribute | |||
| top | No | ||
| right | No | ||
| bottom | No | ||
| left | No | ||
| Counter | |||
| Attribute | |||
| identifier | No | ||
| listStyle | No | ||
| separator | No | ||
| ViewCSS | |||
| Method | |||
| getComputedStyle(in Element elt, in DOMString pseudoElt); | No | ||
| DocumentCSS | |||
| Method | |||
| getOverrideStyle(in Element elt, in DOMString pseudoElt) | No | ||
| DOMImplementationCSS | |||
| Method | |||
| createCSSStyleSheet(in DOMString title, in DOMString media) | No | ||
| ElementCSSInlineStyle | |||
| Attribute | |||
| style | No | ||
6.2 CSS2 Extended Interface
| Interface | Attribute/Method | Support | Remark |
|---|---|---|---|
| CSS2Properties | |||
| Attribute | |||
| azimuth | No | ||
| background | Yes | ||
| backgroundAttachment | Yes | ||
| backgroundColor | Yes | ||
| backgroundImage | Yes | ||
| backgroundPosition | Yes | ||
| backgroundRepeat | Yes | ||
| border | Yes | ||
| borderCollapse | No | ||
| borderColor | Yes | ||
| borderSpacing | No | ||
| borderStyle | Yes | ||
| borderTop | Yes | ||
| borderRight | Yes | ||
| borderBottom | Yes | ||
| borderLeft | Yes | ||
| borderTopColor | Yes | ||
| borderRightColor | Yes | ||
| borderBottomColor | Yes | ||
| borderLeftColor | Yes | ||
| borderTopStyle | Yes | ||
| borderRightStyle | Yes | ||
| borderBottomStyle | Yes | ||
| borderLeftStyle | Yes | ||
| borderTopWidth | Yes | ||
| borderRightWidth | Yes | ||
| borderBottomWidth | Yes | ||
| borderLeftWidth | Yes | ||
| borderWidth | Yes | When referenced, the value is converted to a value in units of 'px'. | |
| bottom | No | ||
| captionSide | No | ||
| clear | Yes | ||
| clip | No | ||
| color | Yes | ||
| content | Yes | Only reading of values is supported in NF3. | |
| counterIncrement | No | ||
| counterReset | No | ||
| cssText | Yes | ||
| cssText | Yes | ||
| cssText | Yes | ||
| cue | No | ||
| cueAfter | No | ||
| cueBefore | No | ||
| cursor | No | ||
| direction | Yes | ||
| display | Yes | ||
| elevation | No | ||
| emptyCells | No | ||
| cssFloat | Yes | ||
| font | Yes | ||
| fontFamily | Yes | ||
| fontSize | Yes | ||
| fontSizeAdjust | No | ||
| fontStretch | No | ||
| fontStyle | Yes | ||
| fontVariant | No | ||
| fontWeight | Yes | ||
| height | Yes | ||
| left | Yes | ||
| letterSpacing | No | ||
| lineHeight | Yes | ||
| listStyle | Yes | ||
| listStyleImage | Yes | ||
| listStylePosition | Yes | ||
| listStyleType | Yes | ||
| margin | Yes | ||
| marginTop | Yes | ||
| marginRight | Yes | ||
| marginBottom | Yes | ||
| marginLeft | Yes | ||
| markerOffset | No | ||
| marks | No | ||
| maxHeight | No | ||
| maxWidth | No | ||
| minHeight | No | ||
| minWidth | No | ||
| orphans | No | ||
| outline | No | ||
| outlineColor | No | ||
| outlineStyle | No | ||
| outlineWidth | No | ||
| overflow | No | ||
| padding | Yes | ||
| paddingTop | Yes | ||
| paddingRight | Yes | ||
| paddingBottom | Yes | ||
| paddingLeft | Yes | ||
| page | No | ||
| pageBreakAfter | No | ||
| pageBreakBefore | No | ||
| pageBreakInside | No | ||
| pause | No | ||
| pauseAfter | No | ||
| pauseBefore | No | ||
| pitch | No | ||
| pitchRange | No | ||
| playDuring | No | ||
| position | Yes | ||
| quotes | No | ||
| richness | No | ||
| right | No | ||
| size | No | ||
| speak | No | ||
| speakHeader | No | ||
| speakNumeral | No | ||
| speakPunctuation | No | ||
| speechRate | No | ||
| stress | No | ||
| styleFloat | Yes | ||
| tableLayout | No | ||
| textAlign | Yes | ||
| textDecoration | Yes | ||
| textIndent | Yes | ||
| textShadow | No | ||
| textTransform | No | ||
| top | Yes | ||
| unicodeBidi | Yes | ||
| verticalAlign | Yes | ||
| visibility | Yes | ||
| voiceFamily | No | ||
| volume | No | ||
| whiteSpace | Yes | ||
| widows | No | ||
| width | Yes | ||
| wordSpacing | No | ||
| zIndex | Yes | ||

