<?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>75772</bug_id>
          
          <creation_ts>2012-01-06 23:28:47 -0800</creation_ts>
          <short_desc>REGRESSION (r104060): Some CSS media queries are ignored</short_desc>
          <delta_ts>2012-01-07 04:31:41 -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>528+ (Nightly build)</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>OS X 10.7</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>75633</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Philippe Wittenbergh">phiw2</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>koivisto</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>531612</commentid>
    <comment_count>0</comment_count>
    <who name="Philippe Wittenbergh">phiw2</who>
    <bug_when>2012-01-06 23:28:47 -0800</bug_when>
    <thetext>test case (resize the window horizontally to less than 500px):
http://dev.l-c-n.com/webkit/mq/mq2.html

Media queries inside general purpose stylesheets - e.g. @media screen and (min-width:500px) - are ignored (not applied).
Opening the WebInspector makes the media query suddenly apply (magic !)

I suspect http://trac.webkit.org/changeset/104060

Stylesheets that are linked with media queries in the html still work correctly
like this:
&lt;link rel=&quot;stylesheet&quot; href=&quot;./style-desktop.css&quot; type=&quot;text/css&quot; media=&quot;all and (min-width:500px)&quot;&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>531619</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2012-01-06 23:41:36 -0800</bug_when>
    <thetext>Looks like Antti broke this with &lt;http://trac.webkit.org/changeset/104060&gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>531640</commentid>
    <comment_count>2</comment_count>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2012-01-07 04:31:41 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 75633 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>