style object (2) (Object/CSS)

An object that represents an individual style element within a style sheet.

Availability:

DOM level - 2
JavaScript - 1.5
JScript - 3.0
Internet Explorer - 4.0
Netscape - 6.0
Opera - 5.0
Inherits from:Element object
JavaScript syntax:IEmyStyle = myDocument.all.anElementID.style
-myStyle = myElement.style
Argument list:aClassNameThe value in a CLASS="..." tag attribute.
anElementNameThe value in a NAME="..." or ID="..." tag attribute
aTagNameAn HTML tag name
Object properties:azimuth, background, backgroundAttachment, backgroundColor, backgroundImage, backgroundPosition, backgroundPositionX, backgroundPositionY, backgroundRepeat, behavior, border, borderBottom, borderBottomColor, BorderBottomStyle, borderBottomWidth, borderCollapse, borderColor, borderLeft, borderLeftColor, borderLeftStyle, borderLeftWidth, borderRight, borderRightColor, borderRightStyle, borderRightWidth, borderSpacing, borderStyle, borderTop, borderTopColor, borderTopStyle, borderTopWidth, borderWidth, bottom, boxSizing, captionSide, cellSpacing, clear, clip, color, colorProfile, columnSpan, content, counterIncrement, counterReset, cssFloat, cssText, cue, cueAfter, cueBefore, cursor, direction, display, elevation, emptyCells, filter, float, floatStyle, font, fontFamily, fontSize, fontSizeAdjust, fontStretch, fontStyle, fontVariant, fontWeight, height, imeMode, important, layoutGrid, layoutGridChar, layoutGridCharSpacing, layoutGridLine, layoutGridMode, layoutGridType, left, length, letterSpacing, lineBreak, lineHeight, listStyle, listStyleImage, listStylePosition, listStyleType, margin, marginBottom, marginLeft, marginRight, marginTop, markerOffset, marks, maxHeight, maxWidth, minHeight, minWidth, orphans, outline, outlineColor, outlineStyle, outlineWidth, overflow, overflowX, overflowY, padding, paddingBottom, paddingLeft, paddingRight, paddingTop, page, pageBreakAfter, pageBreakBefore, pageBreakInside, pause, pauseAfter, pauseBefore, pitch, pitchRange, pixelBottom, pixelHeight, pixelLeft, pixelRight, pixelTop, pixelWidth, playDuring, posBottom, posHeight, position, posLeft, posRight, posTop, posWidth, quotes, renderingIntent, richness, right, rowSpan, rubyAlign, rubyOverhang, rubyPosition, scrollbar3dLightColor, scrollbarArrowColor, scrollbarBaseColor, scrollbarDarkShadowColor, scrollbarFaceColor, scrollbarHighlightColor, scrollbarShadowColor, size, speak, speakDate, speakHeader, speakNumeral, speakPunctuation, speakTime, speechRate, stress, styleFloat, tableLayout, textAlign, textAutospace, textDecoration, textDecorationBlink, textDecorationLineThrough, textDecorationNone, textDecorationOverline, textDecorationUnderline, textIndent, textJustify, textKashidaSpace, textShadow, textTransform, textUnderlinePosition, top, unicodeBidi, verticalAlign, visibility, voiceFamily, volume, whiteSpace, widows, width, wordBreak, wordSpacing, wordWrap, writingMode, zIndex, zoom
Object methods:getAttribute(), getExpression(), item(), removeExpression(), setAttribute(), setExpression()
Event handlers:onClick, onDblClick, onHelp, onKeyDown, onKeyPress, onKeyUp, onMouseDown, onMouseMove, onMouseOut, onMouseOver, onMouseUp

DOM level 2 mandates that this object should really be called a CSS2Properties object and not a style object. It has become known as a style object due to the Element property name that points at it.

The style objects supported by MSIE and Netscape Navigator 4.x are quite different. For a start, the style objects are associated with each element in MSIE and are accessible quite easily via the style property. For Netscape Navigator 4, the style properties are documented under the JSSTag object. JSS style control permits the definition of element styles before an element has been instantiated into the document. You cannot use JSS to make dynamic style alterations.

With the release of Netscape 6.0, the style manipulation is virtually the same across both browsers. This works in both MSIE and Netscape 6 now:

document.getElementById("anID").style.backgroundColor="#003366";

Nearly all the attributes described in CSS level 1 and 2 are now supported by the style object. Because the codebase in Netscape 6.0 is totally new and it has only just been released, you may experience some minor instability in its support for styles.

When you look at the properties of the style object, you will observe that there are many alternative ways to define properties. This is quite commonplace where Microsoft define an interface to an object themselves or enhance one that has been defined by someone else (W3C or Netscape perhaps). For example, you can specify border attributes for all four borders but there are also separately defined attributes for each border. Although it's not that confusing, it does mean that there are a lot of additional keywords to learn and, from a parsing point of view, the more keywords there are, the slower the parser is going to be. It also means that programmers will employ a variety of different techniques which then forces the competing browser manufacturers to support the Microsoft extensions too.

Minimalist design is obviously not a priority here. Arguably there are benefits from this approach, too, and some people prefer having a variety of alternative ways to script around a problem. The style object could have been just as flexible with fewer properties at the expense of having scripts with a few more lines.

In the case of the border attributes, we might easily have coped with having a single border attribute that applied to all four sides because there are relatively few circumstances where we would want a different border on each side of a cell. On the other hand, we would then have lost some functionality so perhaps having individually addressable sides is beneficial, but then we could have omitted the collective reference leading to a need to explicitly define all four. At least this way, everyone's needs are catered for.

The properties for this object may apply styles to a variety of object types. Some are very specifically applicable to only a particular sub-set of objects. You should generally assume that the style attribute can apply to objects of any kind unless the property description topic enumerates a set of objects. In that case, the style attribute should only be applied to those object types and will likely be ignored by others. There is a possibility that applying a completely inappropriate styling to an object may cause problems or unpredictable behavior.

Warnings:

See also:CLASS="...", Collection object, currentStyle object, Element object, Element.currentStyle, Element.style, JSSTag object, Layer object, rule.style, runtimeStyle object

PropertyJavaScriptJScriptNIEOperaNESECMADOMCSSHTMLNotes
azimuth n/a n/a n/a n/a n/a n/a n/a2 22 2 n/aWarning
background1.5 1.53.0 3.06.0 6.04.0 4.05.0 5.0 n/a n/a2 21 1 n/a-
backgroundAttachment1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 21 1 n/aWarning
backgroundColor1.5 1.53.0 3.06.0 6.04.0 4.05.0 5.0 n/a n/a2 21 1 n/a-
backgroundImage1.5 1.53.0 3.06.0 6.04.0 4.05.0 5.0 n/a n/a2 21 1 n/a-
backgroundPosition1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 22 2 n/aWarning
backgroundPositionX1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a n/aProposed Proposed n/a-
backgroundPositionY1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a n/aProposed Proposed n/a-
backgroundRepeat1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 21 1 n/a-
behavior1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 2 n/a n/aWarning
border1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 21 1 n/a-
borderBottom1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 21 1 n/a-
borderBottomColor1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 22 2 n/a-
BorderBottomStyle1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 22 2 n/a-
borderBottomWidth1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 21 1 n/a-
borderCollapse1.5 1.55.0 5.06.0 6.05.0 5.0 n/a n/a n/a2 22 2 n/aWarning
borderColor1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 21 1 n/a-
borderLeft1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 21 1 n/a-
borderLeftColor1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 22 2 n/a-
borderLeftStyle1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 22 2 n/a-
borderLeftWidth1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 21 1 n/a-
borderRight1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 21 1 n/a-
borderRightColor1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 22 2 n/a-
borderRightStyle1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 22 2 n/a-
borderRightWidth1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 21 1 n/a-
borderSpacing1.5 1.55.0 5.06.0 6.05.0 5.0 n/a n/a n/a2 2 n/a n/aWarning
borderStyle1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 21 1 n/aWarning
borderTop1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 21 1 n/a-
borderTopColor1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 22 2 n/a-
borderTopStyle1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 22 2 n/a-
borderTopWidth1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 21 1 n/a-
borderWidth1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 21 1 n/a-
bottom1.5 1.55.0 5.06.0 6.05.0 5.0 n/a n/a n/a2 22 2 n/a-
boxSizing n/a5.0 5.0 n/a5.0 5.0 n/a n/a n/a n/a n/a n/a-
captionSide1.5 1.55.0 5.06.0 6.05.0 5.0 n/a n/a n/a2 22 2 n/a-
cellSpacing n/a n/a n/a n/a n/a n/a n/a n/a2 2 n/aWarning
clear1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 21 1 n/a-
clip1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 22 2 n/aWarning
color1.5 1.53.0 3.06.0 6.04.0 4.05.0 5.0 n/a n/a2 21 1 n/a-
colorProfile n/a5.0 5.0 n/a5.0 5.0 n/a n/a n/a n/a n/a n/a-
columnSpan n/a n/a n/a n/a n/a n/a n/a n/a2 2 n/aWarning
content1.5 1.55.0 5.06.0 6.05.0 5.0 n/a n/a n/a2 22 2 n/a-
counterIncrement1.5 1.55.0 5.06.0 6.05.0 5.0 n/a n/a n/a2 2 n/a n/a-
counterReset1.5 1.55.0 5.06.0 6.05.0 5.0 n/a n/a n/a2 2 n/a n/a-
cssFloat1.5 1.55.0 5.06.0 6.05.0 5.0 n/a n/a n/a2 2 n/a n/a-
cssText n/a3.0 3.0 n/a4.0 4.0 n/a n/a n/a n/a n/a n/aReadOnly.
cue n/a n/a n/a n/a n/a n/a n/a2 22 2 n/aWarning
cueAfter n/a n/a n/a n/a n/a n/a n/a2 22 2 n/aWarning
cueBefore n/a n/a n/a n/a n/a n/a n/a2 22 2 n/aWarning
cursor1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 22 2 n/a-
direction1.5 1.55.0 5.06.0 6.05.0 5.0 n/a n/a n/a2 22 2 n/a-
display1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 21 1 n/a-
elevation n/a n/a n/a n/a n/a n/a n/a2 22 2 n/aWarning
emptyCells1.5 1.55.0 5.06.0 6.05.0 5.0 n/a n/a n/a2 2 n/a n/a-
filter n/a3.0 3.0 n/a4.0 4.0 n/a n/a n/a n/aProposed Proposed n/aWarning
float n/a3.0 3.0 n/a4.0 4.0 n/a n/a n/a n/a1 1 n/aWarning
floatStyle n/a5.0 5.0 n/a5.0 5.0 n/a n/a n/a n/a n/a n/a-
font1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 21 1 n/a-
fontFamily1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 21 1 n/a-
fontSize1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 21 1 n/aWarning
fontSizeAdjust1.5 1.55.0 5.06.0 6.05.0 5.0 n/a n/a n/a2 22 2 n/a-
fontStretch1.5 1.55.0 5.06.0 6.05.0 5.0 n/a n/a n/a2 2 n/a n/a-
fontStyle1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 21 1 n/aWarning
fontVariant1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 21 1 n/a-
fontWeight1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 21 1 n/a-
height1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 21 1 n/aWarning
imeMode n/a5.0 5.0 n/a5.0 5.0 n/a n/a n/a n/aProposed Proposed n/a-
important n/a3.0 3.0 n/a4.0 4.0 n/a n/a n/a n/a1 1 n/a-
layoutGrid n/a5.0 5.0 n/a5.0 5.0 n/a n/a n/a n/aProposed Proposed n/a-
layoutGridChar n/a5.0 5.0 n/a5.0 5.0 n/a n/a n/a n/aProposed Proposed n/a-
layoutGridCharSpacing n/a5.0 5.0 n/a5.0 5.0 n/a n/a n/a n/aProposed Proposed n/a-
layoutGridLine n/a5.0 5.0 n/a5.0 5.0 n/a n/a n/a n/aProposed Proposed n/a-
layoutGridMode n/a5.0 5.0 n/a5.0 5.0 n/a n/a n/a n/aProposed Proposed n/a-
layoutGridType n/a5.0 5.0 n/a5.0 5.0 n/a n/a n/a n/aProposed Proposed n/a-
left1.5 1.53.0 3.06.0 6.04.0 4.05.0 5.0 n/a n/a2 22 2 n/a-
length n/a5.0 5.0 n/a5.0 5.0 n/a n/a n/a n/a n/a n/aReadOnly.
letterSpacing1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 21 1 n/a-
lineBreak n/a5.0 5.0 n/a5.0 5.0 n/a n/a n/a n/aProposed Proposed n/a-
lineHeight1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 21 1 n/a-
listStyle1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 21 1 n/a-
listStyleImage1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 21 1 n/a-
listStylePosition1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 21 1 n/a-
listStyleType1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 21 1 n/a-
margin1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 21 1 n/aWarning
marginBottom1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 21 1 n/a-
marginLeft1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 21 1 n/a-
marginRight1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 21 1 n/a-
marginTop1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 21 1 n/a-
markerOffset1.5 1.55.0 5.06.0 6.05.0 5.0 n/a n/a n/a2 2 n/a n/a-
marks1.5 1.55.0 5.06.0 6.05.0 5.0 n/a n/a n/a2 22 2 n/a-
maxHeight1.5 1.55.0 5.06.0 6.05.0 5.0 n/a n/a n/a2 22 2 n/a-
maxWidth1.5 1.55.0 5.06.0 6.05.0 5.0 n/a n/a n/a2 22 2 n/a-
minHeight1.5 1.55.0 5.06.0 6.05.0 5.0 n/a n/a n/a2 22 2 n/a-
minWidth1.5 1.55.0 5.06.0 6.05.0 5.0 n/a n/a n/a2 22 2 n/a-
orphans1.5 1.55.0 5.06.0 6.05.0 5.0 n/a n/a n/a2 22 2 n/a-
outline1.5 1.55.0 5.06.0 6.05.0 5.0 n/a n/a n/a2 2 n/a n/a-
outlineColor1.5 1.55.0 5.06.0 6.05.0 5.0 n/a n/a n/a2 2 n/a n/a-
outlineStyle1.5 1.55.0 5.06.0 6.05.0 5.0 n/a n/a n/a2 2 n/a n/a-
outlineWidth1.5 1.55.0 5.06.0 6.05.0 5.0 n/a n/a n/a2 2 n/a n/a-
overflow1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 22 2 n/aWarning
overflowX1.5 1.55.0 5.06.0 6.05.0 5.0 n/a n/a n/a n/a n/a n/a-
overflowY1.5 1.55.0 5.06.0 6.05.0 5.0 n/a n/a n/a n/a n/a n/a-
padding1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 21 1 n/aWarning
paddingBottom1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 21 1 n/a-
paddingLeft1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 21 1 n/a-
paddingRight1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 21 1 n/a-
paddingTop1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 21 1 n/a-
page1.5 1.55.5 5.56.0 6.05.5 5.5 n/a n/a n/a2 2 n/a n/a-
pageBreakAfter1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 22 2 n/aWarning
pageBreakBefore1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 22 2 n/a-
pageBreakInside1.5 1.55.0 5.06.0 6.05.0 5.0 n/a n/a n/a2 2 n/a n/a-
pause n/a n/a n/a n/a n/a n/a n/a2 22 2 n/aWarning
pauseAfter n/a n/a n/a n/a n/a n/a n/a2 22 2 n/aWarning
pauseBefore n/a n/a n/a n/a n/a n/a n/a2 22 2 n/aWarning
pitch n/a n/a n/a n/a n/a n/a n/a2 22 2 n/aWarning
pitchRange n/a n/a n/a n/a n/a n/a n/a2 22 2 n/aWarning
pixelBottom n/a5.0 5.0 n/a5.0 5.0 n/a n/a n/a n/a n/a n/a-
pixelHeight n/a3.0 3.0 n/a4.0 4.05.0 5.0 n/a n/a n/a n/a n/a-
pixelLeft n/a3.0 3.0 n/a4.0 4.05.0 5.0 n/a n/a n/a n/a n/a-
pixelRight n/a5.0 5.0 n/a5.0 5.0 n/a n/a n/a n/a n/a n/a-
pixelTop n/a3.0 3.0 n/a4.0 4.05.0 5.0 n/a n/a n/a n/a n/a-
pixelWidth n/a3.0 3.0 n/a4.0 4.05.0 5.0 n/a n/a n/a n/a n/a-
playDuring n/a n/a n/a n/a n/a n/a n/a2 22 2 n/aWarning
posBottom n/a5.0 5.0 n/a5.0 5.0 n/a n/a n/a n/a n/a n/a-
posHeight n/a3.0 3.0 n/a4.0 4.0 n/a n/a n/a n/a n/a n/a-
position1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 22 2 n/aWarning , ReadOnly.
posLeft n/a3.0 3.0 n/a4.0 4.0 n/a n/a n/a n/a n/a n/a-
posRight n/a5.0 5.0 n/a5.0 5.0 n/a n/a n/a n/a n/a n/a-
posTop n/a3.0 3.0 n/a4.0 4.0 n/a n/a n/a n/a n/a n/a-
posWidth n/a3.0 3.0 n/a4.0 4.0 n/a n/a n/a n/a n/a n/a-
quotes1.5 1.55.0 5.06.0 6.05.0 5.0 n/a n/a n/a2 2 n/a n/a-
renderingIntent n/a5.0 5.0 n/a5.0 5.0 n/a n/a n/a n/a n/a n/a-
richness n/a n/a n/a n/a n/a n/a n/a2 22 2 n/aWarning
right1.5 1.55.0 5.06.0 6.05.0 5.0 n/a n/a n/a2 22 2 n/a-
rowSpan n/a n/a n/a n/a n/a n/a n/a n/a2 2 n/a-
rubyAlign n/a5.0 5.0 n/a5.0 5.0 n/a n/a n/a n/aProposed Proposed n/a-
rubyOverhang n/a5.0 5.0 n/a5.0 5.0 n/a n/a n/a n/aProposed Proposed n/a-
rubyPosition n/a5.0 5.0 n/a5.0 5.0 n/a n/a n/a n/aProposed Proposed n/a-
scrollbar3dLightColor n/a5.5 5.5 n/a5.5 5.5 n/a n/a n/a n/a n/a n/a-
scrollbarArrowColor n/a5.5 5.5 n/a5.5 5.5 n/a n/a n/a n/a n/a n/a-
scrollbarBaseColor n/a5.5 5.5 n/a5.5 5.5 n/a n/a n/a n/a n/a n/a-
scrollbarDarkShadowColor n/a5.5 5.5 n/a5.5 5.5 n/a n/a n/a n/a n/a n/a-
scrollbarFaceColor n/a5.5 5.5 n/a5.5 5.5 n/a n/a n/a n/a n/a n/a-
scrollbarHighlightColor n/a5.5 5.5 n/a5.5 5.5 n/a n/a n/a n/a n/a n/a-
scrollbarShadowColor n/a5.5 5.5 n/a5.5 5.5 n/a n/a n/a n/a n/a n/a-
size n/a n/a n/a n/a n/a n/a n/a2 22 2 n/a-
speak n/a n/a n/a n/a n/a n/a n/a2 22 2 n/aWarning
speakDate n/a n/a n/a n/a n/a n/a n/a n/a2 2 n/aWarning
speakHeader n/a n/a n/a n/a n/a n/a n/a2 22 2 n/aWarning
speakNumeral n/a n/a n/a n/a n/a n/a n/a2 22 2 n/aWarning
speakPunctuation n/a n/a n/a n/a n/a n/a n/a2 22 2 n/aWarning
speakTime n/a n/a n/a n/a n/a n/a n/a n/a2 2 n/aWarning
speechRate n/a n/a n/a n/a n/a n/a n/a2 22 2 n/aWarning
stress n/a n/a n/a n/a n/a n/a n/a2 22 2 n/aWarning
styleFloat1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a n/a n/a n/a-
tableLayout1.5 1.55.0 5.06.0 6.05.0 5.0 n/a n/a n/a2 22 2 n/a-
textAlign1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 21 1 n/aWarning
textAutospace n/a5.0 5.0 n/a5.0 5.0 n/a n/a n/a n/aProposed Proposed n/a-
textDecoration1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 21 1 n/a-
textDecorationBlink1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a n/aProposed Proposed n/aWarning
textDecorationLineThrough1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a n/aProposed Proposed n/aWarning
textDecorationNone1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a n/aProposed Proposed n/aWarning
textDecorationOverline1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a n/aProposed Proposed n/aWarning
textDecorationUnderline1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a n/aProposed Proposed n/aWarning
textIndent1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 21 1 n/aWarning
textJustify n/a5.0 5.0 n/a5.0 5.0 n/a n/a n/a n/aProposed Proposed n/a-
textKashidaSpace n/a5.5 5.5 n/a5.5 5.5 n/a n/a n/a n/aProposed Proposed n/a-
textShadow1.5 1.55.0 5.06.0 6.05.0 5.0 n/a n/a n/a2 22 2 n/a-
textTransform1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 21 1 n/a-
textUnderlinePosition n/a5.5 5.5 n/a5.5 5.5 n/a n/a n/a n/aProposed Proposed n/a-
top1.5 1.53.0 3.06.0 6.04.0 4.05.0 5.0 n/a n/a2 22 2 n/a-
unicodeBidi1.5 1.55.0 5.06.0 6.05.0 5.0 n/a n/a n/a2 2 n/a n/a-
verticalAlign1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 21 1 n/a-
visibility1.2 1.23.0 3.04.0 4.04.0 4.05.0 5.0 n/a n/a2 22 2 n/a-
voiceFamily n/a n/a n/a n/a n/a n/a n/a2 22 2 n/aWarning
volume n/a n/a n/a n/a n/a n/a n/a2 22 2 n/aWarning
whiteSpace1.5 1.55.5 5.56.0 6.05.5 5.5 n/a n/a n/a2 21 1 n/aWarning
widows1.5 1.55.0 5.06.0 6.05.0 5.0 n/a n/a n/a2 22 2 n/a-
width1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a2 21 1 n/aWarning
wordBreak n/a5.0 5.0 n/a5.0 5.0 n/a n/a n/a n/aProposed Proposed n/a-
wordSpacing1.5 1.53.0 3.06.0 6.04.01 4.01 n/a n/a n/a2 21 1 n/aWarning
wordWrap n/a5.5 5.5 n/a5.5 5.5 n/a n/a n/a n/aProposed Proposed n/a-
writingMode n/a5.5 5.5 n/a5.5 5.5 n/a n/a n/a n/aProposed Proposed n/a-
zIndex1.5 1.53.0 3.06.0 6.04.0 4.05.0 5.0 n/a n/a2 22 2 n/aWarning
zoom n/a5.5 5.5 n/a5.5 5.5 n/a n/a n/a n/a n/a n/a-

MethodJavaScriptJScriptNIEOperaNESECMADOMCSSHTMLNotes
getAttribute()1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a n/a n/a n/aWarning
getExpression() n/a5.0 5.0 n/a5.0 5.0 n/a n/a n/a n/a n/a n/a-
item() n/a3.0 3.0 n/a4.0 4.0 n/a n/a n/a n/a n/a n/a-
removeExpression() n/a5.0 5.0 n/a5.0 5.0 n/a n/a n/a n/a n/a n/a-
setAttribute()1.5 1.55.0 5.06.0 6.05.0 5.0 n/a n/a n/a n/a n/a n/a-
setExpression() n/a5.0 5.0 n/a5.0 5.0 n/a n/a n/a n/a n/a n/a-

Event nameJavaScriptJScriptNIEOperaNESECMADOMCSSHTMLNotes
onClick1.5 1.53.0 3.06.0 6.04.0 4.05.0 5.0 n/a n/a n/a n/a4.0 4.0Warning
onDblClick1.5 1.53.0 3.06.0 6.04.0 4.05.0 5.0 n/a n/a n/a n/a4.0 4.0Warning
onHelp n/a3.0 3.0 n/a4.0 4.0 n/a n/a n/a n/a n/a n/aWarning
onKeyDown1.5 1.53.0 3.06.0 6.04.0 4.05.0 5.0 n/a n/a n/a n/a4.0 4.0Warning
onKeyPress1.5 1.53.0 3.06.0 6.04.0 4.05.0 5.0 n/a n/a n/a n/a4.0 4.0Warning
onKeyUp1.5 1.53.0 3.06.0 6.04.0 4.05.0 5.0 n/a n/a n/a n/a4.0 4.0Warning
onMouseDown1.5 1.53.0 3.06.0 6.04.0 4.05.0 5.0 n/a n/a n/a n/a4.0 4.0Warning
onMouseMove1.5 1.53.0 3.06.0 6.04.0 4.0 n/a n/a n/a n/a n/a4.0 4.0Warning
onMouseOut1.5 1.53.0 3.06.0 6.04.0 4.05.0 5.0 n/a n/a n/a n/a4.0 4.0Warning
onMouseOver1.5 1.53.0 3.06.0 6.04.0 4.05.0 5.0 n/a n/a n/a n/a4.0 4.0Warning
onMouseUp1.5 1.53.0 3.06.0 6.04.0 4.05.0 5.0 n/a n/a n/a n/a4.0 4.0Warning

Inheritance chain:

Element object, Node object