Re: Element Query and Selector Media Query Types

Thanks for the response, Steve.

iframes render the inner client width, so it treats the width of the
iframe's content as the viewport width of the inner content.

This approach would not work for @srcset, but it would work with picture
element and provide the first really good use case for it. This is because
media types with features can be used with <picture /> and I'm just talking
about a new media type.

I'm not sure if I follow your min/max content-width concern. My initial
thoughts would be that the @media content type would be an issue with
repaint and reflow for page render due to affects of text styling, similar
to issues around box model.

Did you see the example I did for this:

​

Thanks again!
*Kevin Mack*

On Mon, Oct 20, 2014 at 12:32 PM, Steve Claflin <steve@steveclaflin.com>
wrote:

> New here, but weighing in...
>
> I'm not fond of that concept as written.  It seems like a misuse of media
> queries to me.  Although that makes me wonder what the media query width
> measurement base is for an iframe - the iframe or the containing window?
>
> But, I do like the possibility of a pseudo selector:
>
> .nav:max-width (300px)
>
> .nav:max-width (30em)
>
> "An element with the nav class whose width is less than or equal to ..."
>
> And, of course, min-width as well.  Probably only valid for block
> elements.
>
> For any element:
>
> h3:min-content-width (10em)
>
> Where min and max-content-width measure the unwrapped width of the element
> (font metrics).  That has the potential for ping-ponging, though (if the
> width is in px and the rule shrinks the font, for example).
>
> Also, it seems like anything along these lines is outside the scope of
> responsive images :(
>
> Steve Claflin
>
>
>
> Sent from my Verizon Wireless 4G LTE smartphone
>
>
> -------- Original message --------
> From: Kevin Mack
> Date:10/20/2014 9:45 AM (GMT-05:00)
> To: public-respimg@w3.org
> Subject: Re: Element Query and Selector Media Query Types
>
> Wanted to see if anyone else had any thoughts/opinions on *Element Query
> and Selector Media Query Types*? I want to really start pushing these but
> I want to make sure that I have support of the community and these have
> been thought-through.
>
> Let me know, it's very appreciated // Thank you!
> *Kevin Mack*
>
>
>
>>
>

Received on Monday, 20 October 2014 20:47:44 UTC