<?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>233238</bug_id>
          
          <creation_ts>2021-11-16 20:53:01 -0800</creation_ts>
          <short_desc>Web Inspector: Nested style groupings are presented in reverse order in Styles sidebar panel</short_desc>
          <delta_ts>2021-11-16 20:53:17 -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>Web Inspector</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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="Patrick Angle">pangle</reporter>
          <assigned_to name="Patrick Angle">pangle</assigned_to>
          <cc>inspector-bugzilla-changes</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1815810</commentid>
    <comment_count>0</comment_count>
    <who name="Patrick Angle">pangle</who>
    <bug_when>2021-11-16 20:53:01 -0800</bug_when>
    <thetext>Given a rule like
```
@media (min-width: 100px) {
    @supports(color: red) {
        body {
            background-color: red;
        }
    }
}
```

we currently show a list of grouping above the rule in the style sidebar in the reverse of that order. e.g.:
```
@support (color: red)
@media (min-width: 100px)
body {
    background-color: red;
}
```

But it would actually make more sense for us to mirror the declaration more closely and show...
```
@media (min-width: 100px)
@support (color: red)
body {
    background-color: red;
}
```

as it better represents the original CSS. This becomes particularly noticeable with bug 233208 which adds showing `@layer` groupings, where the order is important.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1815812</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-11-16 20:53:17 -0800</bug_when>
    <thetext>&lt;rdar://problem/85488875&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>