[Bug 23233] New: Remove race condition for things that cause a download

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

            Bug ID: 23233
           Summary: Remove race condition for things that cause a download
           Product: CSS
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Variables
          Assignee: jackalmage@gmail.com
          Reporter: simonp@opera.com
        QA Contact: public-css-bugzilla@w3.org

Consider

<link rel=stylesheet href=foo.css>
<style>
html { background-image: var(foo, "fallback.jpg"); }
</style>

/* foo.css */
html { var-foo: "bar.jpg"; }


Now, if foo.css doesn't load quickly enough, the inline style will start
downloading fallback.jpg, and then when foo.css has loaded, the inline style
will instead start downloading bar.jpg, as far as I can tell. If foo.css does
load quickly enough, only bar.jpg will be downloaded.

I think this is a bad situation that we shouldn't allow. Maybe the fallback
should be ignored for properties that download something, like
background-image?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Friday, 13 September 2013 09:00:54 UTC