Bug 231516 - [GTK][WPE] fast/css/calc-parsing.html test fails for the hypot() function
Summary: [GTK][WPE] fast/css/calc-parsing.html test fails for the hypot() function
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-11 10:23 PDT by Arcady Goldmints-Orlov
Modified: 2021-12-31 00:52 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arcady Goldmints-Orlov 2021-10-11 10:23:32 PDT
Some of the hypot() subtests are failing on GTK and WPE, though interestingly not all the GTK and WPE bots. In particular, certain cases that should be errors are instead being parsed successfully:

--- /home/buildbot/worker/gtk-linux-64-release-tests/build/layout-test-results/fast/css/calc-parsing-expected.txt
+++ /home/buildbot/worker/gtk-linux-64-release-tests/build/layout-test-results/fast/css/calc-parsing-actual.txt
@@ -193,12 +193,12 @@
 PASS getComputedStyle(element).getPropertyValue('width') is "999px"
 
 element.style["width"] = "hypot(2px, 40%)"
-PASS element.style['width'] is "999px"
-PASS getComputedStyle(element).getPropertyValue('width') is "999px"
+FAIL element.style['width'] should be 999px. Was hypot(2px, 40%).
+FAIL getComputedStyle(element).getPropertyValue('width') should be 999px. Was 40.046875px.
 
 element.style["width"] = "hypot(2px, 3)"
-PASS element.style['width'] is "999px"
-PASS getComputedStyle(element).getPropertyValue('width') is "999px"
+FAIL element.style['width'] should be 999px. Was hypot(2px, 3).
+FAIL getComputedStyle(element).getPropertyValue('width') should be 999px. Was 3.59375px.
 
 element.style["width"] = "hypot(3, ,4)"
 PASS element.style['width'] is "999px"
@@ -453,12 +453,12 @@
 PASS getComputedStyle(element).getPropertyValue('min-width') is "999px"
 
 element.style["min-width"] = "hypot(2px, 40%)"
-PASS element.style['min-width'] is "999px"
-PASS getComputedStyle(element).getPropertyValue('min-width') is "999px"
+FAIL element.style['min-width'] should be 999px. Was hypot(2px, 40%).
+FAIL getComputedStyle(element).getPropertyValue('min-width') should be 999px. Was 40.04996871948242px.
 
 element.style["min-width"] = "hypot(2px, 3)"
-PASS element.style['min-width'] is "999px"
-PASS getComputedStyle(element).getPropertyValue('min-width') is "999px"
+FAIL element.style['min-width'] should be 999px. Was hypot(2px, 3).
+FAIL getComputedStyle(element).getPropertyValue('min-width') should be 999px. Was 3.605551242828369px.
 
 element.style["min-width"] = "hypot(3, ,4)"
 PASS element.style['min-width'] is "999px"