CSSStyleDeclaration

< css‎ | cssom
Jump to: navigation, search

CSSStyleDeclaration

This article is In Progress.



Summary

A CSS style declaration which includes properties, values and priorities.


Properties

API Name Summary
length The number of nodes in the list.
oncached The resources listed in the manifest have been downloaded, and the application is now cached.
onchecking The user agent is checking for an update, or attempting to download the manifest for the first time. This is always the first event in the sequence.
ondownloading The user agent has found an update and is fetching it, or is downloading the resources listed by the manifest for the first time.
onerror Indicates an error has occurred.
onnoupdate Indicates the manifest has not changed.
onobsolete The Webpage is associated with an application cache whose group is marked as obsolete.
onprogress The user agent is downloading resources listed by the manifest. The event object's total attribute returns the total number of files to be downloaded. The event object's loaded attribute returns the number of files processed so far.
onupdateready The ApplicationCache object's cache host is associated with an application cache whose application cache group's update status is idle, and whose application cache group is not marked as obsolete, but that application cache is not the newest cache in its group.
status Returns the current status of the application cache, as given by the constants defined below.
enabled Returns true if the given track is active, and false otherwise. Can be set, to change whether the track is enabled or not. If multiple audio tracks are enabled simultaneously, they are mixed.
id Returns the ID of the given track. This is the ID that can be used with a fragment identifier if the format supports the Media Fragments URI syntax, and that can be used with the getTrackById() method.
kind Returns the category the given track falls into.
label Returns the label of the given track, if known, or the empty string otherwise.
language Returns the language of the given track, if known, or the empty string otherwise.
length Returns the number of tracks in the list.
activeCues Returns the text track cues from the text track list of cues that are currently active (i.e. that start before the current playback position and end after it), as a TextTrackCueList object.
cues Returns the text track list of cues, as a TextTrackCueList object.
inBandMetadataTrackDispatchType Returns the text track in-band metadata track dispatch type string.
kind Returns the text track kind string.
label Returns the text track label, if there is one, or the empty string otherwise (indicating that a custom label probably needs to be generated from the other attributes of the object if the object is exposed to the user).
language Returns the text track language string.
mode The text track mode, represented by a string from the following list. "disabled": The text track disabled mode. "hidden": The text track hidden mode. "showing": The text track showing mode.
align A string representing the text track cue alignment, as follows. If it is start alignment: the string "start". If it is middle alignment: the string "middle". If it is end alignment: the string "end". If it is left alignment: the string "left". If it is right alignment: the string "right".
endTime The text track cue end time, in seconds.
id The text track cue identifier.
line The text track cue line position. In the case of the value being auto, the string "auto" is returned.
pauseOnExit The text track cue pause-on-exit flag.
position The text track cue text position.
size The text track cue size.
snapToLines The text track cue snap-to-lines flag.
startTime The text track cue start time, in seconds.
text The text track cue text in raw unparsed form.
track Returns the TextTrack object to which this text track cue belongs, if any, or null otherwise.
vertical A string representing the text track cue writing direction, as follows. If it is horizontal: The empty string. If it is vertical growing left: The string "rl". If it is vertical growing right: The string "lr".
length The length attribute returns the number of cues in the list represented by the TextTrackCueList.
length The length attribute of a TextTrackList object returns the number of text tracks in the list represented by the TextTrackList.
length Returns the number of ranges in the object.
track Returns the track object (TextTrack, AudioTrack, or VideoTrack) to which the event relates.
charging Represents if the system's battery is charging.
chargingTime Represents the time remaining in seconds until the system's battery is fully charged.
dischargingTime Represents the time remaining in seconds until the system's battery is completely discharged and the system is about to be suspended.
level Represents the current battery level scaled from 0 to 1.0.
onchargingchange Handles the chargingchange event.
onchargingtimechange Handles the chargingtimechange event.
ondischargingtimechange Handles the dischargingtimechange event.
onlevelchange Handles the levelchange event.
battery The object that exposes the battery status information.
html/elements/canvas A (read-only) reference to the canvas element that the CanvasRenderingContext2D object was created for.
fillStyle The current style used to fill shapes. The style can be a CanvasGradient, a CanvasPattern, or a string containing a CSS color.
... further results

Methods

API Name Summary
abort Cancels the application cache download process. This method is intended to be used by Web applications showing their own caching progress UI, in case the user wants to stop the update (e.g., because bandwidth is limited).
swapCache Switches to the most recent application cache, if there is a newer one. If there isn't, throws an InvalidStateError exception.

This does not cause previously-loaded resources to be reloaded; for example, images do not suddenly get reloaded and style sheets and scripts do not get reparsed or reevaluated. The only change is that subsequent requests for cached resources will obtain the newer copies.

The updateready event will fire before this method can be called. Once it fires, the Web application can, at its leisure, call this method to switch the underlying cache to the one with the more recent updates. To make proper use of this, applications have to be able to bring the new features into play; for example, reloading scripts to enable new features. An easier alternative to swapCache() is just to reload the entire page at a time suitable for the user, using location.reload().

update Invokes the application cache download process. Throws an InvalidStateError exception if there is no application cache to update. Calling this method is not usually necessary, as user agents will generally take care of updating application caches automatically. The method can be useful in situations such as long-lived applications. For example, a Web mail application might stay open in a browser tab for weeks at a time. Such an application could want to test for updates each day.
getTrackById Returns the AudioTrack object with the given identifier, or null if no track has that identifier.
addCue Adds the given cue to textTrack's text track list of cues.
removeCue Removes the given cue from textTrack's text track list of cues.
getCueAsHTML Returns the text track cue text as a DocumentFragment of HTML elements and other DOM nodes.
getCueById Returns the first text track cue (in text track cue order) with text track cue identifier id. Returns null if none of the cues have the given identifier or if the argument is the empty string.
end Returns the time for the end of the range with the given index. Throws an IndexSizeError if the index is out of range.
start Returns the time for the start of the range with the given index. Throws an IndexSizeError if the index is out of range.
addColorStop Adds a new stop to a gradient. If offset is less than 0 or greater than 1 then an IndexSizeError exception must be thrown. If the color cannot be parsed as a CSS <color> value, then a SyntaxError exception must be thrown. Otherwise the gradient must have a new stop placed, at offset offset relative to the whole gradient, and with the color obtained by parsing color as a CSS <color> value.
addHitRegion Creates a hit region.
arc Draws the specified arc.
arcTo Check to be sure there's a subpath for (x1, y1). Then, the behavior depends on the arguments and the last point in the subpath. See Notes.
beginPath Empties the list of subpaths in the context's current default path so that it once again has zero subpaths.
bezierCurveTo Ensures there is a subpath for (cp1x, cp1y), then connects the last point in the subpath to the given point (x, y) using a cubic Bézier curve with control points (cp1x, cp1y) and (cp2x, cp2y), then adds the point (x, y) to the subpath.
clearRect Clears all pixels on the canvas in the given rectangle (x, y, w, h) to transparent black.
clip Specifies a new clipping region by calculating the intersection of the current clipping region and the area described by the intended path, using the non-zero winding number rule. The new clipping region replaces the current clipping region.
closePath Marks the last subpath as closed, creates a new subpath whose first point is the same as the previous subpath's first point, and then adds the new subpath to the path. If the object's path has no subpaths, this method does nothing.
createImageData Depending on how it is called, returns either an ImageData object with the given sw, sh dimensions or an ImageData object with the same dimensions as the imagedata argument. See Notes.
createLinearGradient Returns a linear CanvasGradient initialized with the specified line as represented by the start point (x0, y0) and end point (x1, y1) of the gradient.
createPattern Returns a CanvasPattern object that uses the given image and repeats in the direction(s) given by the repetition argument.
createRadialGradient Returns a radial CanvasGradient initialized with the two specified circles. This effectively creates a cone, touched by the two circles defined in the creation of the gradient, with the part of the cone before the start circle (0.0) using the color of the first offset, the part of the cone after the end circle (1.0) using the color of the last offset, and areas outside the cone (untouched by the gradient) transparent black.
drawCustomFocusRing Draw a focus ring of the appropriate style along the intended path, and sets result to false.
drawImage Draws the specified image onto the canvas. Can be called in three ways; see Notes.
drawSystemFocusRing Draws a focus ring of the appropriate style along the intended path, following platform conventions.
ellipse Draws the specified ellipse. If the object's path has any subpaths, this method adds a straight line from the last point in the subpath to the start point of the arc. Then, it adds the start and end points of the arc to the subpath, and connects them with an arc.
fill Fills all the subpaths of the intended path, using fillStyle, and using the non-zero winding number rule. Open subpaths must be implicitly closed when being filled (without affecting the actual subpaths).
fillRect Paints the specified rectangular area using the color (or style) defined by fillStyle.
fillText Renders the given text at the given (x, y) coordinates, ensuring that the text isn't wider than maxWidth (if specified), using the current font, textAlign, and textBaseline values.
getImageData Returns an ImageData object representing the underlying pixel data for the area of the canvas denoted by the rectangle whose corners are the four points (sx, sy), (sx+sw, sy), (sx+sw, sy+sh), (sx, sy+sh), in canvas coordinate space units.
getLineDash Gets the line dash properties for the stroke.
isPointInPath Returns true if the point given by the x and y coordinates passed to the method, when treated as coordinates in the canvas coordinate space unaffected by the current transformation, is inside the intended path as determined by the non-zero winding number rule; returns false otherwise. If either of the arguments is infinite or NaN, then the method returns false.
lineTo Connects the last point in the subpath to the given point (x, y) using a straight line, and then adds the point to the subpath.
moveTo Creates a new subpath with the specified point as its first (and only) point.
putImageData Writes data from ImageData structures back to the canvas. If any of the arguments are infinite or NaN, the method must throw a NotSupportedError exception. When the last four arguments are omitted, they are assumed to have the values 0, 0, the width member of the imagedata structure, and the height member of the imagedata structure, respectively.
quadraticCurveTo Ensures there is a subpath for (cpx, cpy), then connects the last point in the subpath to the given point (x, y) using a quadratic Bézier curve with control point (cpx, cpy), and then adds the given point (x, y) to the subpath.
rect Creates a new subpath containing just the four points (x, y), (x+w, y), (x+w, y+h), (x, y+h), with those four points connected by straight lines, then marks the subpath as closed. It then creates a new subpath with the point (x, y) as the only point in the subpath.
removeHitRegion Removes a previously-defined hit region.
restore Pops the top entry from the drawing state stack, and reset the drawing state it describes. If there is no saved state, the method does nothing.
rotate Addd the rotation transformation described by the argument to the transformation matrix. The angle argument represents a clockwise rotation angle expressed in radians.
save Saves the current state of the context. Use the restore() method to retrieve the saved state.
scale Adds the scaling transformation described by the arguments to the transformation matrix. The x argument represents the scale factor in the horizontal direction; the y argument represents the scale factor in the vertical direction. The factors are multiples.
scrollPathIntoView Scrolls the current path into view. See Notes.
setLineDash Sets the line dash properties for the stroke.
setTransform Resets the current transform to the identity matrix, and then invokes the transform(a, b, c, d, e, f) method with the same arguments.
stroke Traces the intended path, using the CanvasRenderingContext2D object for the line styles, and then fills the combined stroke area using the strokeStyle attribute.
strokeRect Takes the result of tracing the path, using the CanvasRenderingContext2D object's line styles, and fills it with the strokeStyle.
strokeText Renders the given text at the given (x, y) coordinates, ensuring that the text isn't wider than maxWidth (if specified), using the current font, textAlign, and textBaseline values.
transform Replaces the current transformation matrix with the result of multiplying the current transformation matrix with the matrix described by:

a c e
b d f
0 0 1

... further results

Events

API Name Summary
ended All tracks of the MediaStream object have ended; the MediaStream is said to be finished.
chargingchange Fired when the battery charging state is updated.
chargingtimechange Fired when the battery charging time is updated.
dischargingtimechange Fired when the battery discharging time is updated.
levelchange Fired when the battery level is updated.
regionfragmentchange Fires on the NamedFlow object when there is a change in how content flows through a region chain.
regionoversetchange Fires on the NamedFlow object when a change in how its content flows through a region chain renders any region empty or overset (overfilled), or that reverses that state.
addtrack This event is fired when a track is added to the MediaStream.
removetrack This event is fired when a track is removed from the MediaStream.
mute This event fires when the MediaStreamTrack object's source is temporarily unable to provide data.
overconstrained This event fires asynchronously for each affected track (when multiple tracks share the same source) after the user agent has evaluated the current constraints against a given sourceId and is not able to configure the source within the limitations established by the union of imposed constraints.
started This event fires when the MediaStreamTrack object has just transitioned from the "new" readyState to another state.
unmute This event fires when the MediaStreamTrack object's source is live again after having been temporarily unable to provide data.
ended This event is fired when a MediaStream is stopped.
change Fires when the Connection changes.
ended The MediaStreamTrack object's source will not provide data; this may be caused by the following:
  • the user has revoked permissions on the application
  • the source device has been disconnected
  • the remote peer has stopped sending data
  • the stop() method was invoked
muted The MediaStreamTrack object's source is temporarily unable to provide data.
unmuted The MediaStreamTrack object's source has resumed providing data.
addtrack A MediaStreamTrack has been added to the list.
removetrack A MediaStreamTrack has been removed from the list.
addstream
icecandidate
icechange
identityresult
negotiationneeded The browser anticipates a session negotiation is required.

It is triggered whenever addStream, removeStream or setIdentityProvider methods were called successfully and RTCPeerConnection signalingState is stable .

open
removestream A stream has been removed from the remoteStreams array.
statechange
abort When the request has been aborted. For instance, by invoking the abort() method.
error When the request has failed.
load When the request has successfully completed.
loadend When the request has completed (either in success or failure).
loadstart When the request starts.
progress While sending and loading data.
readystatechange Fires whenever the readyState of the request changes. Mostly used to determine whether the body of the response is available for handling.
timeout When the author specified timeout has passed before the request could complete.
error
load
progress
timeout
rowenter
rowexit
rowsdelete
rowsinserted
scroll
select
selectionchange
selectstart
start
stop
... further results

Needs Examples: This section should include examples.

Notes

This object may be used to determine the style properties currently set in a block or to set style properties explicitly within the block.

Members (MSDN)

The CSSStyleDeclaration object has these types of members:


Additional Methods

The CSSStyleDeclaration object has these methods.

Method Description
item Gets a property that has been explicitly set in the current declaration block.

 

Additional Properties

The CSSStyleDeclaration object has these properties.

Property Description
accelerator Sets or retrieves a string that indicates whether the object represents a keyboard shortcut.
alignmentBaseline Specifies which baseline of this element is to be aligned with the corresponding baseline of the parent.
animation Gets or sets one or more shorthand values that specify all animation properties (except animation-play-state) for a set of corresponding object properties identified in the CSS @keyframes at-rule specified by the animation-name property.
animationDelay Gets or sets one or more values that specify the offset within an animation cycle (the amount of time from the start of a cycle) before the animation is displayed for a set of corresponding object properties identified in the CSS @keyframes at-rule specified by the animation-name property.
animationDirection Gets or sets one or more values that specify the direction of play for an animation cycle.
animationDuration Gets or sets one or more values that specify the length of time to complete one cycle of the animation.
animationFillMode Gets or sets one or more values that specify whether the effects of an animation are visible before or after it plays.
animationIterationCount Gets or sets one or more values that specify the number of times an animation cycle is played.
animationName Gets or sets a value that identifies one or more animation names. An animation name identifies (or selects) a CSS @keyframes at-rule.
animationPlayState Gets or sets one or more values that specify whether an animation is playing or paused.
animationTimingFunction Gets or sets one or more values that specify the intermediate property values to be used during a single cycle of an animation on a set of corresponding object properties identified in the CSS @keyframes at-rule specified by the animationName property.
backfaceVisibility Gets or sets a value that specifies whether the back face (reverse side) of an object is visible.
background Sets or retrieves up to five separate background properties of the object.
backgroundAttachment Sets or retrieves how the background image is attached to the object within the document.
backgroundClip Sets or retrieves the background painting area.
backgroundColor Sets or retrieves the color behind the content of the object.
backgroundImage Sets or retrieves the background image of the object.
backgroundOrigin Sets or retrieves the background positioning area of a box or multiple boxes.
backgroundPosition Sets or retrieves the position of the background of the object.
backgroundPositionX Sets or retrieves the x-coordinate of the background-position property.
backgroundPositionY Sets or retrieves the y-coordinate of the background-position property.
backgroundRepeat Sets or retrieves how the background-image property of the object is tiled.
backgroundSize Sets or retrieves the size of the background images.
baselineShift Sets or retrieves a value that indicates how the dominant baseline should be repositioned relative to the dominant baseline of the parent text content element.
behavior Sets or retrieves the location of the Dynamic HTML (DHTML) behavior.
border Sets or retrieves the properties to draw around the object.
borderBottom Sets or retrieves the properties of the bottom border of the object.
borderBottomColor Sets or retrieves the color of the bottom border of the object.
borderBottomLeftRadius Sets or retrieves one or two values that define the radii of the quarter ellipse that defines the shape of the lower-left corner for the outer border edge of the current box.
borderBottomRightRadius Sets or retrieves one or two values that define the radii of the quarter ellipse that defines the shape of the lower-right corner for the outer border edge of the current box.
borderBottomStyle Sets or retrieves the style of the bottom border of the object.
borderBottomWidth Sets or retrieves the width of the bottom border of the object.
borderCollapse Sets or retrieves a value that indicates whether the row and cell borders of a table are joined in a single border or detached as in standard HTML.
borderColor Sets or retrieves the border color of the object.
borderLeft Sets or retrieves the properties of the left border of the object.
borderLeftColor Sets or retrieves the color of the left border of the object.
borderLeftStyle Sets or retrieves the style of the left border of the object.
borderLeftWidth Sets or retrieves the width of the left border of the object.
borderRadius Sets or retrieves one or more values that define the radii of a quarter ellipse that defines the shape of the corners for the outer border edge of the current box.
borderRight Sets or retrieves the properties of the right border of the object.
borderRightColor Sets or retrieves the color of the right border of the object.
borderRightStyle Sets or retrieves the style of the right border of the object.
borderRightWidth Sets or retrieves the width of the right border of the object.
borderSpacing Sets or retrieves

the distance between the borders of adjoining cells in a table.

borderStyle Sets or retrieves the style of the left, right, top, and bottom borders of the object.
borderTop Sets or retrieves the properties of the top border of the object.
borderTopColor Sets or retrieves the color of the top border of the object.
borderTopLeftRadius Sets or retrieves one or two values that define the radii of the quarter ellipse that defines the shape of the upper-left corner for the outer border edge of the current box.
borderTopRightRadius Sets or retrieves one or two values that define the radii of the quarter ellipse that defines the shape of the upper-right corner for the outer border edge of the current box.
borderTopStyle Sets or retrieves the style of the top border of the object.
borderTopWidth Sets or retrieves the width of the top border of the object.
borderWidth Sets or retrieves the width of the left, right, top, and bottom borders of the object.
bottom Sets or retrieves the bottom position of the object in relation to the bottom of the next positioned object in the document hierarchy.
boxShadow Sets or retrieves a comma-separated list of shadows that attaches one or more drop shadows to the current box.
boxSizing Sets or retrieves

the box model to use for object sizing.

breakAfter Gets or sets the column-break behavior that follows a content block in a multi-column element.
breakBefore Gets or sets the column-break behavior that precedes a content block in a multi-column element.
breakInside Gets or sets the column-break behavior that occurs within a content block in a multi-column element.
captionSide Sets or retrieves

where the caption of a table is located.

clear Sets or retrieves whether the object allows floating objects on its left side, right side, or both, so that the next text displays past the floating objects.
clip Sets or retrieves which part of a positioned object is visible.
clipBottom Gets the bottom coordinate of the object clipping region.
clipLeft Gets the left coordinate of the object clipping region.
clipPath Sets or retrieves a reference to the SVG graphical object that will be used as the clipping path.
clipRight Gets the right coordinate of the object clipping region.
clipRule Specifies the algorithm used to determine what parts of the canvas are affected by the fill operation.
clipTop Gets the top coordinate of the object clipping region.
color Sets or retrieves the color of the text of the object.
colorInterpolationFilters Specifies which color space to use for filter effects.
columnCount Gets or sets the optimal number of columns in a multi-column element.
columnFill Gets or sets a value that indicates how the column lengths in a multi-column element are affected by the content flow.
columnGap Gets or sets the width of the gap between columns in a multi-column element.
columnRule Gets or sets a shorthand value that specifies values for the columnRuleWidth, columnRuleStyle, and the columnRuleColor of a multi-column element.
columnRuleColor Gets or sets the color for all column rules in a multi-column element.
columnRuleStyle Gets or sets the style for all column rules in a multi-column element.
columnRuleWidth Gets or sets the width of all column rules in a multi-column element.
columns Gets or sets a shorthand value that specifies values for the column-width and the column-count of a multi-column element.
columnSpan Gets or sets the number of columns that a content block spans in a multi-column element.
columnWidth Gets or sets the optimal width of the columns in a multi-column element.
content Sets or retrieves

generated content to insert before or after an element.

counterIncrement Sets or retrieves

a list of counters to increment.

counterReset Sets or retrieves

a list of counters to create or reset to zero.

cssFloat Sets or retrieves a value that specifies whether a box should float to the left, right, or not at all.
cssText Sets or retrieves the persisted representation of the style rule.
cursor Sets or retrieves the type of cursor to display as the mouse pointer moves over the object.
direction Sets or retrieves the reading order of the object.
display Gets or sets a value that indicates whether and how the object is rendered.
dominantBaseline Sets or retrieves a value that determines or redetermines a scaled-baseline table.
emptyCells Determines whether to show or hide a cell without content.
enableBackground Allocate a shared background image all graphic elements within a container.
fill Sets or retrieves a value that indicates the color to paint the interior of the given graphical element.
fillOpacity Sets or retrieves a value that specifies the opacity of the painting operation that is used to paint the interior of the current object.
fillRule Sets or retrieves a value that indicates the algorithm that is to be used to determine what parts of the canvas are included inside the shape.
filter Sets or retrieves the filter or collection of filters that are applied to the object.
filter The filter property is generally used to apply a previously define filter to an applicable element.
floodColor Specifies the color used to flood the current filter-primitive subregion.
floodOpacity Specifies the opacity value to use with feFlood elements.
font Sets or retrieves a combination of separate font properties of the object. Alternatively, sets or retrieves one or more of six user-preference fonts.
fontFamily Sets or retrieves the name of the font used for text in the object.
fontFeatureSettings Gets or sets one or more values that specify glyph substitution and positioning in fonts that include OpenType layout features.
fontSize Sets or retrieves a value that indicates the font size used for text in the object.
fontSizeAdjust Sets or retrieves a value that specifies an aspect value for an element that will effectively preserve the x-height of the first choice font, whether it is substituted or not.
fontStretch Sets or retrieves a value that indicates a normal, condensed, or expanded face of a font family.
fontStyle Sets or retrieves the font style of the object as italic, normal, or oblique.
fontVariant Gets or sets whether the text of the object is in small capital letters.
fontWeight Gets of sets the weight of the font of the object.
glyphOrientationHorizontal Sets or retrieves a value that alters the orientation of a sequence of characters relative to an inline-progression-direction of horizontal.
glyphOrientationVertical Sets or retrieves a value that alters the orientation of a sequence of characters relative to an inline-progression-direction of vertical.
height Sets or retrieves the height of the object.
imeMode Sets or retrieves the state of an IME.
kerning Gets or sets a value that indicates whether Internet Explorer should adjust inter-glyph spacing based on kerning tables that are included in the relevant font (that is, enable auto-kerning) or instead disable auto-kerning and set inter-character spacing to a specific length (typically zero).

Gets or sets a value that indicates whether the user-agent should adjust inter-glyph spacing based on kerning tables that are included in the relevant font (that is, enable auto-kerning) or instead disable auto-kerning and set inter-character spacing to a specific length (typically zero).

layoutFlow Sets or retrieves the direction and flow of the content in the object.
layoutGrid Sets or retrieves the composite document grid properties that specify the layout of text characters.
layoutGridChar Sets or retrieves the size of the character grid used for rendering the text content of an element.
layoutGridLine Sets or retrieves the gridline value used for rendering the text content of an element.
layoutGridMode Gets or sets whether the text layout grid uses two dimensions.
layoutGridType Sets or retrieves the type of grid used for rendering the text content of an element.
left Sets or retrieves the position of the object relative to the left edge of the next positioned object in the document hierarchy.
length Retrieves the number of properties that are explicitly set on the parent object.
letterSpacing Sets or retrieves the amount of additional space between letters in the object.
lightingColor Defines the color of the light source for filter primitives feDiffuseLighting and feSpecularLighting.
lineBreak Deprecated. Gets or sets

line-breaking rules for text in selected languages such as Japanese, Chinese, and Korean.

lineHeight Sets or retrieves the distance between lines in the object.
listStyle Sets or retrieves up to three separate list-style properties of the object.
listStyleImage Sets or retrieves a value that indicates which image to use as a list-item marker for the object.
listStylePosition Sets or retrieves a variable that indicates how the list-item marker is drawn relative to the content of the object.
listStyleType Sets or retrieves the predefined type of the line-item marker for the object.
margin Sets or retrieves the width of the top, right, bottom, and left margins of the object.
marginBottom Sets or retrieves the height of the bottom margin of the object.
marginLeft Sets or retrieves the width of the left margin of the object.
marginRight Sets or retrieves the width of the right margin of the object.
marginTop Sets or retrieves the height of the top margin of the object.
marker Sets or retrieves a value that specifies the marker symbol that is used for all vertices on the given path element or basic shape.
markerEnd Sets or retrieves a value that defines the arrowhead or polymarker that is drawn at the final vertex of a given path element or basic shape.
markerMid Sets or retrieves a value that defines the arrowhead or polymarker that is drawn at every other vertex (that is, every vertex except the first and last) of a given path element or basic shape.
markerStart Sets or retrieves a value that defines the arrowhead or polymarker that is drawn at the first vertex of a given path element or basic shape.
mask Sets or retrieves a value that indicates a SVG mask.
maxHeight Sets or retrieves the maximum height for an element.
maxWidth Sets or retrieves the maximum width for an element.
minHeight Sets or retrieves the minimum height for an element.
minWidth Sets or retrieves the minimum width for an element.
msBlockProgression Sets or retrieves the block progression and layout orientation.
msBoxAlign Do not use. This property has been replaced by the -ms-flex-align property, and is no longer recognized by Internet Explorer. To ensure compatibility in the future, applications using this property should be updated accordingly.
msBoxDirection Do not use. This property has been replaced by the -ms-flex-direction property, and is no longer recognized by Internet Explorer. To ensure compatibility in the future, applications using this property should be updated accordingly.
msBoxFlex Do not use. This property has been replaced by the -ms-flex property, and is no longer recognized by Internet Explorer. To ensure compatibility in the future, applications using this property should be updated accordingly.
msBoxLineProgression Do not use. This property has been replaced by the -ms-flex-wrap property, and is no longer recognized by Internet Explorer. To ensure compatibility in the future, applications using this property should be updated accordingly.
msBoxLines Do not use. This property has been replaced by the -ms-flex-wrap property, and is no longer recognized by Internet Explorer. To ensure compatibility in the future, applications using this property should be updated accordingly.
msBoxOrdinalGroup Do not use. This property has been replaced by the -ms-flex-order property, and is no longer recognized by Internet Explorer. To ensure compatibility in the future, applications using this property should be updated accordingly.
msBoxOrient Do not use. This property has been replaced by the -ms-flex-direction property, and is no longer recognized by Internet Explorer. To ensure compatibility in the future, applications using this property should be updated accordingly.
msBoxPack Do not use. This property has been replaced by the -ms-flex-pack property, and is no longer recognized by Internet Explorer. To ensure compatibility in the future, applications using this property should be updated accordingly.
msContentZoomBoundary Do not use. This property has been replaced by the -ms-content-zoom-limit property, and is no longer recognized by Internet Explorer. To ensure compatibility in the future, applications using this property should be updated accordingly.
msContentZoomBoundaryMax Do not use. This property has been replaced by the -ms-content-zoom-limit-max property, and is no longer recognized by Internet Explorer. To ensure compatibility in the future, applications using this property should be updated accordingly.
msContentZoomBoundaryMin Do not use. This property has been replaced by the -ms-content-zoom-limit-min property, and is no longer recognized by Internet Explorer. To ensure compatibility in the future, applications using this property should be updated accordingly.
msContentZoomChaining Gets or sets a value that indicates the zoom behavior that occurs when a user hits the zoom limit during a manipulation.
msContentZooming Gets or sets a value that indicates whether zooming is enabled.
msContentZoomLimit Gets or sets a shorthand value that sets values for the -ms-content-zoom-limit-min and the -ms-content-zoom-limit-max properties.
msContentZoomLimitMax Gets or sets a value that specifies the maximum zoom factor.
msContentZoomLimitMin Gets or sets a value that specifies the minimum zoom factor.
msContentZoomSnap Gets or sets a shorthand value that sets values for the -ms-content-zoom-snap-type and the -ms-content-zoom-snap-points properties.
msContentZoomSnapPoints Gets or sets a value that defines where zoom snap-points are located.
msContentZoomSnapType Gets or sets a value that indicates how zooming is affected by defined snap-points.
msFlex Gets or sets values that specify the parameters of a flexible length: the positive and negative flexibility, and the preferred size.
msFlexAlign Gets or sets a value that specifies the alignment (perpendicular to the layout axis defined by the -ms-flex-direction property) of child elements of the object.
msFlexDirection Gets or sets a value that specifies the display order of all child elements of the object.
msFlexFlow Gets or sets one or two shorthand values that specify the flex direction and wrap properties together.
msFlexItemAlign Gets or sets a value that specifies the alignment (perpendicular to the layout axis defined by the -ms-flex-direction property) of child elements of the object.
msFlexLinePack Gets or sets a value that specifies how a flexbox's lines align within the flexbox when there is extra space along the axis that is perpendicular to the axis defined by the -ms-flex-direction property.
msFlexOrder Gets or sets a value that specifies the ordinal group that a flexbox element belongs to. This ordinal value identifies the display order for the group.
msFlexPack Gets or sets a value that specifies how excess space is distributed (along the axis defined by the -ms-flex-direction property) between child elements of the object.
msFlexWrap Gets or sets a value that specifies whether and in which direction child elements wrap onto multiple lines or columns based on the space available in the object.
msFlowFrom Gets or sets a value that identifies a region container in the document that accepts the content flow from the data source.
msFlowInto Gets or sets a value that identifies an iframe container in the document that serves as the region's data source.
msGridColumn Gets or sets a value that specifies in which column of the grid to place the object.
msGridColumnAlign Gets or sets a value that specifies the horizontal alignment of the object within the grid column.
msGridColumns Gets or sets one or more values that specify the width of each grid column within the object.
msGridColumnSpan Gets or sets a value that specifies the number of columns of the grid that the object spans.
msGridRow Gets or sets a value that specifies in which row of the grid to place the object.
msGridRowAlign Gets or sets a value that specifies the vertical alignment of the object within the grid row.
msGridRows Gets or sets one or more values that specify the height of each grid row within the object.
msGridRowSpan Gets or sets a value that specifies the number of rows of the grid that the object spans.
msHighContrastAdjust Gets or sets a value that indicates whether to override any CSS properties that would have been set in high contrast mode.
msHyphenateLimitChars Gets or sets one to three values that indicates the minimum number of characters in a hyphenated word.
msHyphenateLimitLines Gets or sets a value that indicates the maximum number of consecutive lines in an element that may be ended with a hyphenated word.
msHyphenateLimitZone Gets or sets a value that defines the width of the hyphenation zone.
msHyphens Gets or sets a value that indicates whether additional break opportunities for the current line are created by hyphenating individual words within the line.
msInterpolationMode Obsolete. Gets or sets the interpolation (resampling) method used to stretch images.
msOverflowStyle Gets or sets a value or values that specify the preferred scrolling methods for elements that overflow.
msProgressAppearance This property is obsolete. Use animation-name instead.
msScrollBoundary Do not use. This property has been replaced by the -ms-scroll-limit property, and is no longer recognized by Internet Explorer. To ensure compatibility in the future, applications using this property should be updated accordingly.
msScrollBoundaryBottom Do not use. This property has been replaced by the -ms-scroll-limit-y-max property, and is no longer recognized by Internet Explorer. To ensure compatibility in the future, applications using this property should be updated accordingly.
msScrollBoundaryLeft Do not use. This property has been replaced by the -ms-scroll-limit-x-min property, and is no longer recognized by Internet Explorer. To ensure compatibility in the future, applications using this property should be updated accordingly.
msScrollBoundaryRight Do not use. This property has been replaced by the -ms-scroll-limit-x-max property, and is no longer recognized by Internet Explorer. To ensure compatibility in the future, applications using this property should be updated accordingly.
msScrollBoundaryTop Do not use. This property has been replaced by the -ms-scroll-limit-y-min property, and is no longer recognized by Internet Explorer. To ensure compatibility in the future, applications using this property should be updated accordingly.
msScrollChaining Gets or sets a value that indicates the scrolling behavior that occurs when a user hits the scroll limit during a manipulation.
msScrollLimit Gets or sets a shorthand value that sets values for the -ms-scroll-limit-x-min, -ms-scroll-limit-y-min, -ms-scroll-limit-x-max, and -ms-scroll-limit-y-max properties.
msScrollLimitXMax Gets or sets a value that specifies the maximum value for the scrollLeft property.
msScrollLimitXMin Gets or sets a value that specifies the minimum value for the scrollLeft property.
msScrollLimitYMax Gets or sets a value that specifies the maximum value for the scrollTop property.
msScrollLimitYMin Gets or sets a value that specifies the minimum value for the scrollTop property.
msScrollRails Gets or sets a value that indicates whether scrolling will lock to the primary axis of motion.
msScrollSnapPointsX Gets or sets a value that defines where snap-points will be located along the x-axis.
msScrollSnapPointsY Gets or sets a value that defines where snap-points will be located along the y-axis.
msScrollSnapType Gets or sets a value that defines what type of snap-point should be used for the current element.
msScrollSnapX Gets or sets a shorthand value that sets values for the -ms-scroll-snap-type and -ms-scroll-snap-points-x properties.
msScrollSnapY Gets or sets a shorthand value that sets values for the -ms-scroll-snap-type and -ms-scroll-snap-points-y properties.
msScrollTranslation Gets or sets a value that specifies whether vertical-to-horizontal scroll wheel translation occurs on the specified element.
msTouchAction Gets or sets a value that indicates whether and how a given region can be manipulated by the user—for instance, by panning or zooming.
msTouchSelect Gets or sets a value that toggles the "gripper" visual elements that enable touch text selection.
msWrapFlow Gets or sets a value that specifies how exclusions impact inline content within block-level elements.
msWrapMargin Gets or sets a value that is used to offset the inner wrap shape from other shapes.
msWrapThrough Gets or sets a value that specifies how content should wrap around an exclusion element.
opacity Gets or sets a value that specifies object or group opacity in CSS or SVG.
orphans Sets or retrieves

the minimum number of lines of a paragraph that must appear at the bottom of a page.

outlineStyle Sets or retrieves

the style of the outline frame.

overflow Sets or retrieves a value indicating how to manage the content of the object when the content exceeds the height or width of the object.
overflowX Sets or retrieves how to manage the content of the object when the content exceeds the width of the object.
overflowY Sets or retrieves how to manage the content of the object when the content exceeds the height of the object.
padding Sets or retrieves the amount of space to insert between the object and its margin or, if there is a border, between the object and its border.
paddingBottom Sets or retrieves the amount of space to insert between the bottom border of the object and the content.
paddingLeft Sets or retrieves the amount of space to insert between the left border of the object and the content.
paddingRight Sets or retrieves the amount of space to insert between the right border of the object and the content.
paddingTop Sets or retrieves the amount of space to insert between the top border of the object and the content.
pageBreakAfter Sets or retrieves a value indicating whether a page break occurs after the object.
pageBreakBefore Sets or retrieves a string indicating whether a page break occurs before the object.
pageBreakInside Sets or retrieves

a string indicating whether a page break is allowed to occur inside the object.

parentRule Retrieves the containing rule, if the current rule is contained inside another rule.
perspective Gets or sets a value that represents the perspective from which all child elements of the object are viewed.
perspectiveOrigin Gets or sets one or two values that represent the origin (the vanishing point for the 3-D space) of an object with an perspective property declaration.
pointerEvents Sets or retrieves a value that specifies under what circumstances a given graphics element can be the target element for a pointer event in SVG.
position Sets or retrieves the type of positioning used for the object.
quotes Sets or retrieves the pairs of strings to be used as quotes in generated content.
right Sets or retrieves the position of the object relative to the right edge of the next positioned object in the document hierarchy.
rubyAlign Gets or sets a value that indicates how to align the ruby text content.
rubyOverhang Gets or sets a value that indicates whether, and on which side, ruby text is allowed to partially overhang any adjacent text in addition to its own base, when the ruby text is wider than the ruby base
rubyPosition Gets or sets a value that controls the position of the ruby text with respect to its base.
scrollbar3dLightColor Sets or retrieves the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.
scrollbarArrowColor Sets or retrieves the color of the arrow elements of a scroll arrow.
scrollbarDarkShadowColor Sets or retrieves the color of the gutter of a scroll bar.
scrollbarFaceColor Sets or retrieves the color of the scroll box and scroll arrows of a scroll bar.
scrollbarHighlightColor Sets or retrieves the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.
scrollbarShadowColor Sets or retrieves the color of the bottom and right edges of the scroll box and scroll arrows of a scroll bar.
scrollbarTrackColor Sets or retrieves the color of the track element of a scroll bar.
stopColor Sets or retrieves a value that indicates what color to use at the current gradient stop.
stopOpacity Sets or retrieves a value that defines the opacity of the current gradient stop.
stroke Sets or retrieves a value that indicates the color to paint along the outline of a given graphical element.
strokeDasharray Sets or retrieves one or more values that indicate the pattern of dashes and gaps used to stroke paths.
strokeDashoffset Sets or retrieves a value that specifies the distance into the dash pattern to start the dash.
strokeLinecap Sets or retrieves a value that specifies the shape to be used at the end of open subpaths when they are stroked.
strokeLinejoin Sets or retrieves a value that specifies the shape to be used at the corners of paths or basic shapes when they are stroked.
strokeMiterlimit Sets or retrieves a value that indicates the limit on the ratio of the length of miter joins (as specified in the strokeLinejoin property).
strokeOpacity Sets or retrieves a value that specifies the opacity of the painting operation that is used to stroke the current object.
strokeWidth Sets or retrieves a value that specifies the width of the stroke on the current object.
styleFloat Sets or retrieves on which side of the object the text will flow.
tableLayout Sets or retrieves a string that indicates whether the table layout is fixed.
textAlign Sets or retrieves whether the text in the object is left-aligned, right-aligned, centered, or justified.
textAlignLast Gets or sets a value that indicates how to align the last line or only line of text in the specified object.
textAnchor Aligns a string of text relative to the specified point.
textAutospace Sets or retrieves the autospacing and narrow space width adjustment of text.
textDecoration Sets or retrieves a value that indicates whether the text in the object has blink, line-through, overline, or underline decorations.
textIndent Sets or retrieves the indentation of the first line of text in the object.
textJustify Sets or retrieves the type of alignment used to justify text in the object.
textKashidaSpace Sets or retrieves the ratio of kashida expansion to white space expansion when justifying lines of text in the object.
textOverflow Sets or retrieves a value that indicates whether to render ellipses (...) to indicate text overflow.
text-shadow Sets or retrieves a comma-separated list of shadows that attaches one or more drop shadows to the specified text.
textTransform Sets or retrieves the rendering of the text in the object.
textUnderlinePosition Sets or retrieves the position of the underline decoration that is set through the text-decoration property of the object.
top Sets or retrieves the position of the object relative to the top of the next positioned object in the document hierarchy.
transform Gets or sets a list of one or more transform functions that specify how to translate, rotate, or scale an element in 2-D or 3-D space.
transformOrigin Gets or sets one or two values that establish the origin of transformation for an element.
transformStyle Gets or sets a value that specifies how child elements of the object are rendered in 3-D space.
transition Gets or sets one or more shorthand values that specify the transition properties for a set of corresponding object properties identified in the transition-property property.
transitionDelay Gets or sets one or more values that specify the offset within a transition (the amount of time from the start of a transition) before the transition is displayed for a set of corresponding object properties identified in the transition-property property.
transitionDuration Gets or sets one or more values that specify the durations of transitions on a set of corresponding object properties identified in the transition-property property.
transitionProperty Gets or sets a value that identifies the CSS property name or names to which the transition effect (defined by transition-duration, transition-timing-function, and transition-delay) is applied when a new property value is specified.
transitionTimingFunction Gets or sets one or more values that specify the intermediate property values to be used during a transition on a set of corresponding object properties identified in the transition-property property.
unicodeBidi Sets or retrieves the level of embedding with respect to the bidirectional algorithm.
verticalAlign Sets or retrieves the vertical alignment of the object.
visibility Sets or retrieves whether the content of the object is displayed.
whiteSpace Sets or retrieves a value that indicates whether lines are automatically broken inside the object.
widows Sets or retrieves

the minimum number of lines of a paragraph that must appear at the top of a document.

width Sets or retrieves the width of the object.
wordBreak Sets or retrieves

line-breaking behavior within words, particularly where multiple languages appear in the object.

wordSpacing Sets or retrieves the amount of additional space between words in the object.
wordWrap Sets or retrieves whether to break words when the content exceeds the boundaries of its container.
writingMode Sets or retrieves the direction and flow of the content in the object.
zIndex Sets or retrieves the stacking order of positioned objects.
zoom Sets or retrieves the magnification scale of the object.

Compatibility

Desktop

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support ? ? ? ? ?

Mobile

Feature Android BlackBerry Chrome for mobile Firefox Mobile (Gecko) IE Mobile Opera Mobile Opera Mini Safari Mobile
Basic support ? ? ? ? ? ? ? ?

See also

Related articles

CSSOM































  • CSSStyleDeclaration




















... further results


Related pages (MSDN)

  • IHTMLCSSStyleDeclaration

Attribution

This article contains content originally from external sources.

Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]