mirror of
https://github.com/servo/servo.git
synced 2025-08-09 07:25:35 +01:00
Add links to the spec for components/style
This commit is contained in:
parent
4fd4370a96
commit
9f6d94e107
2 changed files with 13 additions and 1 deletions
|
@ -21,10 +21,18 @@ use font_face::{FontFaceRule, parse_font_face_block};
|
|||
use util::smallvec::{SmallVec, SmallVec2};
|
||||
|
||||
|
||||
/// Each style rule has an origin, which determines where it enters the cascade.
|
||||
///
|
||||
/// http://dev.w3.org/csswg/css-cascade/#cascading-origins
|
||||
#[derive(Clone, PartialEq, Eq, Copy, Debug)]
|
||||
pub enum Origin {
|
||||
/// http://dev.w3.org/csswg/css-cascade/#cascade-origin-ua
|
||||
UserAgent,
|
||||
|
||||
/// http://dev.w3.org/csswg/css-cascade/#cascade-origin-author
|
||||
Author,
|
||||
|
||||
/// http://dev.w3.org/csswg/css-cascade/#cascade-origin-user
|
||||
User,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue