mirror of
https://github.com/servo/servo.git
synced 2025-07-03 05:23:38 +01:00
Actually include file with marker shorthand
This commit is contained in:
parent
4d82d4e68e
commit
1541a2d154
2 changed files with 5 additions and 3 deletions
|
@ -166,6 +166,7 @@ pub mod shorthands {
|
||||||
<%include file="/shorthand/outline.mako.rs" />
|
<%include file="/shorthand/outline.mako.rs" />
|
||||||
<%include file="/shorthand/padding.mako.rs" />
|
<%include file="/shorthand/padding.mako.rs" />
|
||||||
<%include file="/shorthand/position.mako.rs" />
|
<%include file="/shorthand/position.mako.rs" />
|
||||||
|
<%include file="/shorthand/inherited_svg.mako.rs" />
|
||||||
<%include file="/shorthand/text.mako.rs" />
|
<%include file="/shorthand/text.mako.rs" />
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,12 +10,13 @@
|
||||||
use values::specified::UrlOrNone;
|
use values::specified::UrlOrNone;
|
||||||
|
|
||||||
pub fn parse_value(context: &ParserContext, input: &mut Parser) -> Result<Longhands, ()> {
|
pub fn parse_value(context: &ParserContext, input: &mut Parser) -> Result<Longhands, ()> {
|
||||||
|
use parser::Parse;
|
||||||
let url = UrlOrNone::parse(context, input)?;
|
let url = UrlOrNone::parse(context, input)?;
|
||||||
|
|
||||||
Ok(Longhands {
|
Ok(Longhands {
|
||||||
marker_start: url.clone(),
|
marker_start: Some(url.clone()),
|
||||||
marker_mid: url.clone(),
|
marker_mid: Some(url.clone()),
|
||||||
marker_end: url,
|
marker_end: Some(url),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue