|
| 1 | +[Exposed=Window] |
| 2 | +interface SVGTextContentElement : SVGGraphicsElement { |
| 3 | + |
| 4 | + // lengthAdjust Types |
| 5 | + const unsigned short LENGTHADJUST_UNKNOWN = 0; |
| 6 | + const unsigned short LENGTHADJUST_SPACING = 1; |
| 7 | + const unsigned short LENGTHADJUST_SPACINGANDGLYPHS = 2; |
| 8 | + |
| 9 | + [SameObject] readonly attribute SVGAnimatedLength textLength; |
| 10 | + [SameObject] readonly attribute SVGAnimatedEnumeration lengthAdjust; |
| 11 | + |
| 12 | + long getNumberOfChars(); |
| 13 | + float getComputedTextLength(); |
| 14 | + float getSubStringLength(unsigned long charnum, unsigned long nchars); |
| 15 | + DOMPoint getStartPositionOfChar(unsigned long charnum); |
| 16 | + DOMPoint getEndPositionOfChar(unsigned long charnum); |
| 17 | + DOMRect getExtentOfChar(unsigned long charnum); |
| 18 | + float getRotationOfChar(unsigned long charnum); |
| 19 | + long getCharNumAtPosition(optional DOMPointInit point); |
| 20 | + void selectSubString(unsigned long charnum, unsigned long nchars); |
| 21 | +}; |
| 22 | + |
| 23 | +[Exposed=Window] |
| 24 | +interface SVGTextPositioningElement : SVGTextContentElement { |
| 25 | + [SameObject] readonly attribute SVGAnimatedLengthList x; |
| 26 | + [SameObject] readonly attribute SVGAnimatedLengthList y; |
| 27 | + [SameObject] readonly attribute SVGAnimatedLengthList dx; |
| 28 | + [SameObject] readonly attribute SVGAnimatedLengthList dy; |
| 29 | + [SameObject] readonly attribute SVGAnimatedNumberList rotate; |
| 30 | +}; |
| 31 | + |
| 32 | +[Exposed=Window] |
| 33 | +interface SVGTextElement : SVGTextPositioningElement { |
| 34 | +}; |
| 35 | + |
| 36 | +[Exposed=Window] |
| 37 | +interface SVGTSpanElement : SVGTextPositioningElement { |
| 38 | +}; |
| 39 | + |
| 40 | +[Exposed=Window] |
| 41 | +interface SVGTextPathElement : SVGTextContentElement { |
| 42 | + |
| 43 | + // textPath Method Types |
| 44 | + const unsigned short TEXTPATH_METHODTYPE_UNKNOWN = 0; |
| 45 | + const unsigned short TEXTPATH_METHODTYPE_ALIGN = 1; |
| 46 | + const unsigned short TEXTPATH_METHODTYPE_STRETCH = 2; |
| 47 | + |
| 48 | + // textPath Spacing Types |
| 49 | + const unsigned short TEXTPATH_SPACINGTYPE_UNKNOWN = 0; |
| 50 | + const unsigned short TEXTPATH_SPACINGTYPE_AUTO = 1; |
| 51 | + const unsigned short TEXTPATH_SPACINGTYPE_EXACT = 2; |
| 52 | + |
| 53 | + [SameObject] readonly attribute SVGAnimatedLength startOffset; |
| 54 | + [SameObject] readonly attribute SVGAnimatedEnumeration method; |
| 55 | + [SameObject] readonly attribute SVGAnimatedEnumeration spacing; |
| 56 | +}; |
| 57 | + |
| 58 | +SVGTextPathElement includes SVGURIReference; |
| 59 | + |
| 60 | +partial interface CSSStyleDeclaration { |
| 61 | + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString inlineSize; |
| 62 | + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString shapeInside; |
| 63 | + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString shapeSubtract; |
| 64 | + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString shapeMargin; |
| 65 | + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString textAnchor; |
| 66 | + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString textDecorationFill; |
| 67 | + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString textDecorationStroke; |
| 68 | +}; |
0 commit comments