mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
layout: Implement outline-offset
per CSS-UI-3 § 5.5.
This commit is contained in:
parent
a88e668091
commit
af7cf26e76
6 changed files with 62 additions and 4 deletions
|
@ -933,6 +933,14 @@ pub mod computed {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[allow(non_snake_case)]
|
||||
#[inline]
|
||||
pub fn compute_Length(value: specified::Length, context: &Context) -> Au {
|
||||
compute_Au(value, context)
|
||||
}
|
||||
|
||||
pub type Length = Au;
|
||||
}
|
||||
|
||||
pub fn parse_url(input: &str, base_url: &Url) -> Url {
|
||||
|
|
|
@ -381,6 +381,8 @@ pub mod longhands {
|
|||
}
|
||||
</%self:longhand>
|
||||
|
||||
${predefined_type("outline-offset", "Length", "Au(0)")}
|
||||
|
||||
${new_style_struct("PositionOffsets", is_inherited=False)}
|
||||
|
||||
% for side in ["top", "right", "bottom", "left"]:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue