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

Re: [css-device-adapt] Bad way to solve circular dependency

From: Rune Lillesveen <rune@opera.com>
Date: Fri, 10 Apr 2015 13:13:47 +0200
Message-ID: <CANz6XvQJzthg1vNc+BPrYdeFBKjWbVxVjqwC3oKTNw7AA4UyZg@mail.gmail.com>
To: Andrea Rendine <master.skywalker.88@gmail.com>
Cc: Florian Rivoal <florian@rivoal.net>, www-style list <www-style@w3.org>
On Fri, Apr 10, 2015 at 12:44 PM, Andrea Rendine
<master.skywalker.88@gmail.com> wrote:
>> The current behavior leads to The Right Thing (tm) in situations where the author isn't contradicting himself, and give predictable (if somewhat counter intuitive) results when he does. I think we should keep it this way.
> Florian, I agree that the presented case is quite messy on the side of
> the author's mind, but then, why not simply stating "@viewport in
> media blocks are not considered at all"? This would be easier to
> understand IMHO.

1. That was discussed, but the argument against was that we would
still need to handle the media query case for the media attribute:

<style media="(min-width: 500px)">@viewport { width: 400px }</style>

2. There is a proposal to drop min/max-prefixes and rely on media
queries instead. So instead of:

@viewport { min-width: 400px }


@viewport { width: 400px }
@media (min-width: 400px) {
    @viewport { width: auto }

Rune Lillesveen
Received on Friday, 10 April 2015 11:14:15 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:50 UTC