CSS: Root-based URLs
Posted: Thu Sep 20, 2018 5:24 am
Hi,
testing a site in Batch Wizard with URL target I get this error on a CSS stylesheet:
This, however, passes:
Testing the stylesheet in the CSE editor, the former gets the same error, while the latter is reported just as broken link (logically, it is a root-based URL, and the editor does not know about document root), with the path appended to the path to the stylesheet.
W3 validator has none complaints, neither as snippets nor loading the whole file via URL.
Searches on the web (i.a. Mozilla Dev & Stackoverflow) were not quite conclusive in that they usually refer to either relative (../etc) or absolute (http://etc), but not root-based (/etc) URLs.
I quite understand that relative URLs are relative to the location of the stylesheet. What I can't find is something definite on root-based URLs: root = document root of the web server, or root = location of the stylesheet (again)? For this question I am not caring that it works alright in browsers (Firefox, Vivaldi), I want a clear understanding.
This is with CSE 17.05. I delay updating to 18 as we are considering our options for a complete move to Linux (and I do not mean running major productivity programs in compatibility/emulator layers like Wine).
TIA
jayaitch
testing a site in Batch Wizard with URL target I get this error on a CSS stylesheet:
The actual definition:This part of the property value is invalid: "url(/site1/gif/grearr.gif)". It should be removed or corrected.
list-style:circle outside url(/site1/gif/grearr.gif);
Code: Select all
ul {
list-style:circle outside url(/site1/gif/grearr.gif);
}
Code: Select all
.main a[href ^="www"] {
background:url(/site1/gif/extlink.gif) center right no-repeat;
}
W3 validator has none complaints, neither as snippets nor loading the whole file via URL.
Searches on the web (i.a. Mozilla Dev & Stackoverflow) were not quite conclusive in that they usually refer to either relative (../etc) or absolute (http://etc), but not root-based (/etc) URLs.
I quite understand that relative URLs are relative to the location of the stylesheet. What I can't find is something definite on root-based URLs: root = document root of the web server, or root = location of the stylesheet (again)? For this question I am not caring that it works alright in browsers (Firefox, Vivaldi), I want a clear understanding.
This is with CSE 17.05. I delay updating to 18 as we are considering our options for a complete move to Linux (and I do not mean running major productivity programs in compatibility/emulator layers like Wine).
TIA
jayaitch