I have noticed that Chrome browser's dialogs (e.g. Settings page, Print Dialog, etc) are written in HTML, CSS. I'd like to override the CSS for those dialogs.
I am creating a Chrome extension that exposes a custom Printer using Chrome's PrinterProvider API and configured using Google's Cloud Device Description format.
My printer now appears in the Print Dialog and is working fine. My issue is that some HTML elements in Chrome's Print dialog can be displayed better. For example, I'd like to increase the <input>
and <select>
elements' widths to better display the print options I am exposing.
Right-clicking > Inspect Element
, on Chrome's print dialog, I see that the print dialog is just the HTML page chrome://print
with some CSS defined inline, and some in CSS files found in chrome://resources/css/*.css
Is there a way to override these styles?