You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.0 KiB

  1. //.CommonJS
  2. var CSSOM = {};
  3. ///CommonJS
  4. /**
  5. * @constructor
  6. * @see http://dev.w3.org/csswg/cssom/#the-cssrule-interface
  7. * @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSRule
  8. */
  9. CSSOM.CSSRule = function CSSRule() {
  10. this.parentRule = null;
  11. this.parentStyleSheet = null;
  12. };
  13. CSSOM.CSSRule.UNKNOWN_RULE = 0; // obsolete
  14. CSSOM.CSSRule.STYLE_RULE = 1;
  15. CSSOM.CSSRule.CHARSET_RULE = 2; // obsolete
  16. CSSOM.CSSRule.IMPORT_RULE = 3;
  17. CSSOM.CSSRule.MEDIA_RULE = 4;
  18. CSSOM.CSSRule.FONT_FACE_RULE = 5;
  19. CSSOM.CSSRule.PAGE_RULE = 6;
  20. CSSOM.CSSRule.KEYFRAMES_RULE = 7;
  21. CSSOM.CSSRule.KEYFRAME_RULE = 8;
  22. CSSOM.CSSRule.MARGIN_RULE = 9;
  23. CSSOM.CSSRule.NAMESPACE_RULE = 10;
  24. CSSOM.CSSRule.COUNTER_STYLE_RULE = 11;
  25. CSSOM.CSSRule.SUPPORTS_RULE = 12;
  26. CSSOM.CSSRule.DOCUMENT_RULE = 13;
  27. CSSOM.CSSRule.FONT_FEATURE_VALUES_RULE = 14;
  28. CSSOM.CSSRule.VIEWPORT_RULE = 15;
  29. CSSOM.CSSRule.REGION_STYLE_RULE = 16;
  30. CSSOM.CSSRule.prototype = {
  31. constructor: CSSOM.CSSRule
  32. //FIXME
  33. };
  34. //.CommonJS
  35. exports.CSSRule = CSSOM.CSSRule;
  36. ///CommonJS