<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>13039</bug_id>
          
          <creation_ts>2011-06-24 06:56:08 +0000</creation_ts>
          <short_desc>&quot;media only screen&quot; flagged as error</short_desc>
          <delta_ts>2011-10-31 13:30:48 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSSValidator</product>
          <component>CSS 3</component>
          <version>CSS Validator</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Owen Leibman">eclipsechasers2</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>50212</commentid>
    <comment_count>0</comment_count>
    <who name="Owen Leibman">eclipsechasers2</who>
    <bug_when>2011-06-24 06:56:08 +0000</bug_when>
    <thetext>A lot of pages suggest the following as a media query for smartphones:
@media only screen and (max-device-width: 480px) { ...
This is flagged with the error message &quot;unrecognized media only&quot;.

Aside from its widespread use, I see that the W3C candidate recommendation for media queries
http://www.w3.org/TR/css3-mediaqueries/
explicitly allows such a construction (see Example IX, prefaced by the comment: &quot;The keyword only can also be used to hide style sheets from older user agents. User agents must process media queries starting with only as if the only keyword was not present.&quot;)

So it sounds like this message is being issued erroneously. For the record, I selected CSS3 level 3 as the profile.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59289</commentid>
    <comment_count>1</comment_count>
    <who name="Yves Lafon">ylafon</who>
    <bug_when>2011-10-31 13:30:48 +0000</bug_when>
    <thetext>Fixed, the support for media-queries has been redone form scratch, as a result it solved this bug.
See http://qa-dev.w3.org:8001/css-validator/</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>