<?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>180234</bug_id>
          
          <creation_ts>2017-11-30 20:46:12 -0800</creation_ts>
          <short_desc>Implement syntax improvements for media queries from level 4 specification</short_desc>
          <delta_ts>2023-02-21 07:20:56 -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>WebKit Nightly Build</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>https://drafts.csswg.org/mediaqueries-4/#mq-syntax</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>FromImplementor, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>243771</dependson>
    
    <dependson>246205</dependson>
    
    <dependson>246398</dependson>
    
    <dependson>246452</dependson>
    
    <dependson>246517</dependson>
    
    <dependson>246611</dependson>
    
    <dependson>246628</dependson>
    
    <dependson>246690</dependson>
    
    <dependson>246804</dependson>
    
    <dependson>246948</dependson>
    
    <dependson>247061</dependson>
    
    <dependson>247118</dependson>
    
    <dependson>247263</dependson>
    
    <dependson>248236</dependson>
    
    <dependson>248342</dependson>
    
    <dependson>248391</dependson>
    
    <dependson>248530</dependson>
    
    <dependson>248594</dependson>
    
    <dependson>248619</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Florian Rivoal">florian</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>50167214</cc>
    
    <cc>aaron_chu</cc>
    
    <cc>dev</cc>
    
    <cc>dino</cc>
    
    <cc>emilio</cc>
    
    <cc>firefoxic.dev</cc>
    
    <cc>kevin.legouguec</cc>
    
    <cc>koivisto</cc>
    
    <cc>kolemen.annie</cc>
    
    <cc>kyle.bavender</cc>
    
    <cc>miriam</cc>
    
    <cc>rik</cc>
    
    <cc>sebastianalfabc</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1376700</commentid>
    <comment_count>0</comment_count>
    <who name="Florian Rivoal">florian</who>
    <bug_when>2017-11-30 20:46:12 -0800</bug_when>
    <thetext>CSS Media Quries Level 4 bring in a bunch of syntactic improvements. They make media queries much more readable and maintainable.

https://drafts.csswg.org/mediaqueries-4/#mq-syntax

Here&apos;s an example:

Before:

@media (min-width: 20em), not all and (min-height: 40em) {
  @media not all and (pointer: none) {
    …
  }
}

After:

@media ((width &gt;= 20em) or (height &lt; 40em)) and (pointer) {
  …
}</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1377693</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2017-12-04 08:10:47 -0800</bug_when>
    <thetext>&lt;rdar://problem/35829622&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1659664</commentid>
    <comment_count>2</comment_count>
    <who name="Vadim Makeev">hi</who>
    <bug_when>2020-06-05 10:08:11 -0700</bug_when>
    <thetext>2020 state of the feature:

1. It’s implemented in Firefox
2. There’s open issue in Chromium https://bugs.chromium.org/p/chromium/issues/detail?id=1034465
3. There’s PostCSS plugin to make it work after the build step https://github.com/postcss/postcss-media-minmax</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1884004</commentid>
    <comment_count>3</comment_count>
    <who name="yisibl">50167214</who>
    <bug_when>2022-07-15 01:37:18 -0700</bug_when>
    <thetext>The range syntax has been released in Chrome 104[1], and @container in Safari 16 also supports range syntax.

[1]: https://chromestatus.com/feature/5203042742829056</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1916196</commentid>
    <comment_count>4</comment_count>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2022-12-02 04:03:34 -0800</bug_when>
    <thetext>This is now implemented.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1935499</commentid>
    <comment_count>5</comment_count>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2023-02-21 07:20:56 -0800</bug_when>
    <thetext>*** Bug 167031 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>