Atomize namespace prefixes.

This commit is contained in:
Simon Sapin 2016-08-18 15:43:30 +02:00
parent 84fed1a62f
commit 6173e1d339
4 changed files with 19 additions and 9 deletions

View file

@ -38,7 +38,10 @@ fn test_parse_stylesheet() {
media: None,
dirty_on_viewport_size_change: false,
rules: vec![
CSSRule::Namespace(None, NsAtom(Atom::from("http://www.w3.org/1999/xhtml"))),
CSSRule::Namespace {
prefix: None,
url: NsAtom(Atom::from("http://www.w3.org/1999/xhtml"))
},
CSSRule::Style(StyleRule {
selectors: vec![
Selector {