1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 01:37:35 +00:00

LibWeb: Update spec comments for math function determined types

The spec was corrected here:
de4119a6e3
This commit is contained in:
Sam Atkins 2023-07-19 11:11:50 +01:00 committed by Sam Atkins
parent f8bd607733
commit dd1156fb17

View file

@ -1263,7 +1263,7 @@ Optional<CalculatedStyleValue::ResolvedType> AsinCalculationNode::resolved_type(
// https://www.w3.org/TR/css-values-4/#determine-the-type-of-a-calculation
Optional<CSSNumericType> AsinCalculationNode::determine_type(PropertyID) const
{
// NOTE: Spec is currently wrong: https://github.com/w3c/csswg-drafts/issues/9034
// «[ "angle" → 1 ]».
return CSSNumericType { CSSNumericType::BaseType::Angle, 1 };
}
@ -1324,7 +1324,7 @@ Optional<CalculatedStyleValue::ResolvedType> AcosCalculationNode::resolved_type(
// https://www.w3.org/TR/css-values-4/#determine-the-type-of-a-calculation
Optional<CSSNumericType> AcosCalculationNode::determine_type(PropertyID) const
{
// NOTE: Spec is currently wrong: https://github.com/w3c/csswg-drafts/issues/9034
// «[ "angle" → 1 ]».
return CSSNumericType { CSSNumericType::BaseType::Angle, 1 };
}
@ -1385,7 +1385,7 @@ Optional<CalculatedStyleValue::ResolvedType> AtanCalculationNode::resolved_type(
// https://www.w3.org/TR/css-values-4/#determine-the-type-of-a-calculation
Optional<CSSNumericType> AtanCalculationNode::determine_type(PropertyID) const
{
// NOTE: Spec is currently wrong: https://github.com/w3c/csswg-drafts/issues/9034
// «[ "angle" → 1 ]».
return CSSNumericType { CSSNumericType::BaseType::Angle, 1 };
}
@ -1449,7 +1449,7 @@ Optional<CalculatedStyleValue::ResolvedType> Atan2CalculationNode::resolved_type
// https://www.w3.org/TR/css-values-4/#determine-the-type-of-a-calculation
Optional<CSSNumericType> Atan2CalculationNode::determine_type(PropertyID) const
{
// NOTE: Spec is currently wrong: https://github.com/w3c/csswg-drafts/issues/9034
// «[ "angle" → 1 ]».
return CSSNumericType { CSSNumericType::BaseType::Angle, 1 };
}