<?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>189304</bug_id>
          
          <creation_ts>2018-09-05 06:38:05 -0700</creation_ts>
          <short_desc>&lt;legend align&gt; should not map to text-align</short_desc>
          <delta_ts>2025-05-16 16:07:24 -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>Layout and Rendering</component>
          <version>Safari Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, WPTImpact</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>188643</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Simon Pieters (:zcorpan)">zcorpan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>bfulgham</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1456678</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Pieters (:zcorpan)">zcorpan</who>
    <bug_when>2018-09-05 06:38:05 -0700</bug_when>
    <thetext>See discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=1488228

Spec change: https://github.com/whatwg/html/pull/3934/commits/4363a9406003c7e525453eaf5e2ddca9b222bd04

Test: https://github.com/web-platform-tests/wpt/pull/12811</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1900619</commentid>
    <comment_count>1</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-09-23 06:11:33 -0700</bug_when>
    <thetext>Safari Technology Preview 154 is still failing:

Live Test Link - http://wpt.live/html/rendering/non-replaced-elements/the-fieldset-and-legend-elements/legend-align-text-align.html

Live Test Link - http://wpt.live/html/rendering/non-replaced-elements/the-fieldset-and-legend-elements/legend-align.html

______

https://wpt.fyi/results/html/rendering/non-replaced-elements/the-fieldset-and-legend-elements?label=master&amp;label=experimental&amp;aligned&amp;view=subtest&amp;q=legend-align.html

https://wpt.fyi/results/html/rendering/non-replaced-elements/the-fieldset-and-legend-elements?label=master&amp;label=experimental&amp;aligned&amp;view=subtest&amp;q=legend-align-text-align</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1925302</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-01-13 04:20:07 -0800</bug_when>
    <thetext>(In reply to Ahmad Saleem from comment #1)
&gt; Safari Technology Preview 154 is still failing:
&gt; 
&gt; Live Test Link -
&gt; http://wpt.live/html/rendering/non-replaced-elements/the-fieldset-and-legend-
&gt; elements/legend-align-text-align.html
&gt; 
&gt; Live Test Link -
&gt; http://wpt.live/html/rendering/non-replaced-elements/the-fieldset-and-legend-
&gt; elements/legend-align.html
&gt; 
&gt; ______
&gt; 
&gt; https://wpt.fyi/results/html/rendering/non-replaced-elements/the-fieldset-
&gt; and-legend-
&gt; elements?label=master&amp;label=experimental&amp;aligned&amp;view=subtest&amp;q=legend-align.
&gt; html
&gt; 
&gt; https://wpt.fyi/results/html/rendering/non-replaced-elements/the-fieldset-
&gt; and-legend-
&gt; elements?label=master&amp;label=experimental&amp;aligned&amp;view=subtest&amp;q=legend-align-
&gt; text-align

Does by adding these UA Stylesheet rules, which we are missing, will fix these:

https://html.spec.whatwg.org/multipage/rendering.html#the-fieldset-and-legend-elements

```

legend[align=left i] {
  justify-self: left;
}

legend[align=center i] {
  justify-self: center;
}

legend[align=right i] {
  justify-self: right;
}

```

https://github.com/WebKit/WebKit/blob/main/Source/WebCore/css/html.css#L380</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2099587</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2025-03-01 01:41:39 -0800</bug_when>
    <thetext>*** Bug 264676 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2117768</commentid>
    <comment_count>4</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2025-05-16 16:07:03 -0700</bug_when>
    <thetext>&lt;rdar://problem/118602283&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2117769</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-05-16 16:07:24 -0700</bug_when>
    <thetext>&lt;rdar://problem/151492945&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>