Bug 142463 - Web Inspector: relative urls in CSS rules added through Inspector use an arbitrary, unexplained base path
Summary: Web Inspector: relative urls in CSS rules added through Inspector use an arbi...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-03-08 14:49 PDT by Brian Burg
Modified: 2016-12-13 15:33 PST (History)
4 users (show)

See Also:


Attachments
example of the bug (272.88 KB, image/png)
2015-03-08 14:49 PDT, Brian Burg
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Burg 2015-03-08 14:49:42 PDT
Created attachment 248204 [details]
example of the bug

You can see this in the 2nd level inspector, by adding a new rule to override an icon to use a different image. In the rules from CSS files, the path url(../Images/foo.svg) works. In a rule that is added "via Inspector", the path url(Images/foo.svg) is required instead. This is really confusing when looking at the Rules sidebar, since different stylesheets with different base paths are all shown together.

We should think about some way to better communicate the base path for inspector-added styles. Or, provide better linked error messages when the resources don't load. Perhaps add a tooltip for striked out rules to explain why the don't match?
Comment 1 Radar WebKit Bug Importer 2015-03-08 14:50:00 PDT
<rdar://problem/20086745>