<?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>246909</bug_id>
          
          <creation_ts>2022-10-22 20:32:02 -0700</creation_ts>
          <short_desc>font-style: oblique with calc() should allow out-of-range angles, and clamp them for computed style</short_desc>
          <delta_ts>2022-10-24 12:06:16 -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>WebKit Nightly Build</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>246579</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Tim Nguyen (:ntim)">ntim</reporter>
          <assigned_to name="Darin Adler">darin</assigned_to>
          <cc>darin</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1907600</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2022-10-22 20:32:02 -0700</bug_when>
    <thetext>`font-style: oblique calc(91deg)` is allowed but should be clamped to `font-style: oblique 90deg`
Ditto for `font-style: oblique calc(-91deg)` 

See: https://drafts.csswg.org/css-values-3/#calc-range

WPT: https://wpt.live/css/css-fonts/variations/font-style-parsing.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1907715</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-10-23 20:48:42 -0700</bug_when>
    <thetext>&lt;rdar://problem/101484863&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1907727</commentid>
    <comment_count>2</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2022-10-23 22:50:40 -0700</bug_when>
    <thetext>This test has incorrect expectations. Either the other browsers need to change or the specification does. The specification says that clamping does not have an effect on specified values, but this test requires that calc(91deg) change into 90deg in a specified value.

imported/w3c/web-platform-tests/css/css-fonts/variations/at-font-face-descriptors.html

{ value: &quot;oblique calc(91deg)&quot;,     isValid: true,  expectedValue: &quot;oblique 90deg&quot;, description: &quot;&apos;oblique&apos; followed by calc with out of range value (should be clamped)&quot; },
{ value: &quot;oblique calc(-91deg)&quot;,    isValid: true,  expectedValue: &quot;oblique -90deg&quot;, description: &quot;&apos;oblique&apos; followed by calc with out of range value (should be clamped)&quot; },

Tim, maybe you can help me figure out what to do.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1907729</commentid>
    <comment_count>3</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2022-10-23 23:05:51 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/5695</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1907843</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-10-24 12:06:13 -0700</bug_when>
    <thetext>Committed 255925@main (0effe5fb60bb): &lt;https://commits.webkit.org/255925@main&gt;

Reviewed commits have been landed. Closing PR #5695 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>