<?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>263141</bug_id>
          
          <creation_ts>2023-10-13 15:22:14 -0700</creation_ts>
          <short_desc>@property integer syntax rounds numbers incorrectly</short_desc>
          <delta_ts>2023-10-14 08:00:46 -0700</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>Safari 16</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>260777</dup_id>
          
          <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="Jane Ori">janeori</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ntim</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1985000</commentid>
    <comment_count>0</comment_count>
    <who name="Jane Ori">janeori</who>
    <bug_when>2023-10-13 15:22:14 -0700</bug_when>
    <thetext>Safari is using an away-from-zero rounding strategy to cast number values assigned to an integer property.

Chrome uses the &quot;nearest&quot; strategy that JS&apos;s Math.round() uses.
&quot;nearest&quot; is also the default rounding for the round() CSS function

Here is a reduced test case showing the differences:

https://codepen.io/propjockey/pen/vYvMbaX/253c4756c72e962cb10b0c19b396ea37?editors=1100

Thank you!
// Jane</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1985108</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2023-10-14 08:00:46 -0700</bug_when>
    <thetext>I switched to using a towards positive infinity rounding strategy in bug 260777. Can you please re-test in STP?

*** This bug has been marked as a duplicate of bug 260777 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>