WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
140154
Web Inspector: Expected UserAgent styles to be crossed-out if overridden
https://bugs.webkit.org/show_bug.cgi?id=140154
Summary
Web Inspector: Expected UserAgent styles to be crossed-out if overridden
Joseph Pecoraro
Reported
2015-01-06 16:01:54 PST
* SUMMARY In the styles sidebar I expect User Agent styles are never crossed out, even if they are overridden. I would expect them to be crossed out. * TEST <style> textarea { background-color: red; } textarea { background-color: green; } </style> <textarea></textarea> * STEPS TO REPRODUCE 1. Inspect the <textarea> for its background-color => style sidebar shows, "green", "red", "white", expected red and white to be crossed out, but "white" was not. * NOTES - This is because the UserAgent CSS.CSSProperties are not sent with a "status" field, and are assumed to be anonymous styles that are never treated as overridden. Maybe we should treat them as overridable here.
Attachments
[PATCH] Proposed Fix
(2.68 KB, patch)
2015-01-07 22:32 PST
,
Joseph Pecoraro
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2015-01-06 16:02:33 PST
<
rdar://problem/19392325
>
Joseph Pecoraro
Comment 2
2015-01-07 22:29:38 PST
Another test case, for HTML Attributes, which were also getting this treatment: * TEST 2 <style>body { background-color: red; }</style> <body bgColor="blue" style="background-color:green"></body> * STEPS TO REPRODUCE 1. Inspect <body> for its background-color => "blue" from HTML Attribute should be crossed-out (currently it is not) 2. Disable "green" from inline style. 3. Disable "red" from stylesheet. => "blue" from HTML Attribute should be enabled
Joseph Pecoraro
Comment 3
2015-01-07 22:32:16 PST
Created
attachment 244242
[details]
[PATCH] Proposed Fix
Timothy Hatcher
Comment 4
2015-01-08 03:02:49 PST
Comment on
attachment 244242
[details]
[PATCH] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=244242&action=review
> Source/WebInspectorUI/UserInterface/Models/DOMNodeStyles.js:600 > + // FIXME: Is this still needed? This includes UserAgent styles and HTML attribute styles. > anonymous = true;
We can remove it. I don't remember why I thought it was needed.
WebKit Commit Bot
Comment 5
2015-01-08 03:43:00 PST
Comment on
attachment 244242
[details]
[PATCH] Proposed Fix Clearing flags on attachment: 244242 Committed
r178110
: <
http://trac.webkit.org/changeset/178110
>
WebKit Commit Bot
Comment 6
2015-01-08 03:43:03 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug