CSSValue.hx 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /*
  2. * Copyright (C)2005-2017 Haxe Foundation
  3. *
  4. * Permission is hereby granted, free of charge, to any person obtaining a
  5. * copy of this software and associated documentation files (the "Software"),
  6. * to deal in the Software without restriction, including without limitation
  7. * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  8. * and/or sell copies of the Software, and to permit persons to whom the
  9. * Software is furnished to do so, subject to the following conditions:
  10. *
  11. * The above copyright notice and this permission notice shall be included in
  12. * all copies or substantial portions of the Software.
  13. *
  14. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  17. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  18. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  19. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  20. * DEALINGS IN THE SOFTWARE.
  21. */
  22. // This file is generated from mozilla\CSSValue.webidl. Do not edit!
  23. package js.html;
  24. /**
  25. The `CSSValue` interface represents the current computed value of a CSS property.
  26. Documentation [CSSValue](https://developer.mozilla.org/en-US/docs/Web/API/CSSValue) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/CSSValue$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
  27. @see <https://developer.mozilla.org/en-US/docs/Web/API/CSSValue>
  28. **/
  29. @:native("CSSValue")
  30. extern class CSSValue
  31. {
  32. static inline var CSS_INHERIT : Int = 0;
  33. static inline var CSS_PRIMITIVE_VALUE : Int = 1;
  34. static inline var CSS_VALUE_LIST : Int = 2;
  35. static inline var CSS_CUSTOM : Int = 3;
  36. /**
  37. A `DOMString` representing the current value.
  38. **/
  39. var cssText : String;
  40. /**
  41. An <code>unsigned short</code> representing a code defining the type of the value. Possible values are:
  42. <table class="standard-table">
  43. <tr>
  44. <td class="header">Constant</td>
  45. <td class="header">Description</td>
  46. </tr>
  47. <tr>
  48. <td><code>CSS_CUSTOM</code></td>
  49. <td>The value is a custom value.</td>
  50. </tr>
  51. <tr>
  52. <td><code>CSS_INHERIT</code></td>
  53. <td>The value is inherited and the <code>cssText</code> contains <code>"inherit"</code>.</td>
  54. </tr>
  55. <tr>
  56. <td><code>CSS_PRIMITIVE_VALUE</code></td>
  57. <td>The value is a primitive value and an instance of the <code>CSSPrimitiveValue</code> interface can be obtained by using binding-specific casting methods on this instance of the <code>CSSValue</code> interface.</td>
  58. </tr>
  59. <tr>
  60. <td><code>CSS_VALUE_LIST</code></td>
  61. <td>The value is a <code>CSSValue</code> list and an instance of the <code>CSSValueList</code> interface can be obtained by using binding-specific casting methods on this instance of the <code>CSSValue</code> interface.</td>
  62. </tr>
  63. </table>
  64. **/
  65. var cssValueType(default,null) : Int;
  66. }