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

Re: [selector-profiles] confusion

From: Lea Verou <lea@w3.org>
Date: Thu, 11 Jul 2013 21:58:32 +0300
Cc: François REMY <francois.remy.dev@outlook.com>, "Tab Atkins Jr." <jackalmage@gmail.com>, Brian Kardell <bkardell@gmail.com>, www-style list <www-style@w3.org>
Message-Id: <7C030F89-0AB4-4CD3-ADAC-AC9E97BA5618@w3.org>
To: "L. David Baron" <dbaron@dbaron.org>
Here’s another idea: 

Adding a CSSOM method on CSSStyleSheet that applies/updates such rules every time it runs. The author could then decide at which point to run it and even when it needs to update. Best of both worlds :)

Thoughts?

On Jul 11, 2013, at 21:54, "L. David Baron" <dbaron@dbaron.org> wrote:

> On Thursday 2013-07-11 18:46 +0300, Lea Verou wrote:
>> Or there could just be a @static rule, with everything inside
>> running statically, including fast selectors. Just an idea.
> 
> I don't think this works, since either:
> 
> (a) these selectors don't run until the page is loaded completely,
> leaving the page in a broken state until it loads, or
> 
> (b) these selectors run once at some point doing pageload, and thus
> whether they match depends on exactly what the points of
> incremental loading are.  For example, a selector like:
>   !.article > h2
> won't match when the network packet boundary happens to come
> between <div class="article"> and <h2>.  This sort of
> nondeterministic behavior is unacceptable; authors won't understand
> it, and will blame the browser, or authors won't even see it, and
> the users will blame the browser.
> 
> -David
> 
> -- 
> 𝄞   L. David Baron                         http://dbaron.org/   𝄂
> 𝄢   Mozilla                           http://www.mozilla.org/   𝄂
Received on Thursday, 11 July 2013 18:58:43 UTC

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