What "User Agent Stylesheet"?
Sigil sets no "User Agent Stylesheet" and never has. Sigil can auto inject a stylesheet but only if you create and set one (see the Preview css cycle tool on its toolbar). And in Dark Mode, Sigil will inject a short css, but again, only if you tell it to in Preferences.
So I have no idea where this "User Agent Stylesheet" is coming from? Perhaps something your Linux distribution has added to Qt, or they modified QtWebEngine for some reason?
Your css code works just fine on my macOS machine and Sigil.
Perhaps someone on Windows can check it and report back.
|