https://www.w3.org/Bugs/Public/show_bug.cgi?id=24756

            Bug ID: 24756
           Summary: [imports]: Cascading order for stylesheets of imported
                    documents should be stated more clearly
           Product: WebAppsWG
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Component Model
          Assignee: dglaz...@chromium.org
          Reporter: morr...@google.com
        QA Contact: public-webapps-bugzi...@w3.org
                CC: m...@w3.org, public-webapps@w3.org
            Blocks: 20683

This is follow-up for Bug 24616.

The spec states how it should be ordered [1] but it should be clearer.
Basically,

A) The imported style has tree order, 
   The tree order in the import referrer is defined by the location
   of <link rel=import>.
B) If there are multiple link to the same document, the first one should win.

A) is for developer ergonomics. <link rel=stylesheet> works in this way,
   so import is better to follow the same pattern
B) is for eliminating duplication. The "first wins" rule is same as
   what it does for <script>

[1]
https://github.com/w3c/webcomponents/commit/600f7bf2f06b2cb5f712fc5dc928085682502941

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to