New issue
Advanced search Search tips

Issue 637072 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 618165
Owner: ----
Closed: Aug 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Bug



Sign in to add a comment

background-image doesn't work from a @apply rule if the url doesn't specify the scheme

Project Member Reported by egarciad@chromium.org, Aug 11 2016

Issue description

Version: 52.0.2743.116 (64-bit)
OS: OSX El Capitan  V10.11.6 (15G31)

What steps will reproduce the problem?
(1) The following style sheet:
<style>
  :root {
    --foo: {
       background-image: url(//app-layout-assets.appspot.com/assets/bg1.jpg);

      /* This does work: background-image: url(https://app-layout-assets.appspot.com/assets/bg1.jpg); */
    };
  }

  body {
    @apply --foo;
  }

</style>

Repro: http://jsbin.com/ruvoki/edit?html,output


What is the expected output?

The background-image property should work.

What do you see instead?

The background-image property is ignored unless the scheme is specified.


 
Summary: background-image doesn't work from a @apply rule if the url doesn't specify the scheme (was: background-image doesn't work if the url doesn't specify the scheme from a @apply rule)
Components: Blink>CSS

Comment 3 by timloh@chromium.org, Aug 12 2016

Probably the same as 618165.

Comment 4 by timloh@chromium.org, Aug 15 2016

Mergedinto: 618165
Status: Duplicate (was: Untriaged)

Sign in to add a comment