RESOLVED FIXED Bug 202253
Web Inspector: Canvas: shader type header is white in dark mode
https://bugs.webkit.org/show_bug.cgi?id=202253
Summary Web Inspector: Canvas: shader type header is white in dark mode
Devin Rousso
Reported 2019-09-25 19:10:23 PDT
Created attachment 379606 [details] [Image] Screenshot of Issue .
Attachments
[Image] Screenshot of Issue (781.52 KB, image/png)
2019-09-25 19:10 PDT, Devin Rousso
no flags
Patch (1.92 KB, patch)
2019-09-25 19:13 PDT, Devin Rousso
no flags
Patch (2.17 KB, patch)
2019-09-30 15:02 PDT, Devin Rousso
no flags
Devin Rousso
Comment 1 2019-09-25 19:13:19 PDT
Nikita Vasilyev
Comment 2 2019-09-25 19:41:25 PDT
Comment on attachment 379608 [details] Patch It looks like <header> always has only one child. Can this markup <header> <div class=shader-type">...</div> </header> be replaced with <header class=shader-type">...</header> ?
Devin Rousso
Comment 3 2019-09-26 01:22:39 PDT
(In reply to Nikita Vasilyev from comment #2) > Comment on attachment 379608 [details] > Patch > > It looks like <header> always has only one child. I did this so that if we wanted to add additional editing items (e.g. an <input> to change a WebGPU shader pipeline's `entryPoint`), there'd be an easy way to do that.
Nikita Vasilyev
Comment 4 2019-09-26 11:13:35 PDT
Comment on attachment 379608 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=379608&action=review > Source/WebInspectorUI/UserInterface/Views/ShaderProgramContentView.css:65 > + .content-view.shader-program > .shader > header > * { I try to avoid selectors ending on `*`. CSS selectors are applied right-to-left, so selectors ending on `*` aren't very effecient. Looks like for this case `.content-view.shader-program > .shader > header` should be a sufficient selector. > Source/WebInspectorUI/UserInterface/Views/ShaderProgramContentView.css:69 > + .content-view.shader-program > .shader > header > .shader-type { Ditto. `.content-view.shader-program > .shader > header`.
Devin Rousso
Comment 5 2019-09-30 14:58:46 PDT
Comment on attachment 379608 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=379608&action=review >> Source/WebInspectorUI/UserInterface/Views/ShaderProgramContentView.css:65 >> + .content-view.shader-program > .shader > header > * { > > I try to avoid selectors ending on `*`. CSS selectors are applied right-to-left, so selectors ending on `*` aren't very effecient. > > Looks like for this case `.content-view.shader-program > .shader > header` should be a sufficient selector. Good point. I'll merge this with the rule below (same with the light-mode variant). >> Source/WebInspectorUI/UserInterface/Views/ShaderProgramContentView.css:69 >> + .content-view.shader-program > .shader > header > .shader-type { > > Ditto. `.content-view.shader-program > .shader > header`. See comment #3: > I did this so that if we wanted to add additional editing items (e.g. an <input> to change a WebGPU shader pipeline's `entryPoint`), there'd be an easy way to do that.
Devin Rousso
Comment 6 2019-09-30 15:02:46 PDT
Nikita Vasilyev
Comment 7 2019-09-30 15:19:39 PDT
Comment on attachment 379608 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=379608&action=review Looks fine. > Source/WebInspectorUI/ChangeLog:9 > + (@media (prefers-color-scheme: dark) .content-view.shader-program > .shader > header > *): Added. Nit: the changelog is out of date. >>> Source/WebInspectorUI/UserInterface/Views/ShaderProgramContentView.css:69 >>> + .content-view.shader-program > .shader > header > .shader-type { >> >> Ditto. `.content-view.shader-program > .shader > header`. > > See comment #3: I saw it. I assumed it would go inside of the header.
Matt Baker
Comment 8 2019-09-30 15:48:17 PDT
Comment on attachment 379844 [details] Patch r=me
WebKit Commit Bot
Comment 9 2019-09-30 16:32:48 PDT
Comment on attachment 379844 [details] Patch Clearing flags on attachment: 379844 Committed r250533: <https://trac.webkit.org/changeset/250533>
WebKit Commit Bot
Comment 10 2019-09-30 16:32:49 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 11 2019-09-30 16:33:20 PDT
Note You need to log in before you can comment on or make changes to this bug.