mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibWeb/CSS: Implement CSSMathSum
This commit is contained in:
committed by
Andreas Kling
parent
a46c980629
commit
e17052a343
Notes:
github-actions[bot]
2025-08-29 09:59:57 +00:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/LadybirdBrowser/ladybird/commit/e17052a343e Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5955 Reviewed-by: https://github.com/trflynn89
@@ -1,3 +1,30 @@
|
||||
Harness status: Error
|
||||
Harness status: OK
|
||||
|
||||
Found 0 tests
|
||||
Found 25 tests
|
||||
|
||||
25 Fail
|
||||
Fail Constructing a CSSPerspective with a keyword other than none (string) throws a TypeError
|
||||
Fail Constructing a CSSPerspective with a keyword other than none (CSSKeywordValue) throws a TypeError
|
||||
Fail Constructing a CSSPerspective with a double throws a TypeError
|
||||
Fail Constructing a CSSPerspective with a unitless zero throws a TypeError
|
||||
Fail Constructing a CSSPerspective with a string length throws a TypeError
|
||||
Fail Constructing a CSSPerspective with a number CSSUnitValue throws a TypeError
|
||||
Fail Constructing a CSSPerspective with a time dimension CSSUnitValue throws a TypeError
|
||||
Fail Constructing a CSSPerspective with a CSSMathValue of angle type throws a TypeError
|
||||
Fail Updating CSSPerspective.length with a keyword other than none (string) throws a TypeError
|
||||
Fail Updating CSSPerspective.length with a keyword other than none (CSSKeywordValue) throws a TypeError
|
||||
Fail Updating CSSPerspective.length with a double throws a TypeError
|
||||
Fail Updating CSSPerspective.length with a unitless zero throws a TypeError
|
||||
Fail Updating CSSPerspective.length with a string length throws a TypeError
|
||||
Fail Updating CSSPerspective.length with a number CSSUnitValue throws a TypeError
|
||||
Fail Updating CSSPerspective.length with a time dimension CSSUnitValue throws a TypeError
|
||||
Fail Updating CSSPerspective.length with a CSSMathValue of angle type throws a TypeError
|
||||
Fail CSSPerspective can be constructed from a length CSSUnitValue
|
||||
Fail CSSPerspective.length can be updated to a length CSSUnitValue
|
||||
Fail CSSPerspective can be constructed from a CSSMathValue of length type
|
||||
Fail CSSPerspective.length can be updated to a CSSMathValue of length type
|
||||
Fail CSSPerspective can be constructed from none (CSSKeywordValue)
|
||||
Fail CSSPerspective.length can be updated to none (CSSKeywordValue)
|
||||
Fail CSSPerspective can be constructed from none (string)
|
||||
Fail CSSPerspective.length can be updated to none (string)
|
||||
Fail Modifying CSSPerspective.is2D is a no-op
|
||||
@@ -1,3 +1,32 @@
|
||||
Harness status: Error
|
||||
Harness status: OK
|
||||
|
||||
Found 0 tests
|
||||
Found 27 tests
|
||||
|
||||
27 Fail
|
||||
Fail Constructing a CSSRotate with a CSSUnitValue with type other than angle for the angle throws a TypeError
|
||||
Fail Constructing a CSSRotate with a CSSMathValue that doesn't match <angle> for the angle throws a TypeError
|
||||
Fail Constructing a CSSRotate with a CSSUnitValue with type other than number for the coordinates throws a TypeError
|
||||
Fail Constructing a CSSRotate with a CSSMathValue that doesn't match <number> for the coordinates throws a TypeError
|
||||
Fail Updating CSSRotate.x to a CSSUnitValue with type other than number throws a TypeError
|
||||
Fail Updating CSSRotate.x to a CSSMathValue that doesn't match <number> throws a TypeError
|
||||
Fail Updating CSSRotate.y to a CSSUnitValue with type other than number throws a TypeError
|
||||
Fail Updating CSSRotate.y to a CSSMathValue that doesn't match <number> throws a TypeError
|
||||
Fail Updating CSSRotate.z to a CSSUnitValue with type other than number throws a TypeError
|
||||
Fail Updating CSSRotate.z to a CSSMathValue that doesn't match <number> throws a TypeError
|
||||
Fail Updating CSSRotate.angle to a CSSUnitValue with type other than angle throws a TypeError
|
||||
Fail Updating CSSRotate.angle to a CSSMathValue that doesn't match <angle> throws a TypeError
|
||||
Fail CSSRotate can be constructed from a single angle
|
||||
Fail CSSRotate can be constructed from numberish coordinates
|
||||
Fail CSSRotate can be constructed from CSSMathValues
|
||||
Fail CSSRotate.x can be updated to a double
|
||||
Fail CSSRotate.x can be updated to a number CSSUnitValue
|
||||
Fail CSSRotate.x can be updated to a CSSMathValue matching <number>
|
||||
Fail CSSRotate.y can be updated to a double
|
||||
Fail CSSRotate.y can be updated to a number CSSUnitValue
|
||||
Fail CSSRotate.y can be updated to a CSSMathValue matching <number>
|
||||
Fail CSSRotate.z can be updated to a double
|
||||
Fail CSSRotate.z can be updated to a number CSSUnitValue
|
||||
Fail CSSRotate.z can be updated to a CSSMathValue matching <number>
|
||||
Fail CSSRotate.angle can be updated to a degree CSSUnitValue
|
||||
Fail CSSRotate.angle can be updated to a CSSMathValue matching <angle>
|
||||
Fail Modifying CSSRotate.is2D can be updated to true or false
|
||||
@@ -1,3 +1,27 @@
|
||||
Harness status: Error
|
||||
Harness status: OK
|
||||
|
||||
Found 0 tests
|
||||
Found 22 tests
|
||||
|
||||
22 Fail
|
||||
Fail Constructing a CSSScale with an angle CSSUnitValue for the coordinates throws a TypeError
|
||||
Fail Constructing a CSSScale with a CSSMathValue that doesn't match <number> for the coordinates throws a TypeError
|
||||
Fail Updating CSSScale.x to an angle CSSUnitValue throws a TypeError
|
||||
Fail Updating CSSScale.x to a CSSMathValue that doesn't match <number> throws a TypeError
|
||||
Fail Updating CSSScale.y to an angle CSSUnitValue throws a TypeError
|
||||
Fail Updating CSSScale.y to a CSSMathValue that doesn't match <number> throws a TypeError
|
||||
Fail Updating CSSScale.z to an angle CSSUnitValue throws a TypeError
|
||||
Fail Updating CSSScale.z to a CSSMathValue that doesn't match <number> throws a TypeError
|
||||
Fail CSSScale can be constructed from two number coordinates
|
||||
Fail CSSScale can be constructed from three number coordinates
|
||||
Fail CSSScale can be constructed from CSSMathValue coordinates
|
||||
Fail CSSScale can be constructed from unit canceling length value coordinates
|
||||
Fail CSSScale.x can be updated to a number
|
||||
Fail CSSScale.x can be updated to a numberish
|
||||
Fail CSSScale.x can be updated to a CSSMathValue
|
||||
Fail CSSScale.y can be updated to a number
|
||||
Fail CSSScale.y can be updated to a numberish
|
||||
Fail CSSScale.y can be updated to a CSSMathValue
|
||||
Fail CSSScale.z can be updated to a number
|
||||
Fail CSSScale.z can be updated to a numberish
|
||||
Fail CSSScale.z can be updated to a CSSMathValue
|
||||
Fail Modifying CSSScale.is2D can be updated to true or false
|
||||
@@ -1,3 +1,35 @@
|
||||
Harness status: Error
|
||||
Harness status: OK
|
||||
|
||||
Found 0 tests
|
||||
Found 30 tests
|
||||
|
||||
30 Fail
|
||||
Fail Constructing a CSSSkew with a keyword throws a TypeError
|
||||
Fail Constructing a CSSSkew with a double throws a TypeError
|
||||
Fail Constructing a CSSSkew with a unitless zero throws a TypeError
|
||||
Fail Constructing a CSSSkew with a string angle throws a TypeError
|
||||
Fail Constructing a CSSSkew with a number CSSUnitValue throws a TypeError
|
||||
Fail Constructing a CSSSkew with a time dimension CSSUnitValue throws a TypeError
|
||||
Fail Constructing a CSSSkew with a CSSMathValue of length type throws a TypeError
|
||||
Fail Updating CSSSkew.ax with a keyword throws a TypeError
|
||||
Fail Updating CSSSkew.ax with a double throws a TypeError
|
||||
Fail Updating CSSSkew.ax with a unitless zero throws a TypeError
|
||||
Fail Updating CSSSkew.ax with a string angle throws a TypeError
|
||||
Fail Updating CSSSkew.ax with a number CSSUnitValue throws a TypeError
|
||||
Fail Updating CSSSkew.ax with a time dimension CSSUnitValue throws a TypeError
|
||||
Fail Updating CSSSkew.ax with a CSSMathValue of length type throws a TypeError
|
||||
Fail Updating CSSSkew.ay with a keyword throws a TypeError
|
||||
Fail Updating CSSSkew.ay with a double throws a TypeError
|
||||
Fail Updating CSSSkew.ay with a unitless zero throws a TypeError
|
||||
Fail Updating CSSSkew.ay with a string angle throws a TypeError
|
||||
Fail Updating CSSSkew.ay with a number CSSUnitValue throws a TypeError
|
||||
Fail Updating CSSSkew.ay with a time dimension CSSUnitValue throws a TypeError
|
||||
Fail Updating CSSSkew.ay with a CSSMathValue of length type throws a TypeError
|
||||
Fail CSSSkew can be constructed from an angle CSSUnitValue and an angle CSSUnitValue
|
||||
Fail CSSSkew can be constructed from an angle CSSUnitValue and a CSSMathValue of angle type
|
||||
Fail CSSSkew can be constructed from a CSSMathValue of angle type and an angle CSSUnitValue
|
||||
Fail CSSSkew can be constructed from a CSSMathValue of angle type and a CSSMathValue of angle type
|
||||
Fail CSSSkew.ax can be updated to an angle CSSUnitValue
|
||||
Fail CSSSkew.ax can be updated to a CSSMathValue of angle type
|
||||
Fail CSSSkew.ay can be updated to an angle CSSUnitValue
|
||||
Fail CSSSkew.ay can be updated to a CSSMathValue of angle type
|
||||
Fail Modifying CSSSkew.is2D is a no-op
|
||||
@@ -1,3 +1,24 @@
|
||||
Harness status: Error
|
||||
Harness status: OK
|
||||
|
||||
Found 0 tests
|
||||
Found 19 tests
|
||||
|
||||
19 Fail
|
||||
Fail Constructing a CSSSkewX with a keyword throws a TypeError
|
||||
Fail Constructing a CSSSkewX with a double throws a TypeError
|
||||
Fail Constructing a CSSSkewX with a unitless zero throws a TypeError
|
||||
Fail Constructing a CSSSkewX with a string angle throws a TypeError
|
||||
Fail Constructing a CSSSkewX with a number CSSUnitValue throws a TypeError
|
||||
Fail Constructing a CSSSkewX with a time dimension CSSUnitValue throws a TypeError
|
||||
Fail Constructing a CSSSkewX with a CSSMathValue of length type throws a TypeError
|
||||
Fail Updating CSSSkewX.ax with a keyword throws a TypeError
|
||||
Fail Updating CSSSkewX.ax with a double throws a TypeError
|
||||
Fail Updating CSSSkewX.ax with a unitless zero throws a TypeError
|
||||
Fail Updating CSSSkewX.ax with a string angle throws a TypeError
|
||||
Fail Updating CSSSkewX.ax with a number CSSUnitValue throws a TypeError
|
||||
Fail Updating CSSSkewX.ax with a time dimension CSSUnitValue throws a TypeError
|
||||
Fail Updating CSSSkewX.ax with a CSSMathValue of length type throws a TypeError
|
||||
Fail CSSSkewX can be constructed from an angle CSSUnitValue
|
||||
Fail CSSSkewX can be constructed from a CSSMathValue of angle type
|
||||
Fail CSSSkew.ax can be updated to an angle CSSUnitValue
|
||||
Fail CSSSkew.ax can be updated to a CSSMathValue of angle type
|
||||
Fail Modifying skewX.is2D is a no-op
|
||||
@@ -1,3 +1,24 @@
|
||||
Harness status: Error
|
||||
Harness status: OK
|
||||
|
||||
Found 0 tests
|
||||
Found 19 tests
|
||||
|
||||
19 Fail
|
||||
Fail Constructing a CSSSkewY with a keyword throws a TypeError
|
||||
Fail Constructing a CSSSkewY with a double throws a TypeError
|
||||
Fail Constructing a CSSSkewY with a unitless zero throws a TypeError
|
||||
Fail Constructing a CSSSkewY with a string angle throws a TypeError
|
||||
Fail Constructing a CSSSkewY with a number CSSUnitValue throws a TypeError
|
||||
Fail Constructing a CSSSkewY with a time dimension CSSUnitValue throws a TypeError
|
||||
Fail Constructing a CSSSkewY with a CSSMathValue of length type throws a TypeError
|
||||
Fail Updating CSSSkewY.ay with a keyword throws a TypeError
|
||||
Fail Updating CSSSkewY.ay with a double throws a TypeError
|
||||
Fail Updating CSSSkewY.ay with a unitless zero throws a TypeError
|
||||
Fail Updating CSSSkewY.ay with a string angle throws a TypeError
|
||||
Fail Updating CSSSkewY.ay with a number CSSUnitValue throws a TypeError
|
||||
Fail Updating CSSSkewY.ay with a time dimension CSSUnitValue throws a TypeError
|
||||
Fail Updating CSSSkewY.ay with a CSSMathValue of length type throws a TypeError
|
||||
Fail CSSSkewY can be constructed from an angle CSSUnitValue
|
||||
Fail CSSSkewY can be constructed from a CSSMathValue of angle type
|
||||
Fail CSSSkewY.ay can be updated to an angle CSSUnitValue
|
||||
Fail CSSSkewY.ay can be updated to a CSSMathValue of angle type
|
||||
Fail Modifying skewY.is2D is a no-op
|
||||
@@ -1,3 +1,27 @@
|
||||
Harness status: Error
|
||||
Harness status: OK
|
||||
|
||||
Found 0 tests
|
||||
Found 22 tests
|
||||
|
||||
22 Fail
|
||||
Fail Constructing a CSSTranslate with a CSSUnitValue with type other than length or percent for the coordinates throws a TypeError
|
||||
Fail Constructing a CSSTranslate with a CSSMathValue that doesn't match <length-percentage> for the coordinates throws a TypeError
|
||||
Fail Constructing a CSSTranslate with a percent for the Z coordinate throws a TypeError
|
||||
Fail Updating CSSTranslate.x to a CSSUnitValue with type other than length or percent throws a TypeError
|
||||
Fail Updating CSSTranslate.x to a CSSMathValue that doesn't match <length-percentage> throws a TypeError
|
||||
Fail Updating CSSTranslate.y to a CSSUnitValue with type other than length or percent throws a TypeError
|
||||
Fail Updating CSSTranslate.y to a CSSMathValue that doesn't match <length-percentage> throws a TypeError
|
||||
Fail Updating CSSTranslate.z to a CSSUnitValue with type other than length or percent throws a TypeError
|
||||
Fail Updating CSSTranslate.z to a CSSMathValue that doesn't match <length-percentage> throws a TypeError
|
||||
Fail Updating CSSTranslate.z to a percent throws a TypeError
|
||||
Fail CSSTranslate can be constructed from two length or percent coordinates
|
||||
Fail CSSTranslate can be constructed from three length or percent coordinates
|
||||
Fail CSSTranslate can be constructed from CSSMathValues
|
||||
Fail CSSTranslate.x can be updated to a length
|
||||
Fail CSSTranslate.x can be updated to a percent
|
||||
Fail CSSTranslate.x can be updated to a CSSMathValue
|
||||
Fail CSSTranslate.y can be updated to a length
|
||||
Fail CSSTranslate.y can be updated to a percent
|
||||
Fail CSSTranslate.y can be updated to a CSSMathValue
|
||||
Fail CSSTranslate.z can be updated to a length
|
||||
Fail CSSTranslate.z can be updated to a CSSMathValue
|
||||
Fail Modifying CSSTranslate.is2D can be updated to true or false
|
||||
@@ -2,8 +2,9 @@ Harness status: OK
|
||||
|
||||
Found 7 tests
|
||||
|
||||
7 Fail
|
||||
Fail Adding two types with different non-null percent hints throws TypeError
|
||||
1 Pass
|
||||
6 Fail
|
||||
Pass Adding two types with different non-null percent hints throws TypeError
|
||||
Fail Adding two types with the same nonzero values returns same type
|
||||
Fail Adding two types with empty maps with returns empty map
|
||||
Fail Adding a type with percent returns type with percent hint
|
||||
|
||||
@@ -2,14 +2,14 @@ Harness status: OK
|
||||
|
||||
Found 11 tests
|
||||
|
||||
2 Pass
|
||||
9 Fail
|
||||
3 Pass
|
||||
8 Fail
|
||||
Fail Converting a CSSNumericValue to a sum with invalid units throws SyntaxError
|
||||
Fail Converting a CSSNumericValue with an invalid sum value to a sum throws TypeError
|
||||
Fail Converting a CSSNumericValue with compound units to a sum throws TypeError
|
||||
Pass Converting a CSSNumericValue to a sum with an incompatible unit throws TypeError
|
||||
Pass Converting a CSSNumericValue to a sum with units that are not addable throws TypeError
|
||||
Fail Converting a CSSNumericValue with leftover units to a sum throws TypeError
|
||||
Pass Converting a CSSNumericValue with leftover units to a sum throws TypeError
|
||||
Fail Converting CSSNumericValue to a sum with its own unit returns itself
|
||||
Fail Converting CSSNumericValue to a sum with no arguments returns all the units in sorted order
|
||||
Fail Converting CSSNumericValue to a sum with a relative unit converts correctly
|
||||
|
||||
Reference in New Issue
Block a user