W3C home > Mailing lists > Public > www-style@w3.org > February 2015

Re: [mediaqueries] additional types of media features

From: Sanja Bonic <sanja.bonic@univie.ac.at>
Date: Mon, 23 Feb 2015 15:35:06 +0100
Message-ID: <54EB3A9A.3070400@univie.ac.at>
To: www-style@w3.org
Hi Christoph,
@ embedded
Can you provide us with three different use cases where this would be 
useful and can't be solved with existing tools with reasonable 
simplicity? For example:

@media only screen and (max-width: 600px) {/* everything that you'd want 
for embedded here?*/ }

The screen width example would be useful for any smaller versions of the 
site, including embedded versions. There's also the option of using 
alternative stylesheets and activating the one that you intend to be 
used when it's embedded. But maybe you have some use cases in mind where 
an embedded boolean in the media query would be more useful than what's 
already out there?

@ preview
Among other options, I can think of alternative stylesheets here again 
and/or identifying the content you want to hide as {display: none} for 
the purpose of previewing. Again, I might not see the full extent of 
your suggestion, so some use cases where the preview media query is 
superior to what already exists would be useful.

Have a nice day,

On 23-Feb-15 2:31 PM, Henrik Andersson wrote:
> christoph142@gmx.com  skrev:
>> >Hi,
>> >
>> >I’d like to propose two *new media features *namely “embedded”
>> >and “preview”.
>> >
>> >1.
>> >     *”embedded”* (boolean)
>> >     should indicate whether the page is embedded within another one
>> >     (e.g. iframe)
>> >     Use case: I might want to adjust paddings/margins of the page,
>> >     display/hide logos/ads/navigation
>> >2.
>> >     *“preview” *(Boolean)
>> >     should indicate whether the site gets rendered for previewing
>> >     (e.g. speed dials, visual bookmarks)
>> >     Use case: I might want to hide ads / display prominent images for
>> >     easy identification
>> >
>> >
>> >Any feedback is appreciated.
>> >
>> >Christoph
> Embedded seems to lack clear use cases if you ask me. Pages are pretty
> much never designed to work both when embedded and when not.
Received on Monday, 23 February 2015 14:35:38 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:51 UTC