<?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>256040</bug_id>
          
          <creation_ts>2023-04-27 07:33:34 -0700</creation_ts>
          <short_desc>Do not parse caption-side: left / right as valid CSS</short_desc>
          <delta_ts>2023-05-19 09:50: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>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=252516</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar, WPTImpact</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="Nobody">webkit-unassigned</assigned_to>
          <cc>annevk</cc>
    
    <cc>karlcow</cc>
    
    <cc>ntim</cc>
    
    <cc>sam</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1951579</commentid>
    <comment_count>0</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-04-27 07:33:34 -0700</bug_when>
    <thetext>Hi Team,

Currently we are failing following WPT test (two sub-tests) in STP168 &amp; WebKit ToT:

Test Case View - https://wpt.fyi/results/css/css-tables/parsing/caption-side-invalid.html?label=master&amp;label=experimental&amp;aligned=&amp;q=css-tables%2F

Test Case Link - http://wpt.live/css/css-tables/parsing/caption-side-invalid.html

Blink fixed it via following commit - https://chromium.googlesource.com/chromium/src.git/+/4af5b86049ac7e3b8fb3db9b5cb9383386dd7bbe

Just wanted to raise so we can track and fix it and it might be quick win.

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1951580</commentid>
    <comment_count>1</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-04-27 07:44:26 -0700</bug_when>
    <thetext>I tried to find for cases in &apos;CSSPropertyCaptionSide&apos; but couldn&apos;t find except this:

https://searchfox.org/wubkat/source/Source/WebCore/css/parser/CSSPropertyParser.cpp#1139

and then this:

https://searchfox.org/wubkat/source/Source/WebCore/css/CSSProperties.json#3071

______

Let me try to remove &apos;left&apos; and &apos;right&apos; from .json file from above and see if it works.

Although, if we need to remove elsewhere as well, appreciate if someone else can guide. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1951590</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-04-27 08:22:53 -0700</bug_when>
    <thetext>(In reply to Ahmad Saleem from comment #1)
&gt; I tried to find for cases in &apos;CSSPropertyCaptionSide&apos; but couldn&apos;t find
&gt; except this:
&gt; 
&gt; https://searchfox.org/wubkat/source/Source/WebCore/css/parser/
&gt; CSSPropertyParser.cpp#1139
&gt; 
&gt; and then this:
&gt; 
&gt; https://searchfox.org/wubkat/source/Source/WebCore/css/CSSProperties.
&gt; json#3071
&gt; 
&gt; ______
&gt; 
&gt; Let me try to remove &apos;left&apos; and &apos;right&apos; from .json file from above and see
&gt; if it works.
&gt; 
&gt; Although, if we need to remove elsewhere as well, appreciate if someone else
&gt; can guide. Thanks!

Removing just from CSSProperties.json makes us pass this bit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1951712</commentid>
    <comment_count>3</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2023-04-27 18:33:01 -0700</bug_when>
    <thetext>I see mentions of left/right associated to captionside in 

https://searchfox.org/wubkat/rev/36b39fa88451d43c2afb6996534a13381260008e/Source/WebCore/rendering/style/RenderStyleConstants.h#751-756

https://searchfox.org/wubkat/rev/36b39fa88451d43c2afb6996534a13381260008e/Source/WebCore/css/CSSPrimitiveValueMappings.h#561-565

https://searchfox.org/wubkat/rev/36b39fa88451d43c2afb6996534a13381260008e/Source/WebCore/rendering/style/RenderStyleConstants.cpp#222-231


but captionside was added by Sam Weinig very early in 2008.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1951716</commentid>
    <comment_count>4</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2023-04-27 18:40:46 -0700</bug_when>
    <thetext>That said, I wonder about left and right because of the spec:

&gt; These two values are added only for implementations that support left and right values for caption-side. The left and right values themselves are defined to be line-relative.
— https://w3c.github.io/csswg-drafts/css-logical/#caption-side


The two values being `inline-start` and `inline-end`.


&gt; line-relative
&gt; Interpreted relative to the orientation of the line box. The line-relative directions are line-left, line-right, line-over, and line-under.
— https://w3c.github.io/csswg-drafts/css-writing-modes-4/#line-relative</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1952886</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-05-04 07:34:19 -0700</bug_when>
    <thetext>&lt;rdar://problem/108892083&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1953127</commentid>
    <comment_count>6</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-05-05 04:31:07 -0700</bug_when>
    <thetext>(In reply to Ahmad Saleem from comment #2)
&gt; (In reply to Ahmad Saleem from comment #1)
&gt; &gt; I tried to find for cases in &apos;CSSPropertyCaptionSide&apos; but couldn&apos;t find
&gt; &gt; except this:
&gt; &gt; 
&gt; &gt; https://searchfox.org/wubkat/source/Source/WebCore/css/parser/
&gt; &gt; CSSPropertyParser.cpp#1139
&gt; &gt; 
&gt; &gt; and then this:
&gt; &gt; 
&gt; &gt; https://searchfox.org/wubkat/source/Source/WebCore/css/CSSProperties.
&gt; &gt; json#3071
&gt; &gt; 
&gt; &gt; ______
&gt; &gt; 
&gt; &gt; Let me try to remove &apos;left&apos; and &apos;right&apos; from .json file from above and see
&gt; &gt; if it works.
&gt; &gt; 
&gt; &gt; Although, if we need to remove elsewhere as well, appreciate if someone else
&gt; &gt; can guide. Thanks!
&gt; 
&gt; Removing just from CSSProperties.json makes us pass this bit.

Plus I run following:

Tools/Scripts/run-webkit-tests fast/table imported/w3c/web-platform-tests/css/ imported/w3c/web-platform-tests/html/semantics


to see, if we fail any &apos;caption&apos; tests except just two progressions. I think we don&apos;t have any regressions or failure but also to highlight, we haven&apos;t imported &apos;css-table&apos; from the WPT yet (which is bug 252516). So we don&apos;t know full breakage as well but just wanted to give what I have tried so far on this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1955665</commentid>
    <comment_count>7</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2023-05-16 07:40:44 -0700</bug_when>
    <thetext>Let&apos;s hope that it will be useful to solve this issue. :) 
https://github.com/WebKit/WebKit/pull/13920</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1956379</commentid>
    <comment_count>8</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2023-05-18 20:48:32 -0700</bug_when>
    <thetext>Ahmad, 
/css/css-tables are imported.
Bug bug 252516 is closed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1956435</commentid>
    <comment_count>9</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-05-19 04:44:35 -0700</bug_when>
    <thetext>(In reply to Karl Dubost from comment #8)
&gt; Ahmad, 
&gt; /css/css-tables are imported.
&gt; Bug bug 252516 is closed.

Thanks @Karl. Appreciate it.

PR - https://github.com/WebKit/WebKit/pull/14069</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1956522</commentid>
    <comment_count>10</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-05-19 09:50:44 -0700</bug_when>
    <thetext>Committed 264262@main (402ed699af6c): &lt;https://commits.webkit.org/264262@main&gt;

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

    </bug>

</bugzilla>