<?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>245516</bug_id>
          
          <creation_ts>2022-09-22 00:53:59 -0700</creation_ts>
          <short_desc>legend element does not compute flex as value for display property</short_desc>
          <delta_ts>2022-12-14 23:04:24 -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>CSS</component>
          <version>Safari 16</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>macOS 12</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=116031</see_also>
          <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="Alexander">carrots.profuse.0b</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1900325</commentid>
    <comment_count>0</comment_count>
    <who name="Alexander">carrots.profuse.0b</who>
    <bug_when>2022-09-22 00:53:59 -0700</bug_when>
    <thetext>Overview

The legend element does compute `display: block;` when `display: flex;` is set.
The styles attributes seems to be set correctly (no errors or warnings), but the element&apos;s computed display style is still set to `block`.

Steps to reproduce

Set `display: flex;` to a legend element and open the inspector. The applied styles and computed styles does not match.

Actual result

The `display: flex;` attribute gets overwritten with `display: block`.

Expected result

The legend element should have `display: flex` applied.

Build Date &amp; Hardware

I discovered this 2022-09-22 in Safari 16 on macOS 12.6.
I&apos;ve tested in Safari 16 on macOS 12.6 and Safari on iOS 16.0 and `display: flex;` is ignored in both cases.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1900326</commentid>
    <comment_count>1</comment_count>
    <who name="Alexander">carrots.profuse.0b</who>
    <bug_when>2022-09-22 00:54:59 -0700</bug_when>
    <thetext>I created an example on CodePen: https://codepen.io/alexerlandsson/pen/PoeKBvG.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1901977</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-09-29 00:54:17 -0700</bug_when>
    <thetext>&lt;rdar://problem/100548273&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1919317</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-12-14 14:41:31 -0800</bug_when>
    <thetext>Working fine now in Safari Technology Preview 160 and matches with Chrome Canary 110 and Firefox Nightly 110.

Marking this as &quot;RESOLVED CONFIGURATION CHANGED&quot;. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1919469</commentid>
    <comment_count>4</comment_count>
    <who name="Alexander">carrots.profuse.0b</who>
    <bug_when>2022-12-14 23:04:24 -0800</bug_when>
    <thetext>(In reply to Ahmad Saleem from comment #3)
&gt; Working fine now in Safari Technology Preview 160 and matches with Chrome
&gt; Canary 110 and Firefox Nightly 110.
&gt; 
&gt; Marking this as &quot;RESOLVED CONFIGURATION CHANGED&quot;. Thanks!

I&apos;ve verified it in Safari Technology Preview 160 and everything looks fine. Thank you!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>