mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-29 11:57:32 +09:00
Issue #2045 - Part 4: Parse "revert" in property values wherever "unset" is allowed
This commit is contained in:
parent
b0f0972314
commit
9105c58a30
6 changed files with 113 additions and 67 deletions
|
|
@ -154,6 +154,7 @@ TimingParams::ParseEasing(const nsAString& aEasing,
|
|||
case eCSSUnit_Inherit:
|
||||
case eCSSUnit_Initial:
|
||||
case eCSSUnit_Unset:
|
||||
case eCSSUnit_Revert:
|
||||
case eCSSUnit_TokenStream:
|
||||
case eCSSUnit_Null:
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -2731,6 +2731,7 @@ PropertyIsInheritOrInitial(Declaration* aDeclaration, const nsCSSPropertyID aPro
|
|||
const nsCSSValue* filterVal =
|
||||
aDeclaration->GetNormalBlock()->ValueFor(aProperty);
|
||||
return (!filterVal || (filterVal->GetUnit() == eCSSUnit_Unset ||
|
||||
filterVal->GetUnit() == eCSSUnit_Revert ||
|
||||
filterVal->GetUnit() == eCSSUnit_Inherit ||
|
||||
filterVal->GetUnit() == eCSSUnit_Initial));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue