User agent stylesheet: a proposal
Hi
I spotted an "anomaly" regarding the display of an image and after I checked its CSS with the Inspector, I discovered that this perceived "anomaly" was just the consequence of basic CSS rules. My EPUB had an incorporated but hidden "user agent stylesheet", and one of its values defeated my intended purpose... The only thing is that I was totally unaware of the UA values (here a 8px body margin).
I understand that the use of UA stylesheets is widespread and that they are quite useful to provide implicit values when our stylesheets do not provide any. But sometimes, they can give us trouble.
1. Does Calibre adds a "user agent stylesheet" to any EPUB, and if yes, according to which conditions?
2. The Inspector can detect these UA values but its use is not straightforward. Would it be possible to add somewhere a tick mark: "Display the content of user agent stylesheet"?
Last edited by roger64; 12-26-2014 at 10:52 PM.
|