Re: Media Query Variables

On Mon, 16 Sep 2013 01:59:44 +0200, Tab Atkins Jr. <jackalmage@gmail.com>  
wrote:

> Obviously, multiple sources can match at any given time.  Because of
> this, you'll have some way of choosing between multiple valid sources.
>  This method is almost certainly not stable to additions - adding more
> choices might mean that it's the new option that gets chosen.
>
> A custom MQ is, at first, an invalid MQ, which doesn't match.  As you
> parse in definitions, some of them become valid, which means that the
> set of valid sources might grow.  This means that the "best" choice
> might change as parsing happens.

The proposed algorithm doesn't do best choice. It does first match.

-- 
Simon Pieters
Opera Software

Received on Monday, 16 September 2013 08:40:46 UTC