mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Make text-shadow and box-shadow use SimpleShadow
This commit is contained in:
parent
65ff4a399c
commit
201d7e79e7
14 changed files with 414 additions and 434 deletions
|
@ -14,24 +14,16 @@ ${helpers.predefined_type("opacity",
|
|||
flags="CREATES_STACKING_CONTEXT",
|
||||
spec="https://drafts.csswg.org/css-color/#opacity")}
|
||||
|
||||
<%helpers:vector_longhand name="box-shadow" allow_empty="True"
|
||||
animation_value_type="IntermediateShadowList"
|
||||
extra_prefixes="webkit"
|
||||
ignored_when_colors_disabled="True"
|
||||
spec="https://drafts.csswg.org/css-backgrounds/#box-shadow">
|
||||
pub type SpecifiedValue = specified::Shadow;
|
||||
|
||||
pub mod computed_value {
|
||||
use values::computed::Shadow;
|
||||
|
||||
pub type T = Shadow;
|
||||
}
|
||||
|
||||
pub fn parse<'i, 't>(context: &ParserContext, input: &mut Parser<'i, 't>)
|
||||
-> Result<specified::Shadow, ParseError<'i>> {
|
||||
specified::Shadow::parse(context, input, false)
|
||||
}
|
||||
</%helpers:vector_longhand>
|
||||
${helpers.predefined_type(
|
||||
"box-shadow",
|
||||
"BoxShadow",
|
||||
None,
|
||||
vector=True,
|
||||
animation_value_type="AnimatedBoxShadowList",
|
||||
extra_prefixes="webkit",
|
||||
ignored_when_colors_disabled=True,
|
||||
spec="https://drafts.csswg.org/css-backgrounds/#box-shadow",
|
||||
)}
|
||||
|
||||
${helpers.predefined_type("clip",
|
||||
"ClipRectOrAuto",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue