mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Support basic immutable CSSOM
This commit is contained in:
parent
2220fcdc0b
commit
177d6fa4ee
33 changed files with 861 additions and 43 deletions
|
@ -29,7 +29,7 @@ fn test_media_rule<F>(css: &str, callback: F) where F: Fn(&MediaList, &str) {
|
|||
let stylesheet = Stylesheet::from_str(css, url, Origin::Author, Box::new(CSSErrorReporterTest),
|
||||
ParserContextExtraData::default());
|
||||
let mut rule_count = 0;
|
||||
media_queries(&stylesheet.rules, &mut |mq| {
|
||||
media_queries(&stylesheet.rules.0, &mut |mq| {
|
||||
rule_count += 1;
|
||||
callback(mq, css);
|
||||
});
|
||||
|
|
|
@ -256,7 +256,7 @@ fn test_parse_stylesheet() {
|
|||
]
|
||||
})))
|
||||
|
||||
],
|
||||
].into(),
|
||||
};
|
||||
|
||||
assert_eq!(format!("{:#?}", stylesheet), format!("{:#?}", expected));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue