DOM::CSS2Properties Class Reference
TheCSS2Properties
interface represents a convenience mechanism for retrieving and setting properties within a CSSStyleDeclaration
.
More...
#include <css_extensions.h>
Detailed Description
TheCSS2Properties
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 compliant implementation 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.
Definition at line 1049 of file css_extensions.h.
Member Function Documentation
|
See the azimuth property definition in CSS2. Definition at line 653 of file css_extensions.cpp. |
|
see azimuth Definition at line 659 of file css_extensions.cpp. |
|
See the background property definition in CSS2. Definition at line 664 of file css_extensions.cpp. |
|
see background Definition at line 670 of file css_extensions.cpp. |
|
See the background-attachment property definition in CSS2. Definition at line 675 of file css_extensions.cpp. |
|
see backgroundAttachment Definition at line 681 of file css_extensions.cpp. |
|
See the background-color property definition in CSS2. Definition at line 686 of file css_extensions.cpp. |
|
see backgroundColor Definition at line 692 of file css_extensions.cpp. |
|
See the background-image property definition in CSS2. Definition at line 697 of file css_extensions.cpp. |
|
see backgroundImage Definition at line 703 of file css_extensions.cpp. |
|
See the background-position property definition in CSS2. Definition at line 708 of file css_extensions.cpp. |
|
see backgroundPosition Definition at line 714 of file css_extensions.cpp. |
|
See the background-repeat property definition in CSS2. Definition at line 719 of file css_extensions.cpp. |
|
see backgroundRepeat Definition at line 725 of file css_extensions.cpp. |
|
See the border property definition in CSS2. Definition at line 730 of file css_extensions.cpp. |
|
see border Definition at line 736 of file css_extensions.cpp. |
|
See the border-collapse property definition in CSS2. Definition at line 741 of file css_extensions.cpp. |
|
see borderCollapse Definition at line 747 of file css_extensions.cpp. |
|
See the border-color property definition in CSS2. Definition at line 752 of file css_extensions.cpp. |
|
see borderColor Definition at line 758 of file css_extensions.cpp. |
|
See the border-spacing property definition in CSS2. Definition at line 763 of file css_extensions.cpp. |
|
see borderSpacing Definition at line 769 of file css_extensions.cpp. |
|
See the border-style property definition in CSS2. Definition at line 774 of file css_extensions.cpp. |
|
see borderStyle Definition at line 780 of file css_extensions.cpp. |
|
See the border-top property definition in CSS2. Definition at line 785 of file css_extensions.cpp. |
|
see borderTop Definition at line 791 of file css_extensions.cpp. |
|
See the border-right property definition in CSS2. Definition at line 796 of file css_extensions.cpp. |
|
see borderRight Definition at line 802 of file css_extensions.cpp. |
|
See the border-bottom property definition in CSS2. Definition at line 807 of file css_extensions.cpp. |
|
see borderBottom Definition at line 813 of file css_extensions.cpp. |
|
See the border-left property definition in CSS2. Definition at line 818 of file css_extensions.cpp. |
|
see borderLeft Definition at line 824 of file css_extensions.cpp. |
|
See the border-top-color property definition in CSS2. Definition at line 829 of file css_extensions.cpp. |
|
see borderTopColor Definition at line 835 of file css_extensions.cpp. |
|
See the border-right-color property definition in CSS2. Definition at line 840 of file css_extensions.cpp. |
|
see borderRightColor Definition at line 846 of file css_extensions.cpp. |
|
See the border-bottom-color property definition in CSS2. Definition at line 851 of file css_extensions.cpp. |
|
see borderBottomColor Definition at line 857 of file css_extensions.cpp. |
|
See the border-left-color property definition in CSS2. Definition at line 862 of file css_extensions.cpp. |
|
see borderLeftColor Definition at line 868 of file css_extensions.cpp. |
|
See the border-top-style property definition in CSS2. Definition at line 873 of file css_extensions.cpp. |
|
see borderTopStyle Definition at line 879 of file css_extensions.cpp. |
|
See the border-right-style property definition in CSS2. Definition at line 884 of file css_extensions.cpp. |
|
see borderRightStyle Definition at line 890 of file css_extensions.cpp. |
|
See the border-bottom-style property definition in CSS2. Definition at line 895 of file css_extensions.cpp. |
|
see borderBottomStyle Definition at line 901 of file css_extensions.cpp. |
|
See the border-left-style property definition in CSS2. Definition at line 906 of file css_extensions.cpp. |
|
see borderLeftStyle Definition at line 912 of file css_extensions.cpp. |
|
See the border-top-width property definition in CSS2. Definition at line 917 of file css_extensions.cpp. |
|
see borderTopWidth Definition at line 923 of file css_extensions.cpp. |
|
See the border-right-width property definition in CSS2. Definition at line 928 of file css_extensions.cpp. |
|
see borderRightWidth Definition at line 934 of file css_extensions.cpp. |
|
See the border-bottom-width property definition in CSS2. Definition at line 939 of file css_extensions.cpp. |
|
see borderBottomWidth Definition at line 945 of file css_extensions.cpp. |
|
See the border-left-width property definition in CSS2. Definition at line 950 of file css_extensions.cpp. |
|
see borderLeftWidth Definition at line 956 of file css_extensions.cpp. |
|
See the border-width property definition in CSS2. Definition at line 961 of file css_extensions.cpp. |
|
see borderWidth Definition at line 967 of file css_extensions.cpp. |
|
See the bottom property definition in CSS2. Definition at line 972 of file css_extensions.cpp. |
|
see bottom Definition at line 978 of file css_extensions.cpp. |
|
See the caption-side property definition in CSS2. Definition at line 983 of file css_extensions.cpp. |
|
see captionSide Definition at line 989 of file css_extensions.cpp. |
|
See the clear property definition in CSS2. Definition at line 994 of file css_extensions.cpp. |
|
see clear Definition at line 1000 of file css_extensions.cpp. |
|
See the clip property definition in CSS2. Definition at line 1005 of file css_extensions.cpp. |
|
see clip Definition at line 1011 of file css_extensions.cpp. |
|
See the color property definition in CSS2. Definition at line 1016 of file css_extensions.cpp. |
|
see color Definition at line 1022 of file css_extensions.cpp. |
|
See the content property definition in CSS2. Definition at line 1027 of file css_extensions.cpp. |
|
see content Definition at line 1033 of file css_extensions.cpp. |
|
See the counter-increment property definition in CSS2. Definition at line 1038 of file css_extensions.cpp. |
|
see counterIncrement Definition at line 1044 of file css_extensions.cpp. |
|
See the counter-reset property definition in CSS2. Definition at line 1049 of file css_extensions.cpp. |
|
see counterReset Definition at line 1055 of file css_extensions.cpp. |
|
See the cue property definition in CSS2. Definition at line 1060 of file css_extensions.cpp. |
|
see cue Definition at line 1066 of file css_extensions.cpp. |
|
See the cue-after property definition in CSS2. Definition at line 1071 of file css_extensions.cpp. |
|
see cueAfter Definition at line 1077 of file css_extensions.cpp. |
|
See the cue-before property definition in CSS2. Definition at line 1082 of file css_extensions.cpp. |
|
see cueBefore Definition at line 1088 of file css_extensions.cpp. |
|
See the cursor property definition in CSS2. Definition at line 1093 of file css_extensions.cpp. |
|
see cursor Definition at line 1099 of file css_extensions.cpp. |
|
See the direction property definition in CSS2. Definition at line 1104 of file css_extensions.cpp. |
|
see direction Definition at line 1110 of file css_extensions.cpp. |
|
See the display property definition in CSS2. Definition at line 1115 of file css_extensions.cpp. |
|
see display Definition at line 1121 of file css_extensions.cpp. |
|
See the elevation property definition in CSS2. Definition at line 1126 of file css_extensions.cpp. |
|
see elevation Definition at line 1132 of file css_extensions.cpp. |
|
See the empty-cells property definition in CSS2. Definition at line 1137 of file css_extensions.cpp. |
|
see emptyCells Definition at line 1143 of file css_extensions.cpp. |
|
See the float property definition in CSS2. Definition at line 1148 of file css_extensions.cpp. |
|
see cssFloat Definition at line 1154 of file css_extensions.cpp. |
|
See the font property definition in CSS2. Definition at line 1159 of file css_extensions.cpp. |
|
see font Definition at line 1165 of file css_extensions.cpp. |
|
See the font-family property definition in CSS2. Definition at line 1170 of file css_extensions.cpp. |
|
see fontFamily Definition at line 1176 of file css_extensions.cpp. |
|
See the font-size property definition in CSS2. Definition at line 1181 of file css_extensions.cpp. |
|
see fontSize Definition at line 1187 of file css_extensions.cpp. |
|
See the font-size-adjust property definition in CSS2. Definition at line 1192 of file css_extensions.cpp. |
|
see fontSizeAdjust Definition at line 1198 of file css_extensions.cpp. |
|
See the font-stretch property definition in CSS2. Definition at line 1203 of file css_extensions.cpp. |
|
see fontStretch Definition at line 1209 of file css_extensions.cpp. |
|
See the font-style property definition in CSS2. Definition at line 1214 of file css_extensions.cpp. |
|
see fontStyle Definition at line 1220 of file css_extensions.cpp. |
|
See the font-variant property definition in CSS2. Definition at line 1225 of file css_extensions.cpp. |
|
see fontVariant Definition at line 1231 of file css_extensions.cpp. |
|
See the font-weight property definition in CSS2. Definition at line 1236 of file css_extensions.cpp. |
|
see fontWeight Definition at line 1242 of file css_extensions.cpp. |
|
See the height property definition in CSS2. Definition at line 1247 of file css_extensions.cpp. |
|
see height Definition at line 1253 of file css_extensions.cpp. |
|
See the left property definition in CSS2. Definition at line 1258 of file css_extensions.cpp. |
|
see left Definition at line 1264 of file css_extensions.cpp. |
|
See the letter-spacing property definition in CSS2. Definition at line 1269 of file css_extensions.cpp. |
|
see letterSpacing Definition at line 1275 of file css_extensions.cpp. |
|
See the line-height property definition in CSS2. Definition at line 1280 of file css_extensions.cpp. |
|
see lineHeight Definition at line 1286 of file css_extensions.cpp. |
|
See the list-style property definition in CSS2. Definition at line 1291 of file css_extensions.cpp. |
|
see listStyle Definition at line 1297 of file css_extensions.cpp. |
|
See the list-style-image property definition in CSS2. Definition at line 1302 of file css_extensions.cpp. |
|
see listStyleImage Definition at line 1308 of file css_extensions.cpp. |
|
See the list-style-position property definition in CSS2. Definition at line 1313 of file css_extensions.cpp. |
|
see listStylePosition Definition at line 1319 of file css_extensions.cpp. |
|
See the list-style-type property definition in CSS2. Definition at line 1324 of file css_extensions.cpp. |
|
see listStyleType Definition at line 1330 of file css_extensions.cpp. |
|
See the margin property definition in CSS2. Definition at line 1335 of file css_extensions.cpp. |
|
see margin Definition at line 1341 of file css_extensions.cpp. |
|
See the margin-top property definition in CSS2. Definition at line 1346 of file css_extensions.cpp. |
|
see marginTop Definition at line 1352 of file css_extensions.cpp. |
|
See the margin-right property definition in CSS2. Definition at line 1357 of file css_extensions.cpp. |
|
see marginRight Definition at line 1363 of file css_extensions.cpp. |
|
See the margin-bottom property definition in CSS2. Definition at line 1368 of file css_extensions.cpp. |
|
see marginBottom Definition at line 1374 of file css_extensions.cpp. |
|
See the margin-left property definition in CSS2. Definition at line 1379 of file css_extensions.cpp. |
|
see marginLeft Definition at line 1385 of file css_extensions.cpp. |
|
See the marker-offset property definition in CSS2. Definition at line 1390 of file css_extensions.cpp. |
|
see markerOffset Definition at line 1396 of file css_extensions.cpp. |
|
See the marks property definition in CSS2. Definition at line 1401 of file css_extensions.cpp. |
|
see marks Definition at line 1407 of file css_extensions.cpp. |
|
See the max-height property definition in CSS2. Definition at line 1412 of file css_extensions.cpp. |
|
see maxHeight Definition at line 1418 of file css_extensions.cpp. |
|
See the max-width property definition in CSS2. Definition at line 1423 of file css_extensions.cpp. |
|
see maxWidth Definition at line 1429 of file css_extensions.cpp. |
|
See the min-height property definition in CSS2. Definition at line 1434 of file css_extensions.cpp. |
|
see minHeight Definition at line 1440 of file css_extensions.cpp. |
|
See the min-width property definition in CSS2. Definition at line 1445 of file css_extensions.cpp. |
|
see minWidth Definition at line 1451 of file css_extensions.cpp. |
|
See the orphans property definition in CSS2. Definition at line 1456 of file css_extensions.cpp. |
|
see orphans Definition at line 1462 of file css_extensions.cpp. |
|
See the outline property definition in CSS2. Definition at line 1467 of file css_extensions.cpp. |
|
see outline Definition at line 1473 of file css_extensions.cpp. |
|
See the outline-color property definition in CSS2. Definition at line 1478 of file css_extensions.cpp. |
|
see outlineColor Definition at line 1484 of file css_extensions.cpp. |
|
See the outline-style property definition in CSS2. Definition at line 1489 of file css_extensions.cpp. |
|
see outlineStyle Definition at line 1495 of file css_extensions.cpp. |
|
See the outline-width property definition in CSS2. Definition at line 1500 of file css_extensions.cpp. |
|
see outlineWidth Definition at line 1506 of file css_extensions.cpp. |
|
See the overflow property definition in CSS2. Definition at line 1511 of file css_extensions.cpp. |
|
see overflow Definition at line 1517 of file css_extensions.cpp. |
|
See the padding property definition in CSS2. Definition at line 1522 of file css_extensions.cpp. |
|
see padding Definition at line 1528 of file css_extensions.cpp. |
|
See the padding-top property definition in CSS2. Definition at line 1533 of file css_extensions.cpp. |
|
see paddingTop Definition at line 1539 of file css_extensions.cpp. |
|
See the padding-right property definition in CSS2. Definition at line 1544 of file css_extensions.cpp. |
|
see paddingRight Definition at line 1550 of file css_extensions.cpp. |
|
See the padding-bottom property definition in CSS2. Definition at line 1555 of file css_extensions.cpp. |
|
see paddingBottom Definition at line 1561 of file css_extensions.cpp. |
|
See the padding-left property definition in CSS2. Definition at line 1566 of file css_extensions.cpp. |
|
see paddingLeft Definition at line 1572 of file css_extensions.cpp. |
|
See the page property definition in CSS2. Definition at line 1577 of file css_extensions.cpp. |
|
see page Definition at line 1583 of file css_extensions.cpp. |
|
See the page-break-after property definition in CSS2. Definition at line 1588 of file css_extensions.cpp. |
|
see pageBreakAfter Definition at line 1594 of file css_extensions.cpp. |
|
See the page-break-before property definition in CSS2. Definition at line 1599 of file css_extensions.cpp. |
|
see pageBreakBefore Definition at line 1605 of file css_extensions.cpp. |
|
See the page-break-inside property definition in CSS2. Definition at line 1610 of file css_extensions.cpp. |
|
see pageBreakInside Definition at line 1616 of file css_extensions.cpp. |
|
See the pause property definition in CSS2. Definition at line 1621 of file css_extensions.cpp. |
|
see pause Definition at line 1627 of file css_extensions.cpp. |
|
See the pause-after property definition in CSS2. Definition at line 1632 of file css_extensions.cpp. |
|
see pauseAfter Definition at line 1638 of file css_extensions.cpp. |
|
See the pause-before property definition in CSS2. Definition at line 1643 of file css_extensions.cpp. |
|
see pauseBefore Definition at line 1649 of file css_extensions.cpp. |
|
See the pitch property definition in CSS2. Definition at line 1654 of file css_extensions.cpp. |
|
see pitch Definition at line 1660 of file css_extensions.cpp. |
|
See the pitch-range property definition in CSS2. Definition at line 1665 of file css_extensions.cpp. |
|
see pitchRange Definition at line 1671 of file css_extensions.cpp. |
|
See the play-during property definition in CSS2. Definition at line 1676 of file css_extensions.cpp. |
|
see playDuring Definition at line 1682 of file css_extensions.cpp. |
|
See the position property definition in CSS2. Definition at line 1687 of file css_extensions.cpp. |
|
see position Definition at line 1693 of file css_extensions.cpp. |
|
See the quotes property definition in CSS2. Definition at line 1698 of file css_extensions.cpp. |
|
see quotes Definition at line 1704 of file css_extensions.cpp. |
|
See the richness property definition in CSS2. Definition at line 1709 of file css_extensions.cpp. |
|
see richness Definition at line 1715 of file css_extensions.cpp. |
|
See the right property definition in CSS2. Definition at line 1720 of file css_extensions.cpp. |
|
see right Definition at line 1726 of file css_extensions.cpp. |
|
See the size property definition in CSS2. Definition at line 1731 of file css_extensions.cpp. |
|
see size Definition at line 1737 of file css_extensions.cpp. |
|
See the speak property definition in CSS2. Definition at line 1742 of file css_extensions.cpp. |
|
see speak Definition at line 1748 of file css_extensions.cpp. |
|
See the speak-header property definition in CSS2. Definition at line 1753 of file css_extensions.cpp. |
|
see speakHeader Definition at line 1759 of file css_extensions.cpp. |
|
See the speak-numeral property definition in CSS2. Definition at line 1764 of file css_extensions.cpp. |
|
see speakNumeral Definition at line 1770 of file css_extensions.cpp. |
|
See the speak-punctuation property definition in CSS2. Definition at line 1775 of file css_extensions.cpp. |
|
see speakPunctuation Definition at line 1781 of file css_extensions.cpp. |
|
See the speech-rate property definition in CSS2. Definition at line 1786 of file css_extensions.cpp. |
|
see speechRate Definition at line 1792 of file css_extensions.cpp. |
|
See the stress property definition in CSS2. Definition at line 1797 of file css_extensions.cpp. |
|
see stress Definition at line 1803 of file css_extensions.cpp. |
|
See the table-layout property definition in CSS2. Definition at line 1808 of file css_extensions.cpp. |
|
see tableLayout Definition at line 1814 of file css_extensions.cpp. |
|
See the text-align property definition in CSS2. Definition at line 1819 of file css_extensions.cpp. |
|
see textAlign Definition at line 1825 of file css_extensions.cpp. |
|
See the text-decoration property definition in CSS2. Definition at line 1830 of file css_extensions.cpp. |
|
see textDecoration Definition at line 1836 of file css_extensions.cpp. |
|
See the text-indent property definition in CSS2. Definition at line 1841 of file css_extensions.cpp. |
|
see textIndent Definition at line 1847 of file css_extensions.cpp. |
|
See the text-shadow property definition in CSS2. Definition at line 1852 of file css_extensions.cpp. |
|
see textShadow Definition at line 1858 of file css_extensions.cpp. |
|
See the text-transform property definition in CSS2. Definition at line 1863 of file css_extensions.cpp. |
|
see textTransform Definition at line 1869 of file css_extensions.cpp. |
|
See the top property definition in CSS2. Definition at line 1874 of file css_extensions.cpp. |
|
see top Definition at line 1880 of file css_extensions.cpp. |
|
See the unicode-bidi property definition in CSS2. Definition at line 1885 of file css_extensions.cpp. |
|
see unicodeBidi Definition at line 1891 of file css_extensions.cpp. |
|
See the vertical-align property definition in CSS2. Definition at line 1896 of file css_extensions.cpp. |
|
see verticalAlign Definition at line 1902 of file css_extensions.cpp. |
|
See the visibility property definition in CSS2. Definition at line 1907 of file css_extensions.cpp. |
|
see visibility Definition at line 1913 of file css_extensions.cpp. |
|
See the voice-family property definition in CSS2. Definition at line 1918 of file css_extensions.cpp. |
|
see voiceFamily Definition at line 1924 of file css_extensions.cpp. |
|
See the volume property definition in CSS2. Definition at line 1929 of file css_extensions.cpp. |
|
see volume Definition at line 1935 of file css_extensions.cpp. |
|
See the white-space property definition in CSS2. Definition at line 1940 of file css_extensions.cpp. |
|
see whiteSpace Definition at line 1946 of file css_extensions.cpp. |
|
See the widows property definition in CSS2. Definition at line 1951 of file css_extensions.cpp. |
|
see widows Definition at line 1957 of file css_extensions.cpp. |
|
See the width property definition in CSS2. Definition at line 1962 of file css_extensions.cpp. |
|
see width Definition at line 1968 of file css_extensions.cpp. |
|
See the word-spacing property definition in CSS2. Definition at line 1973 of file css_extensions.cpp. |
|
see wordSpacing Definition at line 1979 of file css_extensions.cpp. |
|
See the z-index property definition in CSS2. Definition at line 1984 of file css_extensions.cpp. |
|
see zIndex Definition at line 1990 of file css_extensions.cpp. |
The documentation for this class was generated from the following files: