tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

SVG.idl (22410B)


      1 // GENERATED CONTENT - DO NOT EDIT
      2 // Content was automatically extracted by Reffy into webref
      3 // (https://github.com/w3c/webref)
      4 // Source: Scalable Vector Graphics (SVG) 2 (https://svgwg.org/svg2-draft/)
      5 
      6 [Exposed=Window]
      7 interface SVGElement : Element {
      8 
      9  [SameObject] readonly attribute SVGAnimatedString className;
     10 
     11  readonly attribute SVGSVGElement? ownerSVGElement;
     12  readonly attribute SVGElement? viewportElement;
     13 };
     14 
     15 SVGElement includes GlobalEventHandlers;
     16 SVGElement includes SVGElementInstance;
     17 SVGElement includes HTMLOrSVGElement;
     18 
     19 dictionary SVGBoundingBoxOptions {
     20  boolean fill = true;
     21  boolean stroke = false;
     22  boolean markers = false;
     23  boolean clipped = false;
     24 };
     25 
     26 [Exposed=Window]
     27 interface SVGGraphicsElement : SVGElement {
     28  [SameObject] readonly attribute SVGAnimatedTransformList transform;
     29 
     30  DOMRect getBBox(optional SVGBoundingBoxOptions options = {});
     31  DOMMatrix? getCTM();
     32  DOMMatrix? getScreenCTM();
     33 };
     34 
     35 SVGGraphicsElement includes SVGTests;
     36 
     37 [Exposed=Window]
     38 interface SVGGeometryElement : SVGGraphicsElement {
     39  [SameObject] readonly attribute SVGAnimatedNumber pathLength;
     40 
     41  boolean isPointInFill(optional DOMPointInit point = {});
     42  boolean isPointInStroke(optional DOMPointInit point = {});
     43  float getTotalLength();
     44  DOMPoint getPointAtLength(float distance);
     45 };
     46 
     47 [Exposed=Window]
     48 interface SVGNumber {
     49  attribute float value;
     50 };
     51 
     52 [Exposed=Window]
     53 interface SVGLength {
     54 
     55  // Length Unit Types
     56  const unsigned short SVG_LENGTHTYPE_UNKNOWN = 0;
     57  const unsigned short SVG_LENGTHTYPE_NUMBER = 1;
     58  const unsigned short SVG_LENGTHTYPE_PERCENTAGE = 2;
     59  const unsigned short SVG_LENGTHTYPE_EMS = 3;
     60  const unsigned short SVG_LENGTHTYPE_EXS = 4;
     61  const unsigned short SVG_LENGTHTYPE_PX = 5;
     62  const unsigned short SVG_LENGTHTYPE_CM = 6;
     63  const unsigned short SVG_LENGTHTYPE_MM = 7;
     64  const unsigned short SVG_LENGTHTYPE_IN = 8;
     65  const unsigned short SVG_LENGTHTYPE_PT = 9;
     66  const unsigned short SVG_LENGTHTYPE_PC = 10;
     67 
     68  readonly attribute unsigned short unitType;
     69           attribute float value;
     70           attribute float valueInSpecifiedUnits;
     71           attribute DOMString valueAsString;
     72 
     73  undefined newValueSpecifiedUnits(unsigned short unitType, float valueInSpecifiedUnits);
     74  undefined convertToSpecifiedUnits(unsigned short unitType);
     75 };
     76 
     77 [Exposed=Window]
     78 interface SVGAngle {
     79 
     80  // Angle Unit Types
     81  const unsigned short SVG_ANGLETYPE_UNKNOWN = 0;
     82  const unsigned short SVG_ANGLETYPE_UNSPECIFIED = 1;
     83  const unsigned short SVG_ANGLETYPE_DEG = 2;
     84  const unsigned short SVG_ANGLETYPE_RAD = 3;
     85  const unsigned short SVG_ANGLETYPE_GRAD = 4;
     86 
     87  readonly attribute unsigned short unitType;
     88           attribute float value;
     89           attribute float valueInSpecifiedUnits;
     90           attribute DOMString valueAsString;
     91 
     92  undefined newValueSpecifiedUnits(unsigned short unitType, float valueInSpecifiedUnits);
     93  undefined convertToSpecifiedUnits(unsigned short unitType);
     94 };
     95 
     96 [Exposed=Window]
     97 interface SVGNumberList {
     98 
     99  readonly attribute unsigned long length;
    100  readonly attribute unsigned long numberOfItems;
    101 
    102  undefined clear();
    103  SVGNumber initialize(SVGNumber newItem);
    104  getter SVGNumber getItem(unsigned long index);
    105  SVGNumber insertItemBefore(SVGNumber newItem, unsigned long index);
    106  SVGNumber replaceItem(SVGNumber newItem, unsigned long index);
    107  SVGNumber removeItem(unsigned long index);
    108  SVGNumber appendItem(SVGNumber newItem);
    109  setter undefined (unsigned long index, SVGNumber newItem);
    110 };
    111 
    112 [Exposed=Window]
    113 interface SVGLengthList {
    114 
    115  readonly attribute unsigned long length;
    116  readonly attribute unsigned long numberOfItems;
    117 
    118  undefined clear();
    119  SVGLength initialize(SVGLength newItem);
    120  getter SVGLength getItem(unsigned long index);
    121  SVGLength insertItemBefore(SVGLength newItem, unsigned long index);
    122  SVGLength replaceItem(SVGLength newItem, unsigned long index);
    123  SVGLength removeItem(unsigned long index);
    124  SVGLength appendItem(SVGLength newItem);
    125  setter undefined (unsigned long index, SVGLength newItem);
    126 };
    127 
    128 [Exposed=Window]
    129 interface SVGStringList {
    130 
    131  readonly attribute unsigned long length;
    132  readonly attribute unsigned long numberOfItems;
    133 
    134  undefined clear();
    135  DOMString initialize(DOMString newItem);
    136  getter DOMString getItem(unsigned long index);
    137  DOMString insertItemBefore(DOMString newItem, unsigned long index);
    138  DOMString replaceItem(DOMString newItem, unsigned long index);
    139  DOMString removeItem(unsigned long index);
    140  DOMString appendItem(DOMString newItem);
    141  setter undefined (unsigned long index, DOMString newItem);
    142 };
    143 
    144 [Exposed=Window]
    145 interface SVGAnimatedBoolean {
    146           attribute boolean baseVal;
    147  readonly attribute boolean animVal;
    148 };
    149 
    150 [Exposed=Window]
    151 interface SVGAnimatedEnumeration {
    152           attribute unsigned short baseVal;
    153  readonly attribute unsigned short animVal;
    154 };
    155 
    156 [Exposed=Window]
    157 interface SVGAnimatedInteger {
    158           attribute long baseVal;
    159  readonly attribute long animVal;
    160 };
    161 
    162 [Exposed=Window]
    163 interface SVGAnimatedNumber {
    164           attribute float baseVal;
    165  readonly attribute float animVal;
    166 };
    167 
    168 [Exposed=Window]
    169 interface SVGAnimatedLength {
    170  [SameObject] readonly attribute SVGLength baseVal;
    171  [SameObject] readonly attribute SVGLength animVal;
    172 };
    173 
    174 [Exposed=Window]
    175 interface SVGAnimatedAngle {
    176  [SameObject] readonly attribute SVGAngle baseVal;
    177  [SameObject] readonly attribute SVGAngle animVal;
    178 };
    179 
    180 [Exposed=Window]
    181 interface SVGAnimatedString {
    182           attribute (DOMString or TrustedScriptURL) baseVal;
    183  readonly attribute DOMString animVal;
    184 };
    185 
    186 [Exposed=Window]
    187 interface SVGAnimatedRect {
    188  [SameObject] readonly attribute DOMRect baseVal;
    189  [SameObject] readonly attribute DOMRectReadOnly animVal;
    190 };
    191 
    192 [Exposed=Window]
    193 interface SVGAnimatedNumberList {
    194  [SameObject] readonly attribute SVGNumberList baseVal;
    195  [SameObject] readonly attribute SVGNumberList animVal;
    196 };
    197 
    198 [Exposed=Window]
    199 interface SVGAnimatedLengthList {
    200  [SameObject] readonly attribute SVGLengthList baseVal;
    201  [SameObject] readonly attribute SVGLengthList animVal;
    202 };
    203 
    204 [Exposed=Window]
    205 interface SVGUnitTypes {
    206  // Unit Types
    207  const unsigned short SVG_UNIT_TYPE_UNKNOWN = 0;
    208  const unsigned short SVG_UNIT_TYPE_USERSPACEONUSE = 1;
    209  const unsigned short SVG_UNIT_TYPE_OBJECTBOUNDINGBOX = 2;
    210 };
    211 
    212 interface mixin SVGTests {
    213  [SameObject] readonly attribute SVGStringList requiredExtensions;
    214  [SameObject] readonly attribute SVGStringList systemLanguage;
    215 };
    216 
    217 interface mixin SVGFitToViewBox {
    218  [SameObject] readonly attribute SVGAnimatedRect viewBox;
    219  [SameObject] readonly attribute SVGAnimatedPreserveAspectRatio preserveAspectRatio;
    220 };
    221 
    222 interface mixin SVGURIReference {
    223  [SameObject] readonly attribute SVGAnimatedString href;
    224 };
    225 
    226 partial interface Document {
    227  readonly attribute SVGSVGElement? rootElement;
    228 };
    229 
    230 [Exposed=Window]
    231 interface SVGSVGElement : SVGGraphicsElement {
    232 
    233  [SameObject] readonly attribute SVGAnimatedLength x;
    234  [SameObject] readonly attribute SVGAnimatedLength y;
    235  [SameObject] readonly attribute SVGAnimatedLength width;
    236  [SameObject] readonly attribute SVGAnimatedLength height;
    237 
    238  attribute float currentScale;
    239  [SameObject] readonly attribute DOMPointReadOnly currentTranslate;
    240 
    241  NodeList getIntersectionList(DOMRectReadOnly rect, SVGElement? referenceElement);
    242  NodeList getEnclosureList(DOMRectReadOnly rect, SVGElement? referenceElement);
    243  boolean checkIntersection(SVGElement element, DOMRectReadOnly rect);
    244  boolean checkEnclosure(SVGElement element, DOMRectReadOnly rect);
    245 
    246  undefined deselectAll();
    247 
    248  [NewObject] SVGNumber createSVGNumber();
    249  [NewObject] SVGLength createSVGLength();
    250  [NewObject] SVGAngle createSVGAngle();
    251  [NewObject] DOMPoint createSVGPoint();
    252  [NewObject] DOMMatrix createSVGMatrix();
    253  [NewObject] DOMRect createSVGRect();
    254  [NewObject] SVGTransform createSVGTransform();
    255  [NewObject] SVGTransform createSVGTransformFromMatrix(optional DOMMatrix2DInit matrix = {});
    256 
    257  Element? getElementById(DOMString elementId);
    258 
    259  // Deprecated methods that have no effect when called,
    260  // but which are kept for compatibility reasons.
    261  unsigned long suspendRedraw(unsigned long maxWaitMilliseconds);
    262  undefined unsuspendRedraw(unsigned long suspendHandleID);
    263  undefined unsuspendRedrawAll();
    264  undefined forceRedraw();
    265 };
    266 
    267 SVGSVGElement includes SVGFitToViewBox;
    268 SVGSVGElement includes WindowEventHandlers;
    269 
    270 [Exposed=Window]
    271 interface SVGGElement : SVGGraphicsElement {
    272 };
    273 
    274 [Exposed=Window]
    275 interface SVGDefsElement : SVGGraphicsElement {
    276 };
    277 
    278 [Exposed=Window]
    279 interface SVGDescElement : SVGElement {
    280 };
    281 
    282 [Exposed=Window]
    283 interface SVGMetadataElement : SVGElement {
    284 };
    285 
    286 [Exposed=Window]
    287 interface SVGTitleElement : SVGElement {
    288 };
    289 
    290 [Exposed=Window]
    291 interface SVGSymbolElement : SVGGraphicsElement {
    292 };
    293 
    294 SVGSymbolElement includes SVGFitToViewBox;
    295 
    296 [Exposed=Window]
    297 interface SVGUseElement : SVGGraphicsElement {
    298  [SameObject] readonly attribute SVGAnimatedLength x;
    299  [SameObject] readonly attribute SVGAnimatedLength y;
    300  [SameObject] readonly attribute SVGAnimatedLength width;
    301  [SameObject] readonly attribute SVGAnimatedLength height;
    302  [SameObject] readonly attribute SVGElement? instanceRoot;
    303  [SameObject] readonly attribute SVGElement? animatedInstanceRoot;
    304 };
    305 
    306 SVGUseElement includes SVGURIReference;
    307 
    308 [Exposed=Window]
    309 interface SVGUseElementShadowRoot : ShadowRoot {
    310 };
    311 
    312 interface mixin SVGElementInstance {
    313  [SameObject] readonly attribute SVGElement? correspondingElement;
    314  [SameObject] readonly attribute SVGUseElement? correspondingUseElement;
    315 };
    316 
    317 [Exposed=Window]
    318 interface ShadowAnimation : Animation {
    319  constructor(Animation source, (Element or CSSPseudoElement) newTarget);
    320  [SameObject] readonly attribute Animation sourceAnimation;
    321 };
    322 
    323 [Exposed=Window]
    324 interface SVGSwitchElement : SVGGraphicsElement {
    325 };
    326 
    327 interface mixin GetSVGDocument {
    328  Document getSVGDocument();
    329 };
    330 
    331 [Exposed=Window]
    332 interface SVGStyleElement : SVGElement {
    333  attribute DOMString type;
    334  attribute DOMString media;
    335  attribute DOMString title;
    336  attribute boolean disabled;
    337 };
    338 
    339 SVGStyleElement includes LinkStyle;
    340 
    341 [Exposed=Window]
    342 interface SVGTransform {
    343 
    344  // Transform Types
    345  const unsigned short SVG_TRANSFORM_UNKNOWN = 0;
    346  const unsigned short SVG_TRANSFORM_MATRIX = 1;
    347  const unsigned short SVG_TRANSFORM_TRANSLATE = 2;
    348  const unsigned short SVG_TRANSFORM_SCALE = 3;
    349  const unsigned short SVG_TRANSFORM_ROTATE = 4;
    350  const unsigned short SVG_TRANSFORM_SKEWX = 5;
    351  const unsigned short SVG_TRANSFORM_SKEWY = 6;
    352 
    353  readonly attribute unsigned short type;
    354  [SameObject] readonly attribute DOMMatrix matrix;
    355  readonly attribute float angle;
    356 
    357  undefined setMatrix(optional DOMMatrix2DInit matrix = {});
    358  undefined setTranslate(float tx, float ty);
    359  undefined setScale(float sx, float sy);
    360  undefined setRotate(float angle, float cx, float cy);
    361  undefined setSkewX(float angle);
    362  undefined setSkewY(float angle);
    363 };
    364 
    365 [Exposed=Window]
    366 interface SVGTransformList {
    367 
    368  readonly attribute unsigned long length;
    369  readonly attribute unsigned long numberOfItems;
    370 
    371  undefined clear();
    372  SVGTransform initialize(SVGTransform newItem);
    373  getter SVGTransform getItem(unsigned long index);
    374  SVGTransform insertItemBefore(SVGTransform newItem, unsigned long index);
    375  SVGTransform replaceItem(SVGTransform newItem, unsigned long index);
    376  SVGTransform removeItem(unsigned long index);
    377  SVGTransform appendItem(SVGTransform newItem);
    378  setter undefined (unsigned long index, SVGTransform newItem);
    379 
    380  // Additional methods not common to other list interfaces.
    381  SVGTransform createSVGTransformFromMatrix(optional DOMMatrix2DInit matrix = {});
    382  SVGTransform? consolidate();
    383 };
    384 
    385 [Exposed=Window]
    386 interface SVGAnimatedTransformList {
    387  [SameObject] readonly attribute SVGTransformList baseVal;
    388  [SameObject] readonly attribute SVGTransformList animVal;
    389 };
    390 
    391 [Exposed=Window]
    392 interface SVGPreserveAspectRatio {
    393 
    394  // Alignment Types
    395  const unsigned short SVG_PRESERVEASPECTRATIO_UNKNOWN = 0;
    396  const unsigned short SVG_PRESERVEASPECTRATIO_NONE = 1;
    397  const unsigned short SVG_PRESERVEASPECTRATIO_XMINYMIN = 2;
    398  const unsigned short SVG_PRESERVEASPECTRATIO_XMIDYMIN = 3;
    399  const unsigned short SVG_PRESERVEASPECTRATIO_XMAXYMIN = 4;
    400  const unsigned short SVG_PRESERVEASPECTRATIO_XMINYMID = 5;
    401  const unsigned short SVG_PRESERVEASPECTRATIO_XMIDYMID = 6;
    402  const unsigned short SVG_PRESERVEASPECTRATIO_XMAXYMID = 7;
    403  const unsigned short SVG_PRESERVEASPECTRATIO_XMINYMAX = 8;
    404  const unsigned short SVG_PRESERVEASPECTRATIO_XMIDYMAX = 9;
    405  const unsigned short SVG_PRESERVEASPECTRATIO_XMAXYMAX = 10;
    406 
    407  // Meet-or-slice Types
    408  const unsigned short SVG_MEETORSLICE_UNKNOWN = 0;
    409  const unsigned short SVG_MEETORSLICE_MEET = 1;
    410  const unsigned short SVG_MEETORSLICE_SLICE = 2;
    411 
    412  attribute unsigned short align;
    413  attribute unsigned short meetOrSlice;
    414 };
    415 
    416 [Exposed=Window]
    417 interface SVGAnimatedPreserveAspectRatio {
    418  [SameObject] readonly attribute SVGPreserveAspectRatio baseVal;
    419  [SameObject] readonly attribute SVGPreserveAspectRatio animVal;
    420 };
    421 
    422 [Exposed=Window]
    423 interface SVGRectElement : SVGGeometryElement {
    424  [SameObject] readonly attribute SVGAnimatedLength x;
    425  [SameObject] readonly attribute SVGAnimatedLength y;
    426  [SameObject] readonly attribute SVGAnimatedLength width;
    427  [SameObject] readonly attribute SVGAnimatedLength height;
    428  [SameObject] readonly attribute SVGAnimatedLength rx;
    429  [SameObject] readonly attribute SVGAnimatedLength ry;
    430 };
    431 
    432 [Exposed=Window]
    433 interface SVGCircleElement : SVGGeometryElement {
    434  [SameObject] readonly attribute SVGAnimatedLength cx;
    435  [SameObject] readonly attribute SVGAnimatedLength cy;
    436  [SameObject] readonly attribute SVGAnimatedLength r;
    437 };
    438 
    439 [Exposed=Window]
    440 interface SVGEllipseElement : SVGGeometryElement {
    441  [SameObject] readonly attribute SVGAnimatedLength cx;
    442  [SameObject] readonly attribute SVGAnimatedLength cy;
    443  [SameObject] readonly attribute SVGAnimatedLength rx;
    444  [SameObject] readonly attribute SVGAnimatedLength ry;
    445 };
    446 
    447 [Exposed=Window]
    448 interface SVGLineElement : SVGGeometryElement {
    449  [SameObject] readonly attribute SVGAnimatedLength x1;
    450  [SameObject] readonly attribute SVGAnimatedLength y1;
    451  [SameObject] readonly attribute SVGAnimatedLength x2;
    452  [SameObject] readonly attribute SVGAnimatedLength y2;
    453 };
    454 
    455 interface mixin SVGAnimatedPoints {
    456  [SameObject] readonly attribute SVGPointList points;
    457  [SameObject] readonly attribute SVGPointList animatedPoints;
    458 };
    459 
    460 [Exposed=Window]
    461 interface SVGPointList {
    462 
    463  readonly attribute unsigned long length;
    464  readonly attribute unsigned long numberOfItems;
    465 
    466  undefined clear();
    467  DOMPoint initialize(DOMPoint newItem);
    468  getter DOMPoint getItem(unsigned long index);
    469  DOMPoint insertItemBefore(DOMPoint newItem, unsigned long index);
    470  DOMPoint replaceItem(DOMPoint newItem, unsigned long index);
    471  DOMPoint removeItem(unsigned long index);
    472  DOMPoint appendItem(DOMPoint newItem);
    473  setter undefined (unsigned long index, DOMPoint newItem);
    474 };
    475 
    476 [Exposed=Window]
    477 interface SVGPolylineElement : SVGGeometryElement {
    478 };
    479 
    480 SVGPolylineElement includes SVGAnimatedPoints;
    481 
    482 [Exposed=Window]
    483 interface SVGPolygonElement : SVGGeometryElement {
    484 };
    485 
    486 SVGPolygonElement includes SVGAnimatedPoints;
    487 
    488 [Exposed=Window]
    489 interface SVGTextContentElement : SVGGraphicsElement {
    490 
    491  // lengthAdjust Types
    492  const unsigned short LENGTHADJUST_UNKNOWN = 0;
    493  const unsigned short LENGTHADJUST_SPACING = 1;
    494  const unsigned short LENGTHADJUST_SPACINGANDGLYPHS = 2;
    495 
    496  [SameObject] readonly attribute SVGAnimatedLength textLength;
    497  [SameObject] readonly attribute SVGAnimatedEnumeration lengthAdjust;
    498 
    499  long getNumberOfChars();
    500  float getComputedTextLength();
    501  float getSubStringLength(unsigned long charnum, unsigned long nchars);
    502  DOMPoint getStartPositionOfChar(unsigned long charnum);
    503  DOMPoint getEndPositionOfChar(unsigned long charnum);
    504  DOMRect getExtentOfChar(unsigned long charnum);
    505  float getRotationOfChar(unsigned long charnum);
    506  long getCharNumAtPosition(optional DOMPointInit point = {});
    507  undefined selectSubString(unsigned long charnum, unsigned long nchars);
    508 };
    509 
    510 [Exposed=Window]
    511 interface SVGTextPositioningElement : SVGTextContentElement {
    512  [SameObject] readonly attribute SVGAnimatedLengthList x;
    513  [SameObject] readonly attribute SVGAnimatedLengthList y;
    514  [SameObject] readonly attribute SVGAnimatedLengthList dx;
    515  [SameObject] readonly attribute SVGAnimatedLengthList dy;
    516  [SameObject] readonly attribute SVGAnimatedNumberList rotate;
    517 };
    518 
    519 [Exposed=Window]
    520 interface SVGTextElement : SVGTextPositioningElement {
    521 };
    522 
    523 [Exposed=Window]
    524 interface SVGTSpanElement : SVGTextPositioningElement {
    525 };
    526 
    527 [Exposed=Window]
    528 interface SVGTextPathElement : SVGTextContentElement {
    529 
    530  // textPath Method Types
    531  const unsigned short TEXTPATH_METHODTYPE_UNKNOWN = 0;
    532  const unsigned short TEXTPATH_METHODTYPE_ALIGN = 1;
    533  const unsigned short TEXTPATH_METHODTYPE_STRETCH = 2;
    534 
    535  // textPath Spacing Types
    536  const unsigned short TEXTPATH_SPACINGTYPE_UNKNOWN = 0;
    537  const unsigned short TEXTPATH_SPACINGTYPE_AUTO = 1;
    538  const unsigned short TEXTPATH_SPACINGTYPE_EXACT = 2;
    539 
    540  [SameObject] readonly attribute SVGAnimatedLength startOffset;
    541  [SameObject] readonly attribute SVGAnimatedEnumeration method;
    542  [SameObject] readonly attribute SVGAnimatedEnumeration spacing;
    543 };
    544 
    545 SVGTextPathElement includes SVGURIReference;
    546 
    547 [Exposed=Window]
    548 interface SVGImageElement : SVGGraphicsElement {
    549  [SameObject] readonly attribute SVGAnimatedLength x;
    550  [SameObject] readonly attribute SVGAnimatedLength y;
    551  [SameObject] readonly attribute SVGAnimatedLength width;
    552  [SameObject] readonly attribute SVGAnimatedLength height;
    553  [SameObject] readonly attribute SVGAnimatedPreserveAspectRatio preserveAspectRatio;
    554  attribute DOMString? crossOrigin;
    555 };
    556 
    557 SVGImageElement includes SVGURIReference;
    558 
    559 [Exposed=Window]
    560 interface SVGForeignObjectElement : SVGGraphicsElement {
    561  [SameObject] readonly attribute SVGAnimatedLength x;
    562  [SameObject] readonly attribute SVGAnimatedLength y;
    563  [SameObject] readonly attribute SVGAnimatedLength width;
    564  [SameObject] readonly attribute SVGAnimatedLength height;
    565 };
    566 
    567 [Exposed=Window]
    568 interface SVGMarkerElement : SVGElement {
    569 
    570  // Marker Unit Types
    571  const unsigned short SVG_MARKERUNITS_UNKNOWN = 0;
    572  const unsigned short SVG_MARKERUNITS_USERSPACEONUSE = 1;
    573  const unsigned short SVG_MARKERUNITS_STROKEWIDTH = 2;
    574 
    575  // Marker Orientation Types
    576  const unsigned short SVG_MARKER_ORIENT_UNKNOWN = 0;
    577  const unsigned short SVG_MARKER_ORIENT_AUTO = 1;
    578  const unsigned short SVG_MARKER_ORIENT_ANGLE = 2;
    579  const unsigned short SVG_MARKER_ORIENT_AUTO_START_REVERSE = 3;
    580 
    581  [SameObject] readonly attribute SVGAnimatedLength refX;
    582  [SameObject] readonly attribute SVGAnimatedLength refY;
    583  [SameObject] readonly attribute SVGAnimatedEnumeration markerUnits;
    584  [SameObject] readonly attribute SVGAnimatedLength markerWidth;
    585  [SameObject] readonly attribute SVGAnimatedLength markerHeight;
    586  [SameObject] readonly attribute SVGAnimatedEnumeration orientType;
    587  [SameObject] readonly attribute SVGAnimatedAngle orientAngle;
    588  attribute DOMString orient;
    589 
    590  undefined setOrientToAuto();
    591  undefined setOrientToAngle(SVGAngle angle);
    592 };
    593 
    594 SVGMarkerElement includes SVGFitToViewBox;
    595 
    596 [Exposed=Window]
    597 interface SVGGradientElement : SVGElement {
    598 
    599  // Spread Method Types
    600  const unsigned short SVG_SPREADMETHOD_UNKNOWN = 0;
    601  const unsigned short SVG_SPREADMETHOD_PAD = 1;
    602  const unsigned short SVG_SPREADMETHOD_REFLECT = 2;
    603  const unsigned short SVG_SPREADMETHOD_REPEAT = 3;
    604 
    605  [SameObject] readonly attribute SVGAnimatedEnumeration gradientUnits;
    606  [SameObject] readonly attribute SVGAnimatedTransformList gradientTransform;
    607  [SameObject] readonly attribute SVGAnimatedEnumeration spreadMethod;
    608 };
    609 
    610 SVGGradientElement includes SVGURIReference;
    611 
    612 [Exposed=Window]
    613 interface SVGLinearGradientElement : SVGGradientElement {
    614  [SameObject] readonly attribute SVGAnimatedLength x1;
    615  [SameObject] readonly attribute SVGAnimatedLength y1;
    616  [SameObject] readonly attribute SVGAnimatedLength x2;
    617  [SameObject] readonly attribute SVGAnimatedLength y2;
    618 };
    619 
    620 [Exposed=Window]
    621 interface SVGRadialGradientElement : SVGGradientElement {
    622  [SameObject] readonly attribute SVGAnimatedLength cx;
    623  [SameObject] readonly attribute SVGAnimatedLength cy;
    624  [SameObject] readonly attribute SVGAnimatedLength r;
    625  [SameObject] readonly attribute SVGAnimatedLength fx;
    626  [SameObject] readonly attribute SVGAnimatedLength fy;
    627  [SameObject] readonly attribute SVGAnimatedLength fr;
    628 };
    629 
    630 [Exposed=Window]
    631 interface SVGStopElement : SVGElement {
    632  [SameObject] readonly attribute SVGAnimatedNumber offset;
    633 };
    634 
    635 [Exposed=Window]
    636 interface SVGPatternElement : SVGElement {
    637  [SameObject] readonly attribute SVGAnimatedEnumeration patternUnits;
    638  [SameObject] readonly attribute SVGAnimatedEnumeration patternContentUnits;
    639  [SameObject] readonly attribute SVGAnimatedTransformList patternTransform;
    640  [SameObject] readonly attribute SVGAnimatedLength x;
    641  [SameObject] readonly attribute SVGAnimatedLength y;
    642  [SameObject] readonly attribute SVGAnimatedLength width;
    643  [SameObject] readonly attribute SVGAnimatedLength height;
    644 };
    645 
    646 SVGPatternElement includes SVGFitToViewBox;
    647 SVGPatternElement includes SVGURIReference;
    648 
    649 [Exposed=Window]
    650 interface SVGScriptElement : SVGElement {
    651  attribute DOMString type;
    652  attribute DOMString? crossOrigin;
    653 };
    654 
    655 SVGScriptElement includes SVGURIReference;
    656 
    657 [Exposed=Window]
    658 interface SVGAElement : SVGGraphicsElement {
    659  [SameObject] readonly attribute SVGAnimatedString target;
    660  attribute DOMString download;
    661  attribute USVString ping;
    662  attribute DOMString rel;
    663  [SameObject, PutForwards=value] readonly attribute DOMTokenList relList;
    664  attribute DOMString hreflang;
    665  attribute DOMString type;
    666 
    667  attribute DOMString referrerPolicy;
    668 };
    669 
    670 SVGAElement includes SVGURIReference;
    671 
    672 // Inline HTMLHyperlinkElementUtils except href, which conflicts.
    673 partial interface SVGAElement {
    674  readonly attribute USVString origin;
    675  [CEReactions] attribute USVString protocol;
    676  [CEReactions] attribute USVString username;
    677  [CEReactions] attribute USVString password;
    678  [CEReactions] attribute USVString host;
    679  [CEReactions] attribute USVString hostname;
    680  [CEReactions] attribute USVString port;
    681  [CEReactions] attribute USVString pathname;
    682  [CEReactions] attribute USVString search;
    683  [CEReactions] attribute USVString hash;
    684 };
    685 
    686 [Exposed=Window]
    687 interface SVGViewElement : SVGElement {};
    688 
    689 SVGViewElement includes SVGFitToViewBox;