w3c_css.js (61521B)
1 /* 2 * Copyright 2008 The Closure Compiler Authors 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 /** 18 * @fileoverview Definitions for W3C's CSS specification 19 * The whole file has been fully type annotated. 20 * http://www.w3.org/TR/DOM-Level-2-Style/css.html 21 * @externs 22 * @author stevey@google.com (Steve Yegge) 23 * 24 * TODO(nicksantos): When there are no more occurrences of w3c_range.js and 25 * gecko_dom.js being included directly in BUILD files, bug dbeam to split the 26 * bottom part of this file into a separate externs. 27 */ 28 29 /** 30 * @constructor 31 * @see http://www.w3.org/TR/DOM-Level-2-Style/stylesheets.html#StyleSheets-StyleSheet 32 */ 33 function StyleSheet() {} 34 35 /** 36 * @type {string} 37 * @see http://www.w3.org/TR/DOM-Level-2-Style/stylesheets.html#StyleSheets-StyleSheet-type 38 */ 39 StyleSheet.prototype.type; 40 41 /** 42 * @type {boolean} 43 * @see http://www.w3.org/TR/DOM-Level-2-Style/stylesheets.html#StyleSheets-StyleSheet-disabled 44 */ 45 StyleSheet.prototype.disabled; 46 47 /** 48 * @type {Node} 49 * @see http://www.w3.org/TR/DOM-Level-2-Style/stylesheets.html#StyleSheets-StyleSheet-owner 50 */ 51 StyleSheet.prototype.ownerNode; 52 53 /** 54 * @type {StyleSheet} 55 * @see http://www.w3.org/TR/DOM-Level-2-Style/stylesheets.html#StyleSheets-StyleSheet-parentStyleSheet 56 */ 57 StyleSheet.prototype.parentStyleSheet; 58 59 /** 60 * @type {string} 61 * @see http://www.w3.org/TR/DOM-Level-2-Style/stylesheets.html#StyleSheets-StyleSheet-href 62 */ 63 StyleSheet.prototype.href; 64 65 /** 66 * @type {string} 67 * @see http://www.w3.org/TR/DOM-Level-2-Style/stylesheets.html#StyleSheets-StyleSheet-title 68 */ 69 StyleSheet.prototype.title; 70 71 /** 72 * @type {MediaList} 73 * @see http://www.w3.org/TR/DOM-Level-2-Style/stylesheets.html#StyleSheets-StyleSheet-media 74 */ 75 StyleSheet.prototype.media; 76 77 /** 78 * @constructor 79 * @see http://www.w3.org/TR/DOM-Level-2-Style/stylesheets.html#StyleSheets-StyleSheetList 80 */ 81 function StyleSheetList() {} 82 83 /** 84 * @type {number} 85 * @see http://www.w3.org/TR/DOM-Level-2-Style/stylesheets.html#StyleSheets-StyleSheetList-length 86 */ 87 StyleSheetList.prototype.length; 88 89 /** 90 * @param {number} index 91 * @return {StyleSheet} 92 * @see http://www.w3.org/TR/DOM-Level-2-Style/stylesheets.html#StyleSheets-StyleSheetList-item 93 */ 94 StyleSheetList.prototype.item = function(index) {}; 95 96 /** 97 * @constructor 98 * @see http://www.w3.org/TR/DOM-Level-2-Style/stylesheets.html#StyleSheets-MediaList 99 */ 100 function MediaList() {} 101 102 /** 103 * @type {string} 104 * @see http://www.w3.org/TR/DOM-Level-2-Style/stylesheets.html#StyleSheets-MediaList-mediaText 105 */ 106 MediaList.prototype.mediaText; 107 108 /** 109 * @type {number} 110 * @see http://www.w3.org/TR/DOM-Level-2-Style/stylesheets.html#StyleSheets-MediaList-length 111 */ 112 MediaList.prototype.length; 113 114 /** 115 * @param {number} index 116 * @return {string} 117 * @see http://www.w3.org/TR/DOM-Level-2-Style/stylesheets.html#StyleSheets-MediaList-item 118 */ 119 MediaList.prototype.item = function(index) {}; 120 121 /** 122 * @interface 123 * @see http://www.w3.org/TR/DOM-Level-2-Style/stylesheets.html#StyleSheets-LinkStyle 124 */ 125 function LinkStyle() {} 126 127 /** 128 * @type {StyleSheet} 129 * @see http://www.w3.org/TR/DOM-Level-2-Style/stylesheets.html#StyleSheets-LinkStyle-sheet 130 */ 131 LinkStyle.prototype.sheet; 132 133 /** 134 * @constructor 135 * @see http://www.w3.org/TR/DOM-Level-2-Style/stylesheets.html#StyleSheets-StyleSheet-DocumentStyle 136 */ 137 function DocumentStyle() {} 138 139 /** 140 * @type {StyleSheetList} 141 * @see http://www.w3.org/TR/DOM-Level-2-Style/stylesheets.html#StyleSheets-StyleSheet-DocumentStyle-styleSheets 142 */ 143 DocumentStyle.prototype.styleSheets; 144 145 /** 146 * @constructor 147 * @extends {StyleSheet} 148 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSStyleSheet 149 */ 150 function CSSStyleSheet() {} 151 152 /** 153 * @type {CSSRule} 154 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSStyleSheet-ownerRule 155 */ 156 CSSStyleSheet.prototype.ownerRule; 157 158 /** 159 * @type {CSSRuleList} 160 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSStyleSheet-cssRules 161 */ 162 CSSStyleSheet.prototype.cssRules; 163 164 /** 165 * @param {string} rule 166 * @param {number} index 167 * @return {number} 168 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSStyleSheet-insertRule 169 */ 170 CSSStyleSheet.prototype.insertRule = function(rule, index) {}; 171 172 /** 173 * @param {number} index 174 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSStyleSheet-deleteRule 175 */ 176 CSSStyleSheet.prototype.deleteRule = function(index) {}; 177 178 /** 179 * @constructor 180 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSRuleList 181 */ 182 function CSSRuleList() {} 183 184 /** 185 * @type {number} 186 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSRuleList-length 187 */ 188 CSSRuleList.prototype.length; 189 190 /** 191 * @param {number} index 192 * @return {CSSRule} 193 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSRuleList-item 194 */ 195 CSSRuleList.prototype.item = function(index) {}; 196 197 /** 198 * @constructor 199 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSRule 200 */ 201 function CSSRule() {} 202 203 /** 204 * @type {number} 205 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSRule-ruleType 206 */ 207 CSSRule.prototype.type; 208 209 /** 210 * @type {string} 211 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSRule-cssText 212 */ 213 CSSRule.prototype.cssText; 214 215 /** 216 * @type {CSSStyleSheet} 217 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSRule-sheet 218 */ 219 CSSRule.prototype.parentStyleSheet; 220 221 /** 222 * @type {CSSRule} 223 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSRule-parentRule 224 */ 225 CSSRule.prototype.parentRule; 226 227 /** 228 * @type {CSSStyleDeclaration} 229 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSStyleRule 230 */ 231 CSSRule.prototype.style; 232 233 /** 234 * Indicates that the rule is a {@see CSSUnknownRule}. 235 * @type {number} 236 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSRule-ruleType 237 */ 238 CSSRule.UNKNOWN_RULE = 0; 239 240 /** 241 * Indicates that the rule is a {@see CSSStyleRule}. 242 * @type {number} 243 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSRule-ruleType 244 */ 245 CSSRule.STYLE_RULE = 1; 246 247 /** 248 * Indicates that the rule is a {@see CSSCharsetRule}. 249 * @type {number} 250 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSRule-ruleType 251 */ 252 CSSRule.CHARSET_RULE = 2; 253 254 /** 255 * Indicates that the rule is a {@see CSSImportRule}. 256 * @type {number} 257 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSRule-ruleType 258 */ 259 CSSRule.IMPORT_RULE = 3; 260 261 /** 262 * Indicates that the rule is a {@see CSSMediaRule}. 263 * @type {number} 264 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSRule-ruleType 265 */ 266 CSSRule.MEDIA_RULE = 4; 267 268 /** 269 * Indicates that the rule is a {@see CSSFontFaceRule}. 270 * @type {number} 271 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSRule-ruleType 272 */ 273 CSSRule.FONT_FACE_RULE = 5; 274 275 /** 276 * Indicates that the rule is a {@see CSSPageRule}. 277 * @type {number} 278 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSRule-ruleType 279 */ 280 CSSRule.PAGE_RULE = 6; 281 282 /** 283 * @constructor 284 * @extends {CSSRule} 285 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSStyleRule 286 */ 287 function CSSStyleRule() {} 288 289 /** 290 * @type {string} 291 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSStyleRule-selectorText 292 */ 293 CSSStyleRule.prototype.selectorText; 294 295 /** 296 * @type {CSSStyleDeclaration} 297 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSStyleRule-style 298 */ 299 CSSStyleRule.prototype.style; 300 301 /** 302 * @constructor 303 * @extends {CSSRule} 304 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSMediaRule 305 */ 306 function CSSMediaRule() {} 307 308 /** 309 * @type {MediaList} 310 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSMediaRule-mediaTypes 311 */ 312 CSSMediaRule.prototype.media; 313 314 /** 315 * @type {CSSRuleList} 316 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSMediaRule-cssRules 317 */ 318 CSSMediaRule.prototype.cssRules; 319 320 /** 321 * @param {string} rule 322 * @param {number} index 323 * @return {number} 324 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSMediaRule-insertRule 325 */ 326 CSSMediaRule.prototype.insertRule = function(rule, index) {}; 327 328 /** 329 * @param {number} index 330 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSMediaRule-deleteRule 331 */ 332 CSSMediaRule.prototype.deleteRule = function(index) {}; 333 334 /** 335 * @constructor 336 * @extends {CSSRule} 337 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSFontFaceRule 338 */ 339 function CSSFontFaceRule() {} 340 341 /** 342 * @type {CSSStyleDeclaration} 343 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSFontFaceRule-style 344 */ 345 CSSFontFaceRule.prototype.style; 346 347 /** 348 * @constructor 349 * @extends {CSSRule} 350 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSPageRule 351 */ 352 function CSSPageRule() {} 353 354 /** 355 * @type {string} 356 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSPageRule-name 357 */ 358 CSSPageRule.prototype.selectorText; 359 360 /** 361 * @type {CSSStyleDeclaration} 362 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSPageRule-style 363 */ 364 CSSPageRule.prototype.style; 365 366 /** 367 * @constructor 368 * @extends {CSSRule} 369 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSImportRule 370 */ 371 function CSSImportRule() {} 372 373 /** 374 * @type {string} 375 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSImportRule-href 376 */ 377 CSSImportRule.prototype.href; 378 379 /** 380 * @type {MediaList} 381 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSImportRule-media 382 */ 383 CSSImportRule.prototype.media; 384 385 /** 386 * @type {CSSStyleSheet} 387 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSImportRule-styleSheet 388 */ 389 CSSImportRule.prototype.styleSheet; 390 391 /** 392 * @constructor 393 * @extends {CSSRule} 394 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSCharsetRule 395 */ 396 function CSSCharsetRule() {} 397 398 /** 399 * @type {string} 400 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSCharsetRule-encoding 401 */ 402 CSSCharsetRule.prototype.encoding; 403 404 /** 405 * @constructor 406 * @extends {CSSRule} 407 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSUnknownRule 408 */ 409 function CSSUnknownRule() {} 410 411 /** 412 * @constructor 413 * @extends {CSSProperties} 414 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSStyleDeclaration 415 */ 416 function CSSStyleDeclaration() {} 417 418 /** 419 * @type {string} 420 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSStyleDeclaration-cssText 421 */ 422 CSSStyleDeclaration.prototype.cssText; 423 424 /** 425 * @type {number} 426 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSStyleDeclaration-length 427 */ 428 CSSStyleDeclaration.prototype.length; 429 430 /** 431 * @type {CSSRule} 432 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSStyleDeclaration-parentRule 433 */ 434 CSSStyleDeclaration.prototype.parentRule; 435 436 /** 437 * @param {string} propertyName 438 * @return {CSSValue} 439 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSStyleDeclaration-getPropertyCSSValue 440 */ 441 CSSStyleDeclaration.prototype.getPropertyCSSValue = function(propertyName) {}; 442 443 /** 444 * @param {string} propertyName 445 * @return {string} 446 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSStyleDeclaration-getPropertyPriority 447 */ 448 CSSStyleDeclaration.prototype.getPropertyPriority = function(propertyName) {}; 449 450 /** 451 * @param {string} propertyName 452 * @return {string} 453 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSStyleDeclaration-getPropertyValue 454 */ 455 CSSStyleDeclaration.prototype.getPropertyValue = function(propertyName) {}; 456 457 /** 458 * @param {number} index 459 * @return {string} 460 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSStyleDeclaration-item 461 */ 462 CSSStyleDeclaration.prototype.item = function(index) {}; 463 464 /** 465 * @param {string} propertyName 466 * @return {string} 467 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSStyleDeclaration-removeProperty 468 */ 469 CSSStyleDeclaration.prototype.removeProperty = function(propertyName) {}; 470 471 /** 472 * @param {string} propertyName 473 * @param {string} value 474 * @param {string=} opt_priority 475 * @return {undefined} 476 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSStyleDeclaration-setProperty 477 */ 478 CSSStyleDeclaration.prototype.setProperty = function(propertyName, value, opt_priority) {}; 479 480 // IE-specific 481 482 /** 483 * @param {string} name 484 * @param {number=} opt_flags 485 * @return {string|number|boolean|null} 486 * @see http://msdn.microsoft.com/en-us/library/ms536429(VS.85).aspx 487 */ 488 CSSStyleDeclaration.prototype.getAttribute = function(name, opt_flags) {}; 489 490 /** 491 * @param {string} name 492 * @return {string|number|boolean|null} 493 * @see http://msdn.microsoft.com/en-us/library/aa358797(VS.85).aspx 494 */ 495 CSSStyleDeclaration.prototype.getExpression = function(name) {}; 496 497 /** 498 * @param {string} name 499 * @param {number=} opt_flags 500 * @return {boolean} 501 * @see http://msdn.microsoft.com/en-us/library/ms536696(VS.85).aspx 502 */ 503 CSSStyleDeclaration.prototype.removeAttribute = 504 function(name, opt_flags) {}; 505 506 /** 507 * @param {string} name 508 * @return {boolean} 509 * @see http://msdn.microsoft.com/en-us/library/aa358798(VS.85).aspx 510 */ 511 CSSStyleDeclaration.prototype.removeExpression = function(name) {}; 512 513 /** 514 * @param {string} name 515 * @param {*} value 516 * @param {number=} opt_flags 517 * @see http://msdn.microsoft.com/en-us/library/ms536739(VS.85).aspx 518 */ 519 CSSStyleDeclaration.prototype.setAttribute = function(name, value, opt_flags) {}; 520 521 /** 522 * @param {string} name 523 * @param {string} expr 524 * @param {string=} opt_language 525 * @return {undefined} 526 * @see http://msdn.microsoft.com/en-us/library/ms531196(VS.85).aspx 527 */ 528 CSSStyleDeclaration.prototype.setExpression = 529 function(name, expr, opt_language) {}; 530 531 532 /** 533 * @constructor 534 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSValue 535 */ 536 function CSSValue() {} 537 538 /** 539 * @type {string} 540 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSValue-cssText 541 */ 542 CSSValue.prototype.cssText; 543 544 /** 545 * @type {number} 546 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSValue-cssValueType 547 */ 548 CSSValue.prototype.cssValueType; 549 550 /** 551 * @type {number} 552 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSValue-types 553 */ 554 CSSValue.CSS_INHERIT = 0; 555 556 /** 557 * @type {number} 558 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSValue-types 559 */ 560 CSSValue.CSS_PRIMITIVE_VALUE = 1; 561 562 /** 563 * @type {number} 564 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSValue-types 565 */ 566 CSSValue.CSS_VALUE_LIST = 2; 567 568 /** 569 * @type {number} 570 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSValue-types 571 */ 572 CSSValue.CSS_CUSTOM = 3; 573 574 /** 575 * @constructor 576 * @extends {CSSValue} 577 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSPrimitiveValue 578 */ 579 function CSSPrimitiveValue() {} 580 581 /** 582 * @type {number} 583 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSPrimitiveValue 584 */ 585 CSSPrimitiveValue.prototype.primitiveType; 586 587 /** 588 * @type {number} 589 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSPrimitiveValue 590 */ 591 CSSPrimitiveValue.CSS_UNKNOWN = 0; 592 593 /** 594 * @type {number} 595 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSPrimitiveValue 596 */ 597 CSSPrimitiveValue.CSS_NUMBER = 1; 598 599 /** 600 * @type {number} 601 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSPrimitiveValue 602 */ 603 CSSPrimitiveValue.CSS_PERCENTAGE = 2; 604 605 /** 606 * @type {number} 607 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSPrimitiveValue 608 */ 609 CSSPrimitiveValue.CSS_EMS = 3; 610 611 /** 612 * @type {number} 613 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSPrimitiveValue 614 */ 615 CSSPrimitiveValue.CSS_EXS = 4; 616 617 /** 618 * @type {number} 619 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSPrimitiveValue 620 */ 621 CSSPrimitiveValue.CSS_PX = 5; 622 623 /** 624 * @type {number} 625 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSPrimitiveValue 626 */ 627 CSSPrimitiveValue.CSS_CM = 6; 628 629 /** 630 * @type {number} 631 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSPrimitiveValue 632 */ 633 CSSPrimitiveValue.CSS_MM = 7; 634 635 /** 636 * @type {number} 637 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSPrimitiveValue 638 */ 639 CSSPrimitiveValue.CSS_IN = 8; 640 641 /** 642 * @type {number} 643 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSPrimitiveValue 644 */ 645 CSSPrimitiveValue.CSS_PT = 9; 646 647 /** 648 * @type {number} 649 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSPrimitiveValue 650 */ 651 CSSPrimitiveValue.CSS_PC = 10; 652 653 /** 654 * @type {number} 655 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSPrimitiveValue 656 */ 657 CSSPrimitiveValue.CSS_DEG = 11; 658 659 /** 660 * @type {number} 661 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSPrimitiveValue 662 */ 663 CSSPrimitiveValue.CSS_RAD = 12; 664 665 /** 666 * @type {number} 667 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSPrimitiveValue 668 */ 669 CSSPrimitiveValue.CSS_GRAD = 13; 670 671 /** 672 * @type {number} 673 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSPrimitiveValue 674 */ 675 CSSPrimitiveValue.CSS_MS = 14; 676 677 /** 678 * @type {number} 679 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSPrimitiveValue 680 */ 681 CSSPrimitiveValue.CSS_S = 15; 682 683 /** 684 * @type {number} 685 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSPrimitiveValue 686 */ 687 CSSPrimitiveValue.CSS_HZ = 16; 688 689 /** 690 * @type {number} 691 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSPrimitiveValue 692 */ 693 CSSPrimitiveValue.CSS_KHZ = 17; 694 695 /** 696 * @type {number} 697 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSPrimitiveValue 698 */ 699 CSSPrimitiveValue.CSS_DIMENSION = 18; 700 701 /** 702 * @type {number} 703 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSPrimitiveValue 704 */ 705 CSSPrimitiveValue.CSS_STRING = 19; 706 707 /** 708 * @type {number} 709 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSPrimitiveValue 710 */ 711 CSSPrimitiveValue.CSS_URI = 20; 712 713 /** 714 * @type {number} 715 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSPrimitiveValue 716 */ 717 CSSPrimitiveValue.CSS_IDENT = 21; 718 719 /** 720 * @type {number} 721 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSPrimitiveValue 722 */ 723 CSSPrimitiveValue.CSS_ATTR = 22; 724 725 /** 726 * @type {number} 727 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSPrimitiveValue 728 */ 729 CSSPrimitiveValue.CSS_COUNTER = 23; 730 731 /** 732 * @type {number} 733 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSPrimitiveValue 734 */ 735 CSSPrimitiveValue.CSS_RECT = 24; 736 737 /** 738 * @type {number} 739 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSPrimitiveValue 740 */ 741 CSSPrimitiveValue.CSS_RGBCOLOR = 25; 742 743 /** 744 * @return {Counter} 745 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSPrimitiveValue-getCounterValue 746 * @throws DOMException {@see DomException.INVALID_ACCESS_ERR} 747 */ 748 CSSPrimitiveValue.prototype.getCounterValue = function() {}; 749 750 /** 751 * @param {number} unitType 752 * @return {number} 753 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSPrimitiveValue-getFloatValue 754 * @throws DOMException {@see DomException.INVALID_ACCESS_ERR} 755 */ 756 CSSPrimitiveValue.prototype.getFloatValue = function(unitType) {}; 757 758 /** 759 * @return {RGBColor} 760 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSPrimitiveValue-getRGBColorValue 761 * @throws DOMException {@see DomException.INVALID_ACCESS_ERR} 762 */ 763 CSSPrimitiveValue.prototype.getRGBColorValue = function() {}; 764 765 /** 766 * @return {Rect} 767 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSPrimitiveValue-getRectValue 768 * @throws DOMException {@see DomException.INVALID_ACCESS_ERR} 769 */ 770 CSSPrimitiveValue.prototype.getRectValue = function() {}; 771 772 /** 773 * @return {string} 774 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSPrimitiveValue-getStringValue 775 * @throws DOMException {@see DomException.INVALID_ACCESS_ERR} 776 */ 777 CSSPrimitiveValue.prototype.getStringValue = function() {}; 778 779 /** 780 * @param {number} unitType 781 * @param {number} floatValue 782 * @return {undefined} 783 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSPrimitiveValue-setFloatValue 784 * @throws DOMException {@see DomException.INVALID_ACCESS_ERR}, 785 * {@see DomException.NO_MODIFICATION_ALLOWED_ERR} 786 */ 787 CSSPrimitiveValue.prototype.setFloatValue = function(unitType, floatValue) {}; 788 789 /** 790 * @param {number} stringType 791 * @param {string} stringValue 792 * @return {undefined} 793 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSPrimitiveValue-setStringValue 794 * @throws DOMException {@see DomException.INVALID_ACCESS_ERR}, 795 * {@see DomException.NO_MODIFICATION_ALLOWED_ERR} 796 */ 797 CSSPrimitiveValue.prototype.setStringValue = function(stringType, stringValue) {}; 798 799 /** 800 * @constructor 801 * @extends {CSSValue} 802 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSValueList 803 */ 804 function CSSValueList() {} 805 806 /** 807 * @type {number} 808 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSValueList-length 809 */ 810 CSSValueList.prototype.length; 811 812 /** 813 * @param {number} index 814 * @return {CSSValue} 815 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSValueList-item 816 */ 817 CSSValueList.prototype.item = function(index) {}; 818 819 /** 820 * @constructor 821 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-RGBColor 822 */ 823 function RGBColor() {} 824 825 /** 826 * @type {CSSPrimitiveValue} 827 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-RGBColor-red 828 */ 829 RGBColor.prototype.red; 830 831 /** 832 * @type {CSSPrimitiveValue} 833 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-RGBColor-green 834 */ 835 RGBColor.prototype.green; 836 837 /** 838 * @type {CSSPrimitiveValue} 839 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-RGBColor-blue 840 */ 841 RGBColor.prototype.blue; 842 843 /** 844 * @constructor 845 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-Rect 846 */ 847 function Rect() {} 848 849 /** 850 * @type {CSSPrimitiveValue} 851 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-Rect-top 852 */ 853 Rect.prototype.top; 854 855 /** 856 * @type {CSSPrimitiveValue} 857 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-Rect-right 858 */ 859 Rect.prototype.right; 860 861 /** 862 * @type {CSSPrimitiveValue} 863 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-Rect-bottom 864 */ 865 Rect.prototype.bottom; 866 867 /** 868 * @type {CSSPrimitiveValue} 869 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-Rect-left 870 */ 871 Rect.prototype.left; 872 873 /** 874 * @constructor 875 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-Counter 876 */ 877 function Counter() {} 878 879 /** 880 * @type {string} 881 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-Counter-identifier 882 */ 883 Counter.prototype.identifier; 884 885 /** 886 * @type {string} 887 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-Counter-listStyle 888 */ 889 Counter.prototype.listStyle; 890 891 /** 892 * @type {string} 893 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-Counter-separator 894 */ 895 Counter.prototype.separator; 896 897 /** 898 * @constructor 899 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-ViewCSS 900 */ 901 function ViewCSS() {} 902 903 /** 904 * @param {Element} elt 905 * @param {?string=} opt_pseudoElt This argument is required according to the 906 * CSS2 specification, but optional in all major browsers. See the note at 907 * https://developer.mozilla.org/en-US/docs/Web/API/Window.getComputedStyle 908 * @return {CSSStyleDeclaration} 909 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSview-getComputedStyle 910 */ 911 ViewCSS.prototype.getComputedStyle = function(elt, opt_pseudoElt) {}; 912 913 /** 914 * @constructor 915 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-DocumentCSS 916 */ 917 function DocumentCSS() {} 918 919 /** 920 * @param {Element} elt 921 * @param {string} pseudoElt 922 * @return {CSSStyleDeclaration} 923 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-DocumentCSS-getOverrideStyle 924 */ 925 DocumentCSS.prototype.getOverrideStyle = function(elt, pseudoElt) {}; 926 927 /** 928 * @constructor 929 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-DOMImplementationCSS 930 */ 931 function DOMImplementationCSS() {} 932 933 /** 934 * @param {string} title 935 * @param {string} media 936 * @return {CSSStyleSheet} 937 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-DOMImplementationCSS-createCSSStyleSheet 938 * @throws DOMException {@see DomException.SYNTAX_ERR} 939 */ 940 DOMImplementationCSS.prototype.createCSSStyleSheet = function(title, media) {}; 941 942 /** 943 * @constructor 944 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-ElementCSSInlineStyle 945 */ 946 function ElementCSSInlineStyle() {} 947 948 /** 949 * @type {CSSStyleDeclaration} 950 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-ElementCSSInlineStyle-style 951 */ 952 ElementCSSInlineStyle.prototype.style; 953 954 /** 955 * @constructor 956 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties 957 */ 958 function CSSProperties() {} 959 960 // CSS 2 properties 961 962 /** 963 * @type {string} 964 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-azimuth 965 */ 966 CSSProperties.prototype.azimuth; 967 968 /** 969 * @type {string} 970 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-background 971 */ 972 CSSProperties.prototype.background; 973 974 /** 975 * @type {string} 976 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-backgroundAttachment 977 */ 978 CSSProperties.prototype.backgroundAttachment; 979 980 /** 981 * @type {string} 982 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-backgroundColor 983 */ 984 CSSProperties.prototype.backgroundColor; 985 986 /** 987 * @type {string} 988 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-backgroundImage 989 */ 990 CSSProperties.prototype.backgroundImage; 991 992 /** 993 * @type {string} 994 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-backgroundPosition 995 */ 996 CSSProperties.prototype.backgroundPosition; 997 998 /** 999 * @type {string} 1000 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-backgroundRepeat 1001 */ 1002 CSSProperties.prototype.backgroundRepeat; 1003 1004 /** 1005 * @type {string} 1006 * @see http://www.w3.org/TR/css3-background/#the-background-size 1007 */ 1008 CSSProperties.prototype.backgroundSize; 1009 1010 /** 1011 * @implicitCast 1012 * @type {string} 1013 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-border 1014 */ 1015 CSSProperties.prototype.border; 1016 1017 /** 1018 * @type {string} 1019 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-borderCollapse 1020 */ 1021 CSSProperties.prototype.borderCollapse; 1022 1023 /** 1024 * @type {string} 1025 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-borderColor 1026 */ 1027 CSSProperties.prototype.borderColor; 1028 1029 /** 1030 * @type {string} 1031 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-borderSpacing 1032 */ 1033 CSSProperties.prototype.borderSpacing; 1034 1035 /** 1036 * @type {string} 1037 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSPrimitiveValue-borderStyle 1038 */ 1039 CSSProperties.prototype.borderStyle; 1040 1041 /** 1042 * @type {string} 1043 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-borderTop 1044 */ 1045 CSSProperties.prototype.borderTop; 1046 1047 /** 1048 * @type {string} 1049 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-borderRight 1050 */ 1051 CSSProperties.prototype.borderRight; 1052 1053 /** 1054 * @type {string} 1055 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-borderBottom 1056 */ 1057 CSSProperties.prototype.borderBottom; 1058 1059 /** 1060 * @type {string} 1061 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-borderLeft 1062 */ 1063 CSSProperties.prototype.borderLeft; 1064 1065 /** 1066 * @type {string} 1067 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-borderTopColor 1068 */ 1069 CSSProperties.prototype.borderTopColor; 1070 1071 /** 1072 * @type {string} 1073 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-borderRightColor 1074 */ 1075 CSSProperties.prototype.borderRightColor; 1076 1077 /** 1078 * @type {string} 1079 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-borderBottomColor 1080 */ 1081 CSSProperties.prototype.borderBottomColor; 1082 1083 /** 1084 * @type {string} 1085 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-borderLeftColor 1086 */ 1087 CSSProperties.prototype.borderLeftColor; 1088 1089 /** 1090 * @type {string} 1091 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-borderTopStyle 1092 */ 1093 CSSProperties.prototype.borderTopStyle; 1094 1095 /** 1096 * @type {string} 1097 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-borderRightStyle 1098 */ 1099 CSSProperties.prototype.borderRightStyle; 1100 1101 /** 1102 * @type {string} 1103 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-borderBottomStyle 1104 */ 1105 CSSProperties.prototype.borderBottomStyle; 1106 1107 /** 1108 * @type {string} 1109 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-borderLeftStyle 1110 */ 1111 CSSProperties.prototype.borderLeftStyle; 1112 1113 /** 1114 * @type {string|number} 1115 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-borderTopWidth 1116 */ 1117 CSSProperties.prototype.borderTopWidth; 1118 1119 /** 1120 * @type {string|number} 1121 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-borderRightWidth 1122 */ 1123 CSSProperties.prototype.borderRightWidth; 1124 1125 /** 1126 * @type {string|number} 1127 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-borderBottomWidth 1128 */ 1129 CSSProperties.prototype.borderBottomWidth; 1130 1131 /** 1132 * @type {string|number} 1133 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-borderLeftWidth 1134 */ 1135 CSSProperties.prototype.borderLeftWidth; 1136 1137 /** 1138 * @type {string|number} 1139 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-borderWidth 1140 */ 1141 CSSProperties.prototype.borderWidth; 1142 1143 /** 1144 * @type {string|number} 1145 * @see http://www.w3.org/TR/css3-background/#the-border-radius 1146 */ 1147 CSSProperties.prototype.borderRadius; 1148 1149 /** 1150 * @type {string|number} 1151 * @see http://www.w3.org/TR/css3-background/#the-border-radius 1152 */ 1153 CSSProperties.prototype.borderBottomLeftRadius; 1154 1155 /** 1156 * @type {string|number} 1157 * @see http://www.w3.org/TR/css3-background/#the-border-radius 1158 */ 1159 CSSProperties.prototype.borderBottomRightRadius; 1160 1161 /** 1162 * @type {string|number} 1163 * @see http://www.w3.org/TR/css3-background/#the-border-radius 1164 */ 1165 CSSProperties.prototype.borderTopLeftRadius; 1166 1167 /** 1168 * @type {string|number} 1169 * @see http://www.w3.org/TR/css3-background/#the-border-radius 1170 */ 1171 CSSProperties.prototype.borderTopRightRadius; 1172 1173 /** 1174 * @type {string|number} 1175 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-bottom 1176 */ 1177 CSSProperties.prototype.bottom; 1178 1179 /** 1180 * @type {string} 1181 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-captionSide 1182 */ 1183 CSSProperties.prototype.captionSide; 1184 1185 /** 1186 * @type {string} 1187 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-clear 1188 */ 1189 CSSProperties.prototype.clear; 1190 1191 /** 1192 * @type {string} 1193 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-clip 1194 */ 1195 CSSProperties.prototype.clip; 1196 1197 /** 1198 * @type {string} 1199 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-color 1200 */ 1201 CSSProperties.prototype.color; 1202 1203 /** 1204 * @type {string} 1205 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-content 1206 */ 1207 CSSProperties.prototype.content; 1208 1209 /** 1210 * @type {string} 1211 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-counterIncrement 1212 */ 1213 CSSProperties.prototype.counterIncrement; 1214 1215 /** 1216 * @type {string} 1217 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-counterReset 1218 */ 1219 CSSProperties.prototype.counterReset; 1220 1221 /** 1222 * This is not an official part of the W3C spec. In practice, this is a settable 1223 * property that works cross-browser. It is used in goog.dom.setProperties() and 1224 * needs to be extern'd so the --disambiguate_properties JS compiler pass works. 1225 * @type {string} 1226 */ 1227 CSSProperties.prototype.cssText; 1228 1229 /** 1230 * @type {string} 1231 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-cue 1232 */ 1233 CSSProperties.prototype.cue; 1234 1235 /** 1236 * @type {string} 1237 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-cueAfter 1238 */ 1239 CSSProperties.prototype.cueAfter; 1240 1241 /** 1242 * @type {string} 1243 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-cueBefore 1244 */ 1245 CSSProperties.prototype.cueBefore; 1246 1247 /** 1248 * @type {string} 1249 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-cursor 1250 */ 1251 CSSProperties.prototype.cursor; 1252 1253 /** 1254 * @type {string} 1255 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-direction 1256 */ 1257 CSSProperties.prototype.direction; 1258 1259 /** 1260 * @type {string} 1261 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-display 1262 */ 1263 CSSProperties.prototype.display; 1264 1265 /** 1266 * @type {string} 1267 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-elevation 1268 */ 1269 CSSProperties.prototype.elevation; 1270 1271 /** 1272 * @type {string} 1273 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-emptyCells 1274 */ 1275 CSSProperties.prototype.emptyCells; 1276 1277 /** 1278 * @type {string} 1279 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-cssFloat 1280 */ 1281 CSSProperties.prototype.cssFloat; 1282 1283 /** 1284 * @type {string} 1285 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-font 1286 */ 1287 CSSProperties.prototype.font; 1288 1289 /** 1290 * @type {string} 1291 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-fontFamily 1292 */ 1293 CSSProperties.prototype.fontFamily; 1294 1295 /** 1296 * @type {string|number} 1297 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-fontSize 1298 */ 1299 CSSProperties.prototype.fontSize; 1300 1301 /** 1302 * @type {string} 1303 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-fontSizeAdjust 1304 */ 1305 CSSProperties.prototype.fontSizeAdjust; 1306 1307 /** 1308 * @type {string} 1309 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-fontStretch 1310 */ 1311 CSSProperties.prototype.fontStretch; 1312 1313 /** 1314 * @type {string} 1315 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-fontStyle 1316 */ 1317 CSSProperties.prototype.fontStyle; 1318 1319 /** 1320 * @type {string} 1321 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-fontVariant 1322 */ 1323 CSSProperties.prototype.fontVariant; 1324 1325 /** 1326 * @type {string} 1327 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-fontWeight 1328 */ 1329 CSSProperties.prototype.fontWeight; 1330 1331 /** 1332 * @type {string|number} 1333 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-height 1334 */ 1335 CSSProperties.prototype.height; 1336 1337 /** 1338 * @type {string|number} 1339 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-left 1340 */ 1341 CSSProperties.prototype.left; 1342 1343 /** 1344 * @type {string} 1345 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-letterSpacing 1346 */ 1347 CSSProperties.prototype.letterSpacing; 1348 1349 /** 1350 * @type {string|number} 1351 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-lineHeight 1352 */ 1353 CSSProperties.prototype.lineHeight; 1354 1355 /** 1356 * @type {string} 1357 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-listStyle 1358 */ 1359 CSSProperties.prototype.listStyle; 1360 1361 /** 1362 * @type {string} 1363 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-listStyleImage 1364 */ 1365 CSSProperties.prototype.listStyleImage; 1366 1367 /** 1368 * @type {string} 1369 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-listStylePosition 1370 */ 1371 CSSProperties.prototype.listStylePosition; 1372 1373 /** 1374 * @type {string} 1375 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-listStyleType 1376 */ 1377 CSSProperties.prototype.listStyleType; 1378 1379 /** 1380 * @type {string|number} 1381 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-margin 1382 */ 1383 CSSProperties.prototype.margin; 1384 1385 /** 1386 * @type {string|number} 1387 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-marginTop 1388 */ 1389 CSSProperties.prototype.marginTop; 1390 1391 /** 1392 * @type {string|number} 1393 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-marginRight 1394 */ 1395 CSSProperties.prototype.marginRight; 1396 1397 /** 1398 * @type {string|number} 1399 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-marginBottom 1400 */ 1401 CSSProperties.prototype.marginBottom; 1402 1403 /** 1404 * @type {string|number} 1405 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-marginLeft 1406 */ 1407 CSSProperties.prototype.marginLeft; 1408 1409 /** 1410 * @type {string} 1411 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-markerOffset 1412 */ 1413 CSSProperties.prototype.markerOffset; 1414 1415 /** 1416 * @type {string} 1417 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-marks 1418 */ 1419 CSSProperties.prototype.marks; 1420 1421 /** 1422 * @type {string|number} 1423 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-maxHeight 1424 */ 1425 CSSProperties.prototype.maxHeight; 1426 1427 /** 1428 * @type {string|number} 1429 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-maxWidth 1430 */ 1431 CSSProperties.prototype.maxWidth; 1432 1433 /** 1434 * @type {string|number} 1435 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-minHeight 1436 */ 1437 CSSProperties.prototype.minHeight; 1438 1439 /** 1440 * @type {string|number} 1441 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-minWidth 1442 */ 1443 CSSProperties.prototype.minWidth; 1444 1445 /** 1446 * @type {string} 1447 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-orphans 1448 */ 1449 CSSProperties.prototype.orphans; 1450 1451 /** 1452 * @type {string} 1453 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-outline 1454 */ 1455 CSSProperties.prototype.outline; 1456 1457 /** 1458 * @type {string} 1459 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-outlineColor 1460 */ 1461 CSSProperties.prototype.outlineColor; 1462 1463 /** 1464 * @type {string} 1465 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-outlineStyle 1466 */ 1467 CSSProperties.prototype.outlineStyle; 1468 1469 /** 1470 * @type {string|number} 1471 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-outlineWidth 1472 */ 1473 CSSProperties.prototype.outlineWidth; 1474 1475 /** 1476 * @type {string} 1477 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-overflow 1478 */ 1479 CSSProperties.prototype.overflow; 1480 1481 /** 1482 * @type {string|number} 1483 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-padding 1484 */ 1485 CSSProperties.prototype.padding; 1486 1487 /** 1488 * @type {string|number} 1489 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-paddingTop 1490 */ 1491 CSSProperties.prototype.paddingTop; 1492 1493 /** 1494 * @type {string|number} 1495 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-paddingRight 1496 */ 1497 CSSProperties.prototype.paddingRight; 1498 1499 /** 1500 * @type {string|number} 1501 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-paddingBottom 1502 */ 1503 CSSProperties.prototype.paddingBottom; 1504 1505 /** 1506 * @type {string|number} 1507 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-paddingLeft 1508 */ 1509 CSSProperties.prototype.paddingLeft; 1510 1511 /** 1512 * @type {string} 1513 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-page 1514 */ 1515 CSSProperties.prototype.page; 1516 1517 /** 1518 * @type {string} 1519 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-pageBreakAfter 1520 */ 1521 CSSProperties.prototype.pageBreakAfter; 1522 1523 /** 1524 * @type {string} 1525 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-pageBreakBefore 1526 */ 1527 CSSProperties.prototype.pageBreakBefore; 1528 1529 /** 1530 * @type {string} 1531 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-pageBreakInside 1532 */ 1533 CSSProperties.prototype.pageBreakInside; 1534 1535 /** 1536 * @type {string} 1537 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-pause 1538 */ 1539 CSSProperties.prototype.pause; 1540 1541 /** 1542 * @type {string} 1543 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-pauseAfter 1544 */ 1545 CSSProperties.prototype.pauseAfter; 1546 1547 /** 1548 * @type {string} 1549 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-pauseBefore 1550 */ 1551 CSSProperties.prototype.pauseBefore; 1552 1553 /** 1554 * @type {string} 1555 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-pitch 1556 */ 1557 CSSProperties.prototype.pitch; 1558 1559 /** 1560 * @type {string} 1561 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-pitchRange 1562 */ 1563 CSSProperties.prototype.pitchRange; 1564 1565 /** 1566 * @type {string} 1567 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-playDuring 1568 */ 1569 CSSProperties.prototype.playDuring; 1570 1571 /** 1572 * @type {string} 1573 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-position 1574 */ 1575 CSSProperties.prototype.position; 1576 1577 /** 1578 * @type {string} 1579 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-quotes 1580 */ 1581 CSSProperties.prototype.quotes; 1582 1583 /** 1584 * @type {string} 1585 * @see http://www.w3.org/TR/css3-ui/#resize 1586 */ 1587 CSSProperties.prototype.resize; 1588 1589 /** 1590 * @type {string} 1591 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-richness 1592 */ 1593 CSSProperties.prototype.richness; 1594 1595 /** 1596 * @type {string|number} 1597 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-right 1598 */ 1599 CSSProperties.prototype.right; 1600 1601 /** 1602 * @type {string} 1603 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-size 1604 */ 1605 CSSProperties.prototype.size; 1606 1607 /** 1608 * @type {string} 1609 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-speak 1610 */ 1611 CSSProperties.prototype.speak; 1612 1613 /** 1614 * @type {string} 1615 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-speakHeader 1616 */ 1617 CSSProperties.prototype.speakHeader; 1618 1619 /** 1620 * @type {string} 1621 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-speakNumeral 1622 */ 1623 CSSProperties.prototype.speakNumeral; 1624 1625 /** 1626 * @type {string} 1627 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-speakPunctuation 1628 */ 1629 CSSProperties.prototype.speakPunctuation; 1630 1631 /** 1632 * @type {string} 1633 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-speechRate 1634 */ 1635 CSSProperties.prototype.speechRate; 1636 1637 /** 1638 * @type {string} 1639 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-stress 1640 */ 1641 CSSProperties.prototype.stress; 1642 1643 /** 1644 * @type {string} 1645 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-tableLayout 1646 */ 1647 CSSProperties.prototype.tableLayout; 1648 1649 /** 1650 * @type {string} 1651 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-textAlign 1652 */ 1653 CSSProperties.prototype.textAlign; 1654 1655 /** 1656 * @type {string} 1657 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-textDecoration 1658 */ 1659 CSSProperties.prototype.textDecoration; 1660 1661 /** 1662 * @type {string} 1663 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-textIndent 1664 */ 1665 CSSProperties.prototype.textIndent; 1666 1667 /** 1668 * @type {string} 1669 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-textShadow 1670 */ 1671 CSSProperties.prototype.textShadow; 1672 1673 /** 1674 * @type {string} 1675 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-textTransform 1676 */ 1677 CSSProperties.prototype.textTransform; 1678 1679 /** 1680 * @type {string|number} 1681 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-top 1682 */ 1683 CSSProperties.prototype.top; 1684 1685 /** 1686 * @type {string} 1687 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-unicodeBidi 1688 */ 1689 CSSProperties.prototype.unicodeBidi; 1690 1691 /** 1692 * @type {string} 1693 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-verticalAlign 1694 */ 1695 CSSProperties.prototype.verticalAlign; 1696 1697 /** 1698 * @type {string} 1699 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-visibility 1700 */ 1701 CSSProperties.prototype.visibility; 1702 1703 /** 1704 * @type {string} 1705 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-voiceFamily 1706 */ 1707 CSSProperties.prototype.voiceFamily; 1708 1709 /** 1710 * @type {string} 1711 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-volume 1712 */ 1713 CSSProperties.prototype.volume; 1714 1715 /** 1716 * @type {string} 1717 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-whiteSpace 1718 */ 1719 CSSProperties.prototype.whiteSpace; 1720 1721 /** 1722 * @type {string} 1723 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-widows 1724 */ 1725 CSSProperties.prototype.widows; 1726 1727 /** 1728 * @type {string|number} 1729 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-width 1730 */ 1731 CSSProperties.prototype.width; 1732 1733 /** 1734 * @type {string} 1735 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-wordSpacing 1736 */ 1737 CSSProperties.prototype.wordSpacing; 1738 1739 /** 1740 * @type {string} 1741 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-wordWrap 1742 */ 1743 CSSProperties.prototype.wordWrap; 1744 1745 /** 1746 * @type {string|number} 1747 * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSProperties-zIndex 1748 */ 1749 CSSProperties.prototype.zIndex; 1750 1751 // CSS 3 properties 1752 1753 /** 1754 * @type {string} 1755 * @see http://www.w3.org/TR/css3-background/#box-shadow 1756 */ 1757 CSSProperties.prototype.boxShadow; 1758 1759 /** 1760 * @type {string} 1761 * @see http://www.w3.org/TR/css3-ui/#box-sizing 1762 */ 1763 CSSProperties.prototype.boxSizing; 1764 1765 /** 1766 * @type {string|number} 1767 * @see http://www.w3.org/TR/css3-color/#transparency 1768 */ 1769 CSSProperties.prototype.opacity; 1770 1771 /** 1772 * @type {string} 1773 * @see http://www.w3.org/TR/css3-ui/#text-overflow 1774 */ 1775 CSSProperties.prototype.textOverflow; 1776 1777 // CSS 3 transforms 1778 1779 /** 1780 * @type {string} 1781 * @see http://www.w3.org/TR/css3-2d-transforms/#backface-visibility-property 1782 */ 1783 CSSProperties.prototype.backfaceVisibility; 1784 1785 /** 1786 * @type {string} 1787 * @see http://www.w3.org/TR/css3-2d-transforms/#perspective 1788 */ 1789 CSSProperties.prototype.perspective; 1790 1791 /** 1792 * @type {string|number} 1793 * @see http://www.w3.org/TR/css3-2d-transforms/#perspective-origin 1794 */ 1795 CSSProperties.prototype.perspectiveOrigin; 1796 1797 /** 1798 * @type {string} 1799 * @see http://www.w3.org/TR/css3-2d-transforms/#effects 1800 */ 1801 CSSProperties.prototype.transform; 1802 1803 /** 1804 * @type {string|number} 1805 * @see http://www.w3.org/TR/css3-2d-transforms/#transform-origin 1806 */ 1807 CSSProperties.prototype.transformOrigin; 1808 1809 /** 1810 * @type {string} 1811 * @see http://www.w3.org/TR/css3-2d-transforms/#transform-style 1812 */ 1813 CSSProperties.prototype.transformStyle; 1814 1815 // CSS 3 transitions 1816 1817 /** 1818 * @type {string} 1819 * @see http://www.w3.org/TR/css3-transitions/#transition 1820 */ 1821 CSSProperties.prototype.transition; 1822 1823 /** 1824 * @type {string} 1825 * @see http://www.w3.org/TR/css3-transitions/#transition-delay 1826 */ 1827 CSSProperties.prototype.transitionDelay; 1828 1829 /** 1830 * @type {string} 1831 * @see http://www.w3.org/TR/css3-transitions/#transition-duration 1832 */ 1833 CSSProperties.prototype.transitionDuration; 1834 1835 /** 1836 * @type {string} 1837 * @see http://www.w3.org/TR/css3-transitions/#transition-property-property 1838 */ 1839 CSSProperties.prototype.transitionProperty; 1840 1841 /** 1842 * @type {string} 1843 * @see http://www.w3.org/TR/css3-transitions/#transition-timing-function 1844 */ 1845 CSSProperties.prototype.transitionTimingFunction; 1846 1847 /** 1848 * @type {string} 1849 * @see http://www.w3.org/TR/SVG11/interact.html#PointerEventsProperty 1850 */ 1851 CSSProperties.prototype.pointerEvents; 1852 1853 /** 1854 * TODO(dbeam): Put this in separate file named w3c_cssom.js. 1855 * Externs for the CSSOM View Module. 1856 * @see http://www.w3.org/TR/cssom-view/ 1857 */ 1858 1859 // http://www.w3.org/TR/cssom-view/#extensions-to-the-window-interface 1860 1861 /** 1862 * @param {string} media_query_list 1863 * @return {MediaQueryList} 1864 * @see http://www.w3.org/TR/cssom-view/#dom-window-matchmedia 1865 */ 1866 Window.prototype.matchMedia = function(media_query_list) {}; 1867 1868 /** 1869 * @type {number} 1870 * @see http://www.w3.org/TR/cssom-view/#dom-window-innerwidth 1871 */ 1872 Window.prototype.innerWidth; 1873 1874 /** 1875 * @type {number} 1876 * @see http://www.w3.org/TR/cssom-view/#dom-window-innerheight 1877 */ 1878 Window.prototype.innerHeight; 1879 1880 /** 1881 * @type {number} 1882 * @see http://www.w3.org/TR/cssom-view/#dom-window-scrollx 1883 */ 1884 Window.prototype.scrollX; 1885 1886 /** 1887 * @type {number} 1888 * @see http://www.w3.org/TR/cssom-view/#dom-window-pagexoffset 1889 */ 1890 Window.prototype.pageXOffset; 1891 1892 /** 1893 * @type {number} 1894 * @see http://www.w3.org/TR/cssom-view/#dom-window-scrolly 1895 */ 1896 Window.prototype.scrollY; 1897 1898 /** 1899 * @type {number} 1900 * @see http://www.w3.org/TR/cssom-view/#dom-window-pageyoffset 1901 */ 1902 Window.prototype.pageYOffset; 1903 1904 /** 1905 * @param {number} x 1906 * @param {number} y 1907 * @see http://www.w3.org/TR/cssom-view/#dom-window-scroll 1908 */ 1909 Window.prototype.scroll = function(x, y) {}; 1910 1911 /** 1912 * @param {number} x 1913 * @param {number} y 1914 * @see http://www.w3.org/TR/cssom-view/#dom-window-scrollto 1915 */ 1916 Window.prototype.scrollTo = function(x, y) {}; 1917 1918 /** 1919 * @param {number} x 1920 * @param {number} y 1921 * @see http://www.w3.org/TR/cssom-view/#dom-window-scrollby 1922 */ 1923 Window.prototype.scrollBy = function(x, y) {}; 1924 1925 /** 1926 * @type {number} 1927 * @see http://www.w3.org/TR/cssom-view/#dom-window-screenx 1928 */ 1929 Window.prototype.screenX; 1930 1931 /** 1932 * @type {number} 1933 * @see http://www.w3.org/TR/cssom-view/#dom-window-screeny 1934 */ 1935 Window.prototype.screenY; 1936 1937 /** 1938 * @type {number} 1939 * @see http://www.w3.org/TR/cssom-view/#dom-window-outerwidth 1940 */ 1941 Window.prototype.outerWidth; 1942 1943 /** 1944 * @type {number} 1945 * @see http://www.w3.org/TR/cssom-view/#dom-window-outerheight 1946 */ 1947 Window.prototype.outerHeight; 1948 1949 /** 1950 * @constructor 1951 * @see http://www.w3.org/TR/cssom-view/#mediaquerylist 1952 */ 1953 function MediaQueryList() {} 1954 1955 /** 1956 * @type {string} 1957 * @see http://www.w3.org/TR/cssom-view/#dom-mediaquerylist-media 1958 */ 1959 MediaQueryList.prototype.media; 1960 1961 /** 1962 * @type {boolean} 1963 * @see http://www.w3.org/TR/cssom-view/#dom-mediaquerylist-matches 1964 */ 1965 MediaQueryList.prototype.matches; 1966 1967 /** 1968 * @param {MediaQueryListListener} listener 1969 * @see http://www.w3.org/TR/cssom-view/#dom-mediaquerylist-addlistener 1970 */ 1971 MediaQueryList.prototype.addListener = function(listener) {}; 1972 1973 /** 1974 * @param {MediaQueryListListener} listener 1975 * @see http://www.w3.org/TR/cssom-view/#dom-mediaquerylist-removelistener 1976 */ 1977 MediaQueryList.prototype.removeListener = function(listener) {}; 1978 1979 /** 1980 * @typedef {(function(!MediaQueryList) : void)} 1981 * @see http://www.w3.org/TR/cssom-view/#mediaquerylistlistener 1982 */ 1983 var MediaQueryListListener; 1984 1985 /** 1986 * @constructor 1987 * @see http://www.w3.org/TR/cssom-view/#screen 1988 */ 1989 function Screen() {} 1990 1991 /** 1992 * @type {number} 1993 * @see http://www.w3.org/TR/cssom-view/#dom-screen-availwidth 1994 */ 1995 Screen.prototype.availWidth; 1996 1997 /** 1998 * @type {number} 1999 * @see http://www.w3.org/TR/cssom-view/#dom-screen-availheight 2000 */ 2001 Screen.prototype.availHeight; 2002 2003 /** 2004 * @type {number} 2005 * @see http://www.w3.org/TR/cssom-view/#dom-screen-width 2006 */ 2007 Screen.prototype.width; 2008 2009 /** 2010 * @type {number} 2011 * @see http://www.w3.org/TR/cssom-view/#dom-screen-height 2012 */ 2013 Screen.prototype.height; 2014 2015 /** 2016 * @type {number} 2017 * @see http://www.w3.org/TR/cssom-view/#dom-screen-colordepth 2018 */ 2019 Screen.prototype.colorDepth; 2020 2021 /** 2022 * @type {number} 2023 * @see http://www.w3.org/TR/cssom-view/#dom-screen-pixeldepth 2024 */ 2025 Screen.prototype.pixelDepth; 2026 2027 2028 // http://www.w3.org/TR/cssom-view/#extensions-to-the-document-interface 2029 2030 /** 2031 * @param {number} x 2032 * @param {number} y 2033 * @return {?Element} 2034 * @see http://www.w3.org/TR/cssom-view/#dom-document-elementfrompoint 2035 */ 2036 Document.prototype.elementFromPoint = function(x, y) {}; 2037 2038 /** 2039 * @param {number} x 2040 * @param {number} y 2041 * @return {CaretPosition} 2042 * @see http://www.w3.org/TR/cssom-view/#dom-document-caretpositionfrompoint 2043 */ 2044 Document.prototype.caretPositionFromPoint = function(x, y) {}; 2045 2046 2047 /** 2048 * @constructor 2049 * @see http://www.w3.org/TR/cssom-view/#caretposition 2050 */ 2051 function CaretPosition() {} 2052 2053 /** 2054 * @type {Node} 2055 * @see http://www.w3.org/TR/cssom-view/#dom-caretposition-offsetnode 2056 */ 2057 CaretPosition.prototype.offsetNode; 2058 2059 /** 2060 * @type {number} 2061 * @see http://www.w3.org/TR/cssom-view/#dom-caretposition-offset 2062 */ 2063 CaretPosition.prototype.offset; 2064 2065 2066 // http://www.w3.org/TR/cssom-view/#extensions-to-the-element-interface 2067 2068 /** 2069 * @return {!ClientRectList} 2070 * @see http://www.w3.org/TR/cssom-view/#dom-element-getclientrects 2071 */ 2072 Element.prototype.getClientRects = function() {}; 2073 2074 /** 2075 * @return {!ClientRect} 2076 * @see http://www.w3.org/TR/cssom-view/#dom-element-getboundingclientrect 2077 */ 2078 Element.prototype.getBoundingClientRect = function() {}; 2079 2080 /** 2081 * @param {boolean=} opt_top 2082 * @see http://www.w3.org/TR/cssom-view/#dom-element-scrollintoview 2083 */ 2084 Element.prototype.scrollIntoView = function(opt_top) {}; 2085 2086 /** 2087 * @type {number} 2088 * @see http://www.w3.org/TR/cssom-view/#dom-element-scrolltop 2089 */ 2090 Element.prototype.scrollTop; 2091 2092 /** 2093 * @type {number} 2094 * @see http://www.w3.org/TR/cssom-view/#dom-element-scrollleft 2095 */ 2096 Element.prototype.scrollLeft; 2097 2098 /** 2099 * @type {number} 2100 * @see http://www.w3.org/TR/cssom-view/#dom-element-scrollwidth 2101 */ 2102 Element.prototype.scrollWidth; 2103 2104 /** 2105 * @type {number} 2106 * @see http://www.w3.org/TR/cssom-view/#dom-element-scrollheight 2107 */ 2108 Element.prototype.scrollHeight; 2109 2110 /** 2111 * @type {number} 2112 * @see http://www.w3.org/TR/cssom-view/#dom-element-clienttop 2113 */ 2114 Element.prototype.clientTop; 2115 2116 /** 2117 * @type {number} 2118 * @see http://www.w3.org/TR/cssom-view/#dom-element-clientleft 2119 */ 2120 Element.prototype.clientLeft; 2121 2122 /** 2123 * @type {number} 2124 * @see http://www.w3.org/TR/cssom-view/#dom-element-clientwidth 2125 */ 2126 Element.prototype.clientWidth; 2127 2128 /** 2129 * @type {number} 2130 * @see http://www.w3.org/TR/cssom-view/#dom-element-clientheight 2131 */ 2132 Element.prototype.clientHeight; 2133 2134 // http://www.w3.org/TR/cssom-view/#extensions-to-the-htmlelement-interface 2135 2136 /** 2137 * @type {Element} 2138 * @see http://www.w3.org/TR/cssom-view/#dom-htmlelement-offsetparent 2139 */ 2140 HTMLElement.prototype.offsetParent; 2141 2142 /** 2143 * @type {number} 2144 * @see http://www.w3.org/TR/cssom-view/#dom-htmlelement-offsettop 2145 */ 2146 HTMLElement.prototype.offsetTop; 2147 2148 /** 2149 * @type {number} 2150 * @see http://www.w3.org/TR/cssom-view/#dom-htmlelement-offsetleft 2151 */ 2152 HTMLElement.prototype.offsetLeft; 2153 2154 /** 2155 * @type {number} 2156 * @see http://www.w3.org/TR/cssom-view/#dom-htmlelement-offsetwidth 2157 */ 2158 HTMLElement.prototype.offsetWidth; 2159 2160 /** 2161 * @type {number} 2162 * @see http://www.w3.org/TR/cssom-view/#dom-htmlelement-offsetheight 2163 */ 2164 HTMLElement.prototype.offsetHeight; 2165 2166 2167 // http://www.w3.org/TR/cssom-view/#extensions-to-the-range-interface 2168 2169 /** 2170 * @return {!ClientRectList} 2171 * @see http://www.w3.org/TR/cssom-view/#dom-range-getclientrects 2172 */ 2173 Range.prototype.getClientRects = function() {}; 2174 2175 /** 2176 * @return {!ClientRect} 2177 * @see http://www.w3.org/TR/cssom-view/#dom-range-getboundingclientrect 2178 */ 2179 Range.prototype.getBoundingClientRect = function() {}; 2180 2181 2182 // http://www.w3.org/TR/cssom-view/#extensions-to-the-mouseevent-interface 2183 2184 // MouseEvent: screen{X,Y} and client{X,Y} are in DOM Level 2/3 Event as well, 2185 // so it seems like a specification issue. I've emailed www-style@w3.org in 2186 // hopes of resolving the conflict, but in the mean time they can live here 2187 // (http://lists.w3.org/Archives/Public/www-style/2012May/0039.html). 2188 2189 /** 2190 * @type {number} 2191 * @see http://www.w3.org/TR/cssom-view/#dom-mouseevent-screenx 2192 */ 2193 //MouseEvent.prototype.screenX; 2194 2195 /** 2196 * @type {number} 2197 * @see http://www.w3.org/TR/cssom-view/#dom-mouseevent-screeny 2198 */ 2199 //MouseEvent.prototype.screenY; 2200 2201 /** 2202 * @type {number} 2203 * @see http://www.w3.org/TR/cssom-view/#dom-mouseevent-pagex 2204 */ 2205 MouseEvent.prototype.pageX; 2206 2207 /** 2208 * @type {number} 2209 * @see http://www.w3.org/TR/cssom-view/#dom-mouseevent-pagey 2210 */ 2211 MouseEvent.prototype.pageY; 2212 2213 /** 2214 * @type {number} 2215 * @see http://www.w3.org/TR/cssom-view/#dom-mouseevent-clientx 2216 */ 2217 //MouseEvent.prototype.clientX; 2218 2219 /** 2220 * @type {number} 2221 * @see http://www.w3.org/TR/cssom-view/#dom-mouseevent-clienty 2222 */ 2223 //MouseEvent.prototype.clientY; 2224 2225 /** 2226 * @type {number} 2227 * @see http://www.w3.org/TR/cssom-view/#dom-mouseevent-x 2228 */ 2229 MouseEvent.prototype.x; 2230 2231 /** 2232 * @type {number} 2233 * @see http://www.w3.org/TR/cssom-view/#dom-mouseevent-y 2234 */ 2235 MouseEvent.prototype.y; 2236 2237 /** 2238 * @type {number} 2239 * @see http://www.w3.org/TR/cssom-view/#dom-mouseevent-offsetx 2240 */ 2241 MouseEvent.prototype.offsetX; 2242 2243 /** 2244 * @type {number} 2245 * @see http://www.w3.org/TR/cssom-view/#dom-mouseevent-offsety 2246 */ 2247 MouseEvent.prototype.offsetY; 2248 2249 2250 // http://www.w3.org/TR/cssom-view/#rectangles 2251 2252 /** 2253 * @constructor 2254 * @see http://www.w3.org/TR/cssom-view/#the-clientrectlist-interface 2255 */ 2256 function ClientRectList() {} 2257 2258 /** 2259 * @type {number} 2260 * @see http://www.w3.org/TR/cssom-view/#dom-clientrectlist-length 2261 */ 2262 ClientRectList.prototype.length; 2263 2264 /** 2265 * @param {number} index 2266 * @return {ClientRect} 2267 * @see http://www.w3.org/TR/cssom-view/#dom-clientrectlist-item 2268 */ 2269 ClientRectList.prototype.item = function(index) {}; 2270 2271 /** 2272 * @constructor 2273 * @see http://www.w3.org/TR/cssom-view/#the-clientrect-interface 2274 */ 2275 function ClientRect() {} 2276 2277 /** 2278 * @type {number} 2279 * @see http://www.w3.org/TR/cssom-view/#dom-clientrect-top 2280 */ 2281 ClientRect.prototype.top; 2282 2283 /** 2284 * @type {number} 2285 * @see http://www.w3.org/TR/cssom-view/#dom-clientrect-right 2286 */ 2287 ClientRect.prototype.right; 2288 2289 /** 2290 * @type {number} 2291 * @see http://www.w3.org/TR/cssom-view/#dom-clientrect-bottom 2292 */ 2293 ClientRect.prototype.bottom; 2294 2295 /** 2296 * @type {number} 2297 * @see http://www.w3.org/TR/cssom-view/#dom-clientrect-left 2298 */ 2299 ClientRect.prototype.left; 2300 2301 /** 2302 * @type {number} 2303 * @see http://www.w3.org/TR/cssom-view/#dom-clientrect-width 2304 */ 2305 ClientRect.prototype.width; 2306 2307 /** 2308 * @type {number} 2309 * @see http://www.w3.org/TR/cssom-view/#dom-clientrect-height 2310 */ 2311 ClientRect.prototype.height; 2312 2313 /** 2314 * @constructor 2315 * http://www.w3.org/TR/css3-conditional/#CSS-interface 2316 */ 2317 function CSSInterface() {} 2318 2319 /** 2320 * @param {string} property 2321 * @param {string=} opt_value 2322 * @return {boolean} 2323 */ 2324 CSSInterface.prototype.supports = function(property, opt_value) {}; 2325 2326 /** 2327 * TODO(nicksantos): This suppress tag probably isn't needed, and 2328 * should be removed. 2329 * @suppress {duplicate} 2330 * @type {CSSInterface} 2331 */ 2332 var CSS; 2333 2334 /** @type {CSSInterface} */ 2335 Window.prototype.CSS; 2336 2337 // http://dev.w3.org/csswg/css-font-loading/ 2338 2339 /** 2340 * @enum {string} 2341 * @see http://dev.w3.org/csswg/css-font-loading/#enumdef-fontfaceloadstatus 2342 */ 2343 var FontFaceLoadStatus = { 2344 ERROR: 'error', 2345 LOADED: 'loaded', 2346 LOADING: 'loading', 2347 UNLOADED: 'unloaded' 2348 }; 2349 2350 /** 2351 * @typedef {{ 2352 * style: (string|undefined), 2353 * weight: (string|undefined), 2354 * stretch: (string|undefined), 2355 * unicodeRange: (string|undefined), 2356 * variant: (string|undefined), 2357 * featureSettings: (string|undefined) 2358 * }} 2359 * @see http://dev.w3.org/csswg/css-font-loading/#dictdef-fontfacedescriptors 2360 */ 2361 var FontFaceDescriptors; 2362 2363 /** 2364 * @constructor 2365 * @param {string} fontFamily 2366 * @param {string} source 2367 * @param {!FontFaceDescriptors} descriptors 2368 * @see http://dev.w3.org/csswg/css-font-loading/#font-face-constructor 2369 */ 2370 function FontFace(fontFamily, source, descriptors) {} 2371 2372 /** 2373 * @type {string} 2374 * @see http://dev.w3.org/csswg/css-font-loading/#dom-fontface-family 2375 */ 2376 FontFace.prototype.family; 2377 2378 /** 2379 * @type {string} 2380 * @see http://dev.w3.org/csswg/css-font-loading/#dom-fontface-style 2381 */ 2382 FontFace.prototype.style; 2383 2384 /** 2385 * @type {string} 2386 * @see http://dev.w3.org/csswg/css-font-loading/#dom-fontface-weight 2387 */ 2388 FontFace.prototype.weight; 2389 2390 /** 2391 * @type {string} 2392 * @see http://dev.w3.org/csswg/css-font-loading/#dom-fontface-stretch 2393 */ 2394 FontFace.prototype.stretch; 2395 2396 /** 2397 * @type {string} 2398 * @see http://dev.w3.org/csswg/css-font-loading/#dom-fontface-unicoderange 2399 */ 2400 FontFace.prototype.unicodeRange; 2401 2402 /** 2403 * @type {string} 2404 * @see http://dev.w3.org/csswg/css-font-loading/#dom-fontface-variant 2405 */ 2406 FontFace.prototype.variant; 2407 2408 /** 2409 * @type {string} 2410 * @see http://dev.w3.org/csswg/css-font-loading/#dom-fontface-featuresettings 2411 */ 2412 FontFace.prototype.featureSettings; 2413 2414 /** 2415 * @type {FontFaceLoadStatus} 2416 * @see http://dev.w3.org/csswg/css-font-loading/#dom-fontface-status 2417 */ 2418 FontFace.prototype.status; 2419 2420 /** 2421 * @return {!Promise.<!FontFace>} 2422 * @see http://dev.w3.org/csswg/css-font-loading/#font-face-load 2423 */ 2424 FontFace.prototype.load = function() {}; 2425 2426 /** 2427 * @enum 2428 * @see http://dev.w3.org/csswg/css-font-loading/#enumdef-fontfacesetloadstatus 2429 */ 2430 var FontFaceSetLoadStatus = { 2431 LOADED: 'loaded', 2432 LOADING: 'loading' 2433 }; 2434 2435 /** 2436 * @interface 2437 * @see http://dev.w3.org/csswg/css-font-loading/#FontFaceSet-interface 2438 */ 2439 function FontFaceSet() {} 2440 2441 // Event handlers 2442 // http://dev.w3.org/csswg/css-font-loading/#FontFaceSet-events 2443 2444 /** @type {?function (Event)} */ FontFaceSet.prototype.onloading; 2445 /** @type {?function (Event)} */ FontFaceSet.prototype.onloadingdone; 2446 /** @type {?function (Event)} */ FontFaceSet.prototype.onloadingerror; 2447 2448 /** 2449 * @param {!FontFace} value 2450 * @see http://dev.w3.org/csswg/css-font-loading/#dom-fontfaceset-add 2451 */ 2452 FontFaceSet.prototype.add = function(value) {}; 2453 2454 /** 2455 * @see http://dev.w3.org/csswg/css-font-loading/#dom-fontfaceset-clear 2456 */ 2457 FontFaceSet.prototype.clear = function() {}; 2458 2459 /** 2460 * @param {!FontFace} value 2461 * @see http://dev.w3.org/csswg/css-font-loading/#dom-fontfaceset-delete 2462 */ 2463 FontFaceSet.prototype.delete = function(value) {}; 2464 2465 /** 2466 * @param {!FontFace} font 2467 * @return {boolean} 2468 * @see http://dev.w3.org/csswg/css-font-loading/#dom-fontfaceset-has 2469 */ 2470 FontFaceSet.prototype.has = function(font) {}; 2471 2472 /** 2473 * @param {function(!FontFace, number, !FontFaceSet)} cb 2474 * @param {Object|undefined=} opt_selfObj 2475 * see http://dev.w3.org/csswg/css-font-loading/#dom-fontfaceset-foreach 2476 */ 2477 FontFaceSet.prototype.forEach = function(cb, opt_selfObj) {}; 2478 2479 /** 2480 * @param {string} font 2481 * @param {string=} opt_text 2482 * @return {!Promise.<!Array.<!FontFace>>} 2483 * @see http://dev.w3.org/csswg/css-font-loading/#dom-fontfaceset-load 2484 */ 2485 FontFaceSet.prototype.load = function(font, opt_text) {}; 2486 2487 /** 2488 * @param {string} font 2489 * @param {string=} opt_text 2490 * @return {boolean} 2491 * @see http://dev.w3.org/csswg/css-font-loading/#dom-fontfaceset-check 2492 */ 2493 FontFaceSet.prototype.check = function(font, opt_text) {}; 2494 2495 /** 2496 * @type {!Promise.<!FontFaceSet>} 2497 * @see http://dev.w3.org/csswg/css-font-loading/#dom-fontfaceset-ready 2498 */ 2499 FontFaceSet.prototype.ready; 2500 2501 /** 2502 * @type {FontFaceSetLoadStatus} 2503 * @see http://dev.w3.org/csswg/css-font-loading/#dom-fontfaceset-status 2504 */ 2505 FontFaceSet.prototype.status;