Actually include file with marker shorthand

This commit is contained in:
Manish Goregaokar 2017-02-18 23:20:39 -08:00
parent 4d82d4e68e
commit 1541a2d154
2 changed files with 5 additions and 3 deletions

View file

@ -166,6 +166,7 @@ pub mod shorthands {
<%include file="/shorthand/outline.mako.rs" />
<%include file="/shorthand/padding.mako.rs" />
<%include file="/shorthand/position.mako.rs" />
<%include file="/shorthand/inherited_svg.mako.rs" />
<%include file="/shorthand/text.mako.rs" />
}

View file

@ -10,12 +10,13 @@
use values::specified::UrlOrNone;
pub fn parse_value(context: &ParserContext, input: &mut Parser) -> Result<Longhands, ()> {
use parser::Parse;
let url = UrlOrNone::parse(context, input)?;
Ok(Longhands {
marker_start: url.clone(),
marker_mid: url.clone(),
marker_end: url,
marker_start: Some(url.clone()),
marker_mid: Some(url.clone()),
marker_end: Some(url),
})
}