New style interfaces

git-svn-id: svn://10.0.0.236/trunk@10702 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
vidur%netscape.com
1998-09-22 21:19:11 +00:00
parent dfdea96b6d
commit 20d458c395
10 changed files with 190 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
interface StyleSheet {
attribute boolean disabled;
readonly attribute boolean readOnly;
};

View File

@@ -0,0 +1,6 @@
interface StyleSheetCollection {
readonly attribute unsigned long length;
StyleSheet item(in unsigned long index);
};

View File

@@ -0,0 +1,4 @@
interface FontFaceRuleSimple : CSSStyleRule {
attribute CSSStyleDeclaration style;
};

View File

@@ -0,0 +1,8 @@
interface CSSMediaRule : CSSStyleRule {
attribute wstring mediaTypes;
readonly attribute CSSStyleRuleCollection rules;
unsigned long addRule(in wstring selector, in wstring declaration, in unsigned long index);
void removeRule(in unsigned long index);
};

View File

@@ -0,0 +1,5 @@
interface CSSPageRule : CSSStyleRule {
attribute wstring selectorText;
attribute CSSStyleDeclaration style;
};

View File

@@ -0,0 +1,132 @@
interface CSSStyleDeclaration {
wstring getProperty(in wstring propertyName);
void setProperty(in wstring propertyName, in wstring value);
attribute wstring azimuth;
attribute wstring background;
attribute wstring backgroundAttachment;
attribute wstring backgroundColor;
attribute wstring backgroundImage;
attribute wstring backgroundPosition;
attribute wstring backgroundRepeat;
attribute wstring border;
attribute wstring borderCollapse;
attribute wstring borderColor;
attribute wstring borderSpacing;
attribute wstring borderStyle;
attribute wstring borderTop;
attribute wstring borderRight;
attribute wstring borderBottom;
attribute wstring borderLeft;
attribute wstring borderTopColor;
attribute wstring borderRightColor;
attribute wstring borderBottomColor;
attribute wstring borderLeftColor;
attribute wstring borderTopStyle;
attribute wstring borderRightStyle;
attribute wstring borderBottomStyle;
attribute wstring borderLeftStyle;
attribute wstring borderTopWidth;
attribute wstring borderRightWidth;
attribute wstring borderBottomWidth;
attribute wstring borderLeftWidth;
attribute wstring borderWidth;
attribute wstring bottom;
attribute wstring captionSide;
attribute wstring clear;
attribute wstring clip;
attribute wstring color;
attribute wstring content;
attribute wstring counterIncrement;
attribute wstring counterReset;
attribute wstring cue;
attribute wstring cueAfter;
attribute wstring cueBefore;
attribute wstring cursor;
attribute wstring direction;
attribute wstring display;
attribute wstring elevation;
attribute wstring emptyCells;
attribute wstring float;
attribute wstring font;
attribute wstring fontFamily;
attribute wstring fontSize;
attribute wstring fontSizeAdjust;
attribute wstring fontStretch;
attribute wstring fontStyle;
attribute wstring fontVariant;
attribute wstring fontWeight;
attribute wstring height;
attribute wstring left;
attribute wstring letterSpacing;
attribute wstring lineHeight;
attribute wstring listStyle;
attribute wstring listStyleImage;
attribute wstring listStylePosition;
attribute wstring listStyleType;
attribute wstring margin;
attribute wstring marginTop;
attribute wstring marginRight;
attribute wstring marginBottom;
attribute wstring marginLeft;
attribute wstring markerOffset;
attribute wstring marks;
attribute wstring maxHeight;
attribute wstring maxWidth;
attribute wstring minHeight;
attribute wstring minWidth;
attribute wstring orphans;
attribute wstring outline;
attribute wstring outlineColor;
attribute wstring outlineStyle;
attribute wstring outlineWidth;
attribute wstring overflow;
attribute wstring padding;
attribute wstring paddingTop;
attribute wstring paddingRight;
attribute wstring paddingBottom;
attribute wstring paddingLeft;
attribute wstring page;
attribute wstring pageBreakAfter;
attribute wstring pageBreakBefore;
attribute wstring pageBreakInside;
attribute wstring pause;
attribute wstring pauseAfter;
attribute wstring pauseBefore;
attribute wstring pitch;
attribute wstring pitchRange;
attribute wstring playDuring;
attribute wstring position;
attribute wstring quotes;
attribute wstring richness;
attribute wstring right;
attribute wstring size;
attribute wstring speak;
attribute wstring speakHeader;
attribute wstring speakNumeral;
attribute wstring speakPunctuation;
attribute wstring speechRate;
attribute wstring stress;
attribute wstring tableLayout;
attribute wstring textAlign;
attribute wstring textDecoration;
attribute wstring textIndent;
attribute wstring textShadow;
attribute wstring textTransform;
attribute wstring top;
attribute wstring unicodeBidi;
attribute wstring verticalAlign;
attribute wstring visibility;
attribute wstring voiceFamily;
attribute wstring volume;
attribute wstring whiteSpace;
attribute wstring widows;
attribute wstring width;
attribute wstring wordSpacing;
attribute wstring zIndex;
};

View File

@@ -0,0 +1,4 @@
interface CSSStyleRule {
readonly attribute wstring type;
};

View File

@@ -0,0 +1,5 @@
interface CSSStyleRuleCollection {
readonly attribute unsigned long length;
CSSStyleRule item(in unsigned long index);
};

View File

@@ -0,0 +1,5 @@
interface CSSStyleRuleSimple : CSSStyleRule {
attribute wstring selectorText;
attribute CSSStyleDeclaration style;
};

View File

@@ -0,0 +1,16 @@
interface CSSStyleSheet : StyleSheet {
readonly attribute HTMLElement owningElement;
readonly attribute CSSStyleSheet parentStyleSheet;
readonly attribute wstring href;
readonly attribute StyleSheetCollection imports;
readonly attribute MediaGroupCollection mediaGroups;
readonly attribute CSSStyleRuleCollection rules;
unsigned long addRule(in wstring selector, in wstring declaration, in unsigned long index);
unsigned long addImport(in wstring url, in unsigned long index);
void removeRule(in unsigned long index);
void removeImport(in unsigned long index);
};