| // Copyright 2015 The Cobalt Authors. All Rights Reserved. | |
| // | |
| // Licensed under the Apache License, Version 2.0 (the "License"); | |
| // you may not use this file except in compliance with the License. | |
| // You may obtain a copy of the License at | |
| // | |
| // http://www.apache.org/licenses/LICENSE-2.0 | |
| // | |
| // Unless required by applicable law or agreed to in writing, software | |
| // distributed under the License is distributed on an "AS IS" BASIS, | |
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| // See the License for the specific language governing permissions and | |
| // limitations under the License. | |
| // https://www.w3.org/TR/2013/WD-cssom-20131205/#the-cssrule-interface | |
| interface CSSRule { | |
| const unsigned short STYLE_RULE = 1; | |
| const unsigned short CHARSET_RULE = 2; | |
| const unsigned short IMPORT_RULE = 3; | |
| const unsigned short MEDIA_RULE = 4; | |
| const unsigned short FONT_FACE_RULE = 5; | |
| const unsigned short PAGE_RULE = 6; | |
| // KEYFRAMES_RULE and KEYFRAME_RULE are specified in CSS Animations: | |
| // https://www.w3.org/TR/2013/WD-css3-animations-20130219/#CSSRule-interface | |
| const unsigned short KEYFRAMES_RULE = 7; | |
| const unsigned short KEYFRAME_RULE = 8; | |
| const unsigned short MARGIN_RULE = 9; | |
| const unsigned short NAMESPACE_RULE = 10; | |
| readonly attribute unsigned short type; | |
| [TreatNullAs=EmptyString, RaisesException] attribute DOMString cssText; | |
| readonly attribute CSSRule? parentRule; | |
| readonly attribute CSSStyleSheet? parentStyleSheet; | |
| }; |