<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>231516</bug_id>
          
          <creation_ts>2021-10-11 10:23:32 -0700</creation_ts>
          <short_desc>[GTK][WPE] fast/css/calc-parsing.html test fails for the hypot() function</short_desc>
          <delta_ts>2021-12-31 00:52:44 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Arcady Goldmints-Orlov">crzwdjk</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>nmouchtaris</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1802679</commentid>
    <comment_count>0</comment_count>
    <who name="Arcady Goldmints-Orlov">crzwdjk</who>
    <bug_when>2021-10-11 10:23:32 -0700</bug_when>
    <thetext>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(&apos;width&apos;) is &quot;999px&quot;
 
 element.style[&quot;width&quot;] = &quot;hypot(2px, 40%)&quot;
-PASS element.style[&apos;width&apos;] is &quot;999px&quot;
-PASS getComputedStyle(element).getPropertyValue(&apos;width&apos;) is &quot;999px&quot;
+FAIL element.style[&apos;width&apos;] should be 999px. Was hypot(2px, 40%).
+FAIL getComputedStyle(element).getPropertyValue(&apos;width&apos;) should be 999px. Was 40.046875px.
 
 element.style[&quot;width&quot;] = &quot;hypot(2px, 3)&quot;
-PASS element.style[&apos;width&apos;] is &quot;999px&quot;
-PASS getComputedStyle(element).getPropertyValue(&apos;width&apos;) is &quot;999px&quot;
+FAIL element.style[&apos;width&apos;] should be 999px. Was hypot(2px, 3).
+FAIL getComputedStyle(element).getPropertyValue(&apos;width&apos;) should be 999px. Was 3.59375px.
 
 element.style[&quot;width&quot;] = &quot;hypot(3, ,4)&quot;
 PASS element.style[&apos;width&apos;] is &quot;999px&quot;
@@ -453,12 +453,12 @@
 PASS getComputedStyle(element).getPropertyValue(&apos;min-width&apos;) is &quot;999px&quot;
 
 element.style[&quot;min-width&quot;] = &quot;hypot(2px, 40%)&quot;
-PASS element.style[&apos;min-width&apos;] is &quot;999px&quot;
-PASS getComputedStyle(element).getPropertyValue(&apos;min-width&apos;) is &quot;999px&quot;
+FAIL element.style[&apos;min-width&apos;] should be 999px. Was hypot(2px, 40%).
+FAIL getComputedStyle(element).getPropertyValue(&apos;min-width&apos;) should be 999px. Was 40.04996871948242px.
 
 element.style[&quot;min-width&quot;] = &quot;hypot(2px, 3)&quot;
-PASS element.style[&apos;min-width&apos;] is &quot;999px&quot;
-PASS getComputedStyle(element).getPropertyValue(&apos;min-width&apos;) is &quot;999px&quot;
+FAIL element.style[&apos;min-width&apos;] should be 999px. Was hypot(2px, 3).
+FAIL getComputedStyle(element).getPropertyValue(&apos;min-width&apos;) should be 999px. Was 3.605551242828369px.
 
 element.style[&quot;min-width&quot;] = &quot;hypot(3, ,4)&quot;
 PASS element.style[&apos;min-width&apos;] is &quot;999px&quot;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>