You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In cases where the referenced CSS files aren't in the same folder the HTML file is in, we had the problem that after altering the CSS, the url()s referenced in there (think background-image, @import, which the two issues above are about) were relative to the HTML instead of relative to the CSS.
My attempt at fixing this issue is to make any relative url() absolute (where the absolute path is the CSS file), that is, for example, converting a background: url(chevron.png); to a background: url(http://127.0.0.1:port/sub/chevron.png)
Issue by MarcelGerber
Monday Aug 22, 2016 at 23:47 GMT
Originally opened as adobe/brackets#12705
Fixes #11076 and #11936.
In cases where the referenced CSS files aren't in the same folder the HTML file is in, we had the problem that after altering the CSS, the
url()
s referenced in there (thinkbackground-image
,@import
, which the two issues above are about) were relative to the HTML instead of relative to the CSS.My attempt at fixing this issue is to make any relative
url()
absolute (where the absolute path is the CSS file), that is, for example, converting abackground: url(chevron.png);
to abackground: url(http://127.0.0.1:port/sub/chevron.png)
cc
@
busykaiMarcelGerber included the following code: https://github.com/adobe/brackets/pull/12705/commits
The text was updated successfully, but these errors were encountered: