<?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>267180</bug_id>
          
          <creation_ts>2024-01-06 09:57:56 -0800</creation_ts>
          <short_desc>[SVG2] Add support for the &apos;turn&apos; unit in &lt;angle&gt;</short_desc>
          <delta_ts>2024-02-15 16:40:58 -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>SVG</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=269429</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ahmad Saleem">ahmad.saleem792</reporter>
          <assigned_to name="Karl Dubost">karlcow</assigned_to>
          <cc>annevk</cc>
    
    <cc>heycam</cc>
    
    <cc>karlcow</cc>
    
    <cc>sabouhallawa</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2003383</commentid>
    <comment_count>0</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2024-01-06 09:57:56 -0800</bug_when>
    <thetext>Hi Team,

I couldn&apos;t manage to find any existing bug, so I thought to create so we can track it.

Blink commit: https://src.chromium.org/viewvc/blink?view=revision&amp;revision=176014

Test Case (failing in Safari): https://jsfiddle.net/kp73dsao/show

^ Firefox Nightly 123 and Chrome Canary 123 support this and match.

Just wanted to raise and track it.

I manage to do local patch with above Blink and it compiles but does not progress test, so I think &apos;marker&apos; supporting &apos;turn&apos; might be missing.

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2004403</commentid>
    <comment_count>1</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2024-01-11 05:06:06 -0800</bug_when>
    <thetext>SVG2 Draft
https://svgwg.org/svg2-draft/types.html#InterfaceSVGAngle

There is a sentence about 
https://svgwg.org/svg2-draft/types.html#__svg__SVGAngle__SVG_ANGLETYPE_UNKNOWN

&gt; For example, for an &lt;angle&gt; with a turn unit, SVG_ANGLETYPE_UNKNOWN would be returned.

At the same time, there is link to https://www.w3.org/TR/css-values/#angles
which defines turn as a possible value.


It creates something bizarre where 
Source/WebCore/svg/SVGAngleValue.h would be

class SVGAngleValue {
    WTF_MAKE_FAST_ALLOCATED;
public:
    enum Type {
        SVG_ANGLETYPE_UNKNOWN = 0,
        SVG_ANGLETYPE_UNSPECIFIED = 1,
        SVG_ANGLETYPE_DEG = 2,
        SVG_ANGLETYPE_RAD = 3,
        SVG_ANGLETYPE_GRAD = 4,
        SVG_ANGLETYPE_TURN = 5
    };


and Source/WebCore/svg/SVGAngle.idl would be

[
    ConstantsScope=SVGAngleValue,
    Exposed=Window
] interface SVGAngle {
    // Angle Unit Types
    const unsigned short SVG_ANGLETYPE_UNKNOWN = 0;
    const unsigned short SVG_ANGLETYPE_UNSPECIFIED = 1;
    const unsigned short SVG_ANGLETYPE_DEG = 2;
    const unsigned short SVG_ANGLETYPE_RAD = 3;
    const unsigned short SVG_ANGLETYPE_GRAD = 4;


Let&apos;s ask Cameron or Anne


It doesn&apos;t really address the question directly
https://github.com/w3c/svgwg/issues/478

but there was this in 2018
https://github.com/w3c/svgwg/issues/424#issuecomment-408998878

Anyway, I have a patch, but still suspicious if it&apos;s the right thing to do.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2004405</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-01-11 05:06:16 -0800</bug_when>
    <thetext>&lt;rdar://problem/120840743&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2004406</commentid>
    <comment_count>3</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2024-01-11 05:09:41 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/22653</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2014218</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-02-15 16:40:55 -0800</bug_when>
    <thetext>Committed 274778@main (82c987e62f88): &lt;https://commits.webkit.org/274778@main&gt;

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

    </bug>

</bugzilla>