RESOLVED FIXED 80225
Web Inspector: CSS inactive property check should account for vendor prefixes
https://bugs.webkit.org/show_bug.cgi?id=80225
Summary Web Inspector: CSS inactive property check should account for vendor prefixes
Timothy Hatcher
Reported 2012-03-04 13:01:25 PST
Created attachment 130030 [details] Test case Given this CSS, only "opacity" is active. The others should be inactive. -apple-opacity: 0.75; -khtml-opacity: 0.25; -webkit-opacity: 0.5; opacity: 1; I think InspectorStyle::populateObjectWithStyleProperties is responsible for marking these properties as inactive.
Attachments
Test case (224 bytes, text/html)
2012-03-04 13:01 PST, Timothy Hatcher
no flags
Patch (7.22 KB, patch)
2012-03-05 06:54 PST, Alexander Pavlov (apavlov)
no flags
Patch (11.39 KB, patch)
2012-03-05 09:16 PST, Alexander Pavlov (apavlov)
no flags
[PATCH] Test expectation updated (11.57 KB, patch)
2012-03-05 09:26 PST, Alexander Pavlov (apavlov)
no flags
Timothy Hatcher
Comment 1 2012-03-04 13:09:20 PST
In the real world I ran into this on http://theverge.com where they specify many properties with prefixes for multiple vendors and without prefixes. A common practice for advanced CSS3 sites.
Timothy Hatcher
Comment 2 2012-03-04 13:11:11 PST
Note: -apple-, and -khtml- are supported by WebKit. Though I think internally they get turned into -webkit- by the parser.
Alexander Pavlov (apavlov)
Comment 3 2012-03-05 06:54:57 PST
Pavel Feldman
Comment 4 2012-03-05 07:08:20 PST
Comment on attachment 130121 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=130121&action=review > Source/WebCore/inspector/InspectorStyleSheet.cpp:484 > + CSSPropertyID propertyId = static_cast<CSSPropertyID>(cssPropertyID(name)); This does not seem to cover the computed style trace. > LayoutTests/inspector/elements/elements-panel-styles-expected.txt:13 > + .foo, .foo::before - blue elements-panel-styles.css:25 Please prefer adding new tests for new features / regressions.
Alexander Pavlov (apavlov)
Comment 5 2012-03-05 09:16:48 PST
Alexander Pavlov (apavlov)
Comment 6 2012-03-05 09:26:15 PST
Created attachment 130152 [details] [PATCH] Test expectation updated
WebKit Review Bot
Comment 7 2012-03-05 10:58:15 PST
Comment on attachment 130152 [details] [PATCH] Test expectation updated Clearing flags on attachment: 130152 Committed r109772: <http://trac.webkit.org/changeset/109772>
WebKit Review Bot
Comment 8 2012-03-05 10:58:25 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.