From dd1156fb17ecfaf523378a1bbb81921ab92713ac Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Wed, 19 Jul 2023 11:11:50 +0100 Subject: [PATCH] LibWeb: Update spec comments for math function determined types The spec was corrected here: https://github.com/w3c/csswg-drafts/commit/de4119a6e3f27a21f18293ad19aa4e5413c76cc4 --- .../LibWeb/CSS/StyleValues/CalculatedStyleValue.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Userland/Libraries/LibWeb/CSS/StyleValues/CalculatedStyleValue.cpp b/Userland/Libraries/LibWeb/CSS/StyleValues/CalculatedStyleValue.cpp index a005baf288..3130e5b466 100644 --- a/Userland/Libraries/LibWeb/CSS/StyleValues/CalculatedStyleValue.cpp +++ b/Userland/Libraries/LibWeb/CSS/StyleValues/CalculatedStyleValue.cpp @@ -1263,7 +1263,7 @@ Optional AsinCalculationNode::resolved_type( // https://www.w3.org/TR/css-values-4/#determine-the-type-of-a-calculation Optional 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 AcosCalculationNode::resolved_type( // https://www.w3.org/TR/css-values-4/#determine-the-type-of-a-calculation Optional 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 AtanCalculationNode::resolved_type( // https://www.w3.org/TR/css-values-4/#determine-the-type-of-a-calculation Optional 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 Atan2CalculationNode::resolved_type // https://www.w3.org/TR/css-values-4/#determine-the-type-of-a-calculation Optional 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 }; }