mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 00:08:39 +09:00
[draft] CSS - linear-gradient - zero (0) angle value without degree unit is not correctly interpreted
This commit is contained in:
parent
622832ae39
commit
66276efa0a
2 changed files with 7 additions and 5 deletions
|
|
@ -10404,7 +10404,8 @@ CSSParserImpl::ParseLinearGradient(nsCSSValue& aValue,
|
|||
UngetToken();
|
||||
|
||||
// <angle> ,
|
||||
if (ParseSingleTokenVariant(cssGradient->mAngle, VARIANT_ANGLE, nullptr) &&
|
||||
if (ParseSingleTokenVariant(cssGradient->mAngle,
|
||||
VARIANT_ANGLE_OR_ZERO, nullptr) &&
|
||||
!ExpectSymbol(',', true)) {
|
||||
SkipUntil(')');
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue