- From: Scott Miles <sjmiles@google.com>
- Date: Mon, 3 Nov 2014 14:01:07 -0800
- To: "Tab Atkins Jr." <jackalmage@gmail.com>
- Cc: Gabor Krizsanits <gkrizsanits@mozilla.com>, Hajime Morrita <morrita@google.com>, public-webapps <public-webapps@w3.org>
- Message-ID: <CAHbmOLb-RC_0trfg_QM-3DmrK7tw4nDv9f+43-n4JFVihrLaig@mail.gmail.com>
I know this is probably the wrong place/time to say this, but fwiw, a primary use case for imports is replacing: <script src="my-lib/my-lib.js"></script> <!-- the script above might have some HTML in it, encoded as a string, comment, or other hack --> <!-- the script above may load additional dependencies via some elaborate loader --> <link rel="stylesheet" href="my-lib/my-lib.css> with <link rel="import" href="my-lib/my-lib.html"> <!-- html and transitive loading all taken care of by imports --> Having the imported stylesheets apply to the main document is a big part of the value here. If the stylesheets are for some other purpose, it's easy to put them in a <template>, but the reverse is not true. I realize implementation difficulty may trump ergonomics, but I wanted to make sure this part was heard. Scott On Mon, Nov 3, 2014 at 10:12 AM, Tab Atkins Jr. <jackalmage@gmail.com> wrote: > On Mon, Nov 3, 2014 at 7:28 AM, Gabor Krizsanits > <gkrizsanits@mozilla.com> wrote: > > During our last meeting we all seemed to agree on that > defining/implementing > > order for style-sheets is imports is super hard (if possible) and will > bring more > > pain than it's worth for the web (aka. let's not make an already > over-complicated > > system twice as complicated for very little benefits). And the consensus > was that we > > should just not allow global styles in imports. > > > > Some months has passed but I still don't see any update on the spec. in > this regard, > > so I'm just double checking that we still planning to do this or if > anything changed > > since then. > > Out of curiosity, why is it hard? Without much background in the > implementation matters, it doesn't seem that a <link rel=import> that > contains a <link rel=stylesheet> should be any different than a <link > rel=stylesheet> that contains an @import rule. > > ~TJ > >
Received on Monday, 3 November 2014 22:01:35 UTC