<?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>241164</bug_id>
          
          <creation_ts>2022-05-31 17:15:39 -0700</creation_ts>
          <short_desc>text-align: match-parent on root handles direction incorrectly</short_desc>
          <delta_ts>2022-06-01 22:07:15 -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 Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kiet Ho">kiet.ho</reporter>
          <assigned_to name="Tim Nguyen (:ntim)">ntim</assigned_to>
          <cc>kiet.ho</cc>
    
    <cc>ntim</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1873180</commentid>
    <comment_count>0</comment_count>
    <who name="Kiet Ho">kiet.ho</who>
    <bug_when>2022-05-31 17:15:39 -0700</bug_when>
    <thetext>Failing WPT test: https://wpt.fyi/results/css/css-text/text-align/text-align-match-parent-root-rtl.html?label=master&amp;label=experimental&amp;aligned&amp;q=text-align-match-parent-root-rtl.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1873207</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2022-05-31 19:48:48 -0700</bug_when>
    <thetext>We do use the direction of the parent, which is effectively why it&apos;s wrong for the WPT: https://webkit-search.igalia.com/webkit/rev/00d01db2338b1568d39aa439334f39f0353d0b00/Source/WebCore/style/StyleBuilderConverter.h#617-622

There&apos;s no parent in the WPT, so it should just behave like `text-align: start`.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1873208</commentid>
    <comment_count>2</comment_count>
    <who name="Kiet Ho">kiet.ho</who>
    <bug_when>2022-05-31 19:51:18 -0700</bug_when>
    <thetext>(In reply to Tim Nguyen (:ntim) from comment #1)
&gt; We do use the direction of the parent, which is effectively why it&apos;s wrong
&gt; for the WPT:
&gt; https://webkit-search.igalia.com/webkit/rev/
&gt; 00d01db2338b1568d39aa439334f39f0353d0b00/Source/WebCore/style/
&gt; StyleBuilderConverter.h#617-622
&gt; 
&gt; There&apos;s no parent in the WPT, so it should just behave like `text-align:
&gt; start`.

I see what you mean now - I didn&apos;t want to give this a generic &quot;failing WPT test&quot; title, but I also didn&apos;t do any digging into the root cause, so I just named it according to my best guess.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1873284</commentid>
    <comment_count>3</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2022-06-01 05:51:23 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/1208</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1873513</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-06-01 22:06:16 -0700</bug_when>
    <thetext>Committed r295120 (251211@main): &lt;https://commits.webkit.org/251211@main&gt;

Reviewed commits have been landed. Closing PR #1208 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1873514</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-06-01 22:07:15 -0700</bug_when>
    <thetext>&lt;rdar://problem/94266878&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>