Bug 141916

Summary: Web Inspector: source location for <link> and <style> media types in Styles details sidebar is wrong
Product: WebKit Reporter: Brian Burg <burg>
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: achicu, benjamin, bjonesbe, graouts, inspector-bugzilla-changes, jonowells, nvasilyev, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
URL: http://webplatform.adobe.com/Demo-for-National-Geographic-Forest-Giant/browser/src/
Attachments:
Description Flags
Example output none

Description Brian Burg 2015-02-23 11:01:04 PST
Created attachment 247129 [details]
Example output

It correctly lists "Media: screen, projection" for a style rule, but then links to 'src:1' which is useless. I'm not sure what this source location is supposed to be- is it the location of the media query in the CSS file?
Comment 1 Radar WebKit Bug Importer 2015-02-23 11:01:52 PST
<rdar://problem/19923827>
Comment 2 Timothy Hatcher 2015-02-23 12:50:49 PST
yes, it should be the location of the media query in the source.
Comment 3 Timothy Hatcher 2015-02-23 12:54:55 PST
In this case it should be line src:42 where the link tag is in the HTML.

<link href="css/shaders.css" media="screen, projection" rel="stylesheet" type="text/css" />

Seems like this bug is specific to the <link> tag, and like the <style> tag too.
Comment 4 Nikita Vasilyev 2018-03-10 17:23:07 PST
The new styles sidebar no longer displayed the location of the media query.