W3C home > Mailing lists > Public > www-style@w3.org > April 2013

[mediaqueries4] Media queries for viewport positions

From: Chris Wilson <hello@iamchriswilson.com>
Date: Tue, 16 Apr 2013 12:12:23 -0500
Message-ID: <CAOMCYmXyhOz-h5NbmjJRsbe2Eq80_xDye+jSmruWN53oBntcTQ@mail.gmail.com>
To: www-style@w3.org
Hi,

Is there anything preventing the creation of media queries based on the
viewport position? More specifically, a media query that would fire *x
*distance
from the top of the document? To stay brief the rough basic spec would be
something like this.

@media type="viewport" from(height: 300px) to(height:800px) {
....
}

This will then give specific styles when the viewport is between 300-800px
from the top of the document. There is a lot of possibility for use and
growth an media query of this type.

Thank you for your time,
Chris Wilson
Received on Tuesday, 16 April 2013 17:26:30 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:10 UTC