Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8439553
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T08:01:39+00:00 2026-06-10T08:01:39+00:00

W3C standards doc says: User agents are to represent a media query as "not

  • 0

W3C standards doc says:

User agents are to represent a media query as "not all" when one of the specified media features is not known.

Then it gives following example:

<link rel="stylesheet" media="screen and (max-weight: 3kg) and (color), (color)" href="example.css" />

It then says that the first media query will be represented as "not all" and evaluate to false and the second media query is evaluated as if the first had not been specified, effectively.

Why is it like that. I hope that’s because 3kg value for max-weight is not the valid value, which is not explained in doc as a reason. However I cant see any unknown media-feature but "Unknown media feature value", which is discussed separately in the document just after "Unknown media features". I think this example should have been put below "Unknown media feature value" but not in "Unknown media features".

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T08:01:40+00:00Added an answer on June 10, 2026 at 8:01 am

    The unknown media feature that the example is referring to is max-weight. Once that is encountered, the 3kg value is no longer relevant since it will never be applicable anyway, because the browser won’t know what to do with max-weight in the first place. So it skips that media query altogether, leaving you effectively with this:

    <link rel="stylesheet" media="not all, (color)" href="example.css" />
    

    Which is the same as this:

    <link rel="stylesheet" media="(color)" href="example.css" />
    

    Media features are described in another section. The first sentence states:

    Syntactically, media features resemble CSS properties: they have names and accept certain values.

    So it only makes sense to describe error handling of the media features themselves first, then handling of their values.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

According to W3C standards, if you have a nillable element with a nil value,
I'm using the W3C CSS Validator with the Profile CSS3 but the validator says
Code is W3C valid, and everything should be fine. But when user clicks the
Which of the two methods conforms to W3C standards? Do they both behave as
Not sure if this is a stack or not. Does it conform to W3C
Possible Duplicate: datetime to string with time zone This is one of the W3C
I think most people agree that complying with W3C standards is a worthwhile pursuit.
thanks in advance for your help. I'm currently trying to create a w3c standards
The W3C definition seems a bit vague when it comes to the <nav> tag:
I am creating a W3C Document object using a String value. Once I created

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.