<?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>250293</bug_id>
          
          <creation_ts>2023-01-08 00:37:35 -0800</creation_ts>
          <short_desc>REGRESSION (257171@main): Static media query inside a dynamic media query breaks dynamic evaluation</short_desc>
          <delta_ts>2023-02-05 07:35:55 -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 Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://d5f.org/en</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Karl Dubost">karlcow</reporter>
          <assigned_to name="Antti Koivisto">koivisto</assigned_to>
          <cc>koivisto</cc>
    
    <cc>m_dubet</cc>
    
    <cc>mysteryquest+webkit</cc>
    
    <cc>phiw2</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>webkit</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1923918</commentid>
    <comment_count>0</comment_count>
      <attachid>464410</attachid>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2023-01-08 00:37:35 -0800</bug_when>
    <thetext>Created attachment 464410
test case demonstrating the issue

1. Go the testcase with a wide viewport in Safari

Expected:
the square is green

Actual: 
the square is red.


Firefox and Chrome displays green.


PS: also opened on https://github.com/webcompat/web-bugs/issues/116472

This has a real consequence on the readability of this site
http://d5f.org/en

This is probably a site mistake, but there is still a behavior difference in between Safari
and Chrome/Firefox on the other side.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1923919</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-01-08 00:37:47 -0800</bug_when>
    <thetext>&lt;rdar://problem/103999798&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1923998</commentid>
    <comment_count>2</comment_count>
    <who name="Matthieu Dubet">m_dubet</who>
    <bug_when>2023-01-09 00:26:32 -0800</bug_when>
    <thetext>This is broken in STP and trunk indeed (it works on stable Safari).
The parsing seems correct (with or without the CSS nesting experimental flag).

(I&apos;ve added a small snippet to check it:
&lt;script&gt;
var rule = s.sheet.cssRules[1];
l.textContent = rule.cssText;
&lt;/script&gt;
)

It seems to be a media query evaluation issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1924383</commentid>
    <comment_count>3</comment_count>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2023-01-10 05:22:42 -0800</bug_when>
    <thetext>rdar://103732686</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1924391</commentid>
    <comment_count>4</comment_count>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2023-01-10 06:00:13 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/8457</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1924503</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-01-10 10:12:10 -0800</bug_when>
    <thetext>Committed 258732@main (3e90af4d3b34): &lt;https://commits.webkit.org/258732@main&gt;

Reviewed commits have been landed. Closing PR #8457 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1926537</commentid>
    <comment_count>6</comment_count>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2023-01-18 23:35:58 -0800</bug_when>
    <thetext>*** Bug 250820 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1928142</commentid>
    <comment_count>7</comment_count>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2023-01-25 08:14:52 -0800</bug_when>
    <thetext>*** Bug 251078 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1931208</commentid>
    <comment_count>8</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2023-02-05 07:35:55 -0800</bug_when>
    <thetext>*** Bug 251755 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>464410</attachid>
            <date>2023-01-08 00:37:35 -0800</date>
            <delta_ts>2023-01-08 00:37:35 -0800</delta_ts>
            <desc>test case demonstrating the issue</desc>
            <filename>test-media-css.html</filename>
            <type>text/html</type>
            <size>565</size>
            <attacher name="Karl Dubost">karlcow</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sIGxhbmc9ImVuIj4KICA8aGVhZD4KICAgIDxtZXRhIGNoYXJz
ZXQ9IlVURi04IiAvPgogICAgPG1ldGEgaHR0cC1lcXVpdj0iWC1VQS1Db21wYXRpYmxlIiBjb250
ZW50PSJJRT1lZGdlIiAvPgogICAgPG1ldGEgbmFtZT0idmlld3BvcnQiIGNvbnRlbnQ9IndpZHRo
PWRldmljZS13aWR0aCwgaW5pdGlhbC1zY2FsZT0xLjAiIC8+CiAgICA8dGl0bGU+RG9jdW1lbnQ8
L3RpdGxlPgogICAgPHN0eWxlPgogICAgZGl2IHt3aWR0aDogMTAwMHB4OwogICAgaGVpZ2h0OiA1
MHB4OwogICAgYmFja2dyb3VuZDpncmVlbjt9CgogICAgQG1lZGlhIHNjcmVlbiBhbmQgKG1heC13
aWR0aDogNzAwcHgpIHsKICAgICAgICBAbWVkaWEgcHJpbnQgewogICAgICAgICAgLm5vcHJpbnQg
ewogICAgICAgICAgICBkaXNwbGF5OiBub25lOwogICAgICAgICAgfQogICAgICAgIH0KICAgIGRp
diB7d2lkdGg6MzAwcHg7CiAgICAgICAgYmFja2dyb3VuZDpyZWQ7fQogICAgfQogICAgPC9zdHls
ZT4KICA8L2hlYWQ+CiAgPGJvZHk+CjxkaXY+PC9kaXY+CiAgPC9ib2R5Pgo8L2h0bWw+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>