The location of the user agent stylesheet of Microsoft Edge ?

Jérémy Bézairie 20 Reputation points
2023-10-29T14:36:52.3+00:00

To edit it ( video{object-fit:contain} to video{object-fit:none} : to watch videos ( e.g. Youtube ) at their native resolutions , no need to edit the DOM to override video{object-fit:contain} of the user agent stylesheet by object-fit:none , by an extension https://github.com/jebez0/video-unresizer-web-browser-extension ( of my creation ) ) .

https://learn.microsoft.com/en-us/microsoft-edge/devtools-guide-chromium/device-mode/override-user-agent

https://www.w3schools.com/css/css3_object-fit.asp

Microsoft Edge | Microsoft Edge development
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous
    2023-10-30T03:23:38.3+00:00

    Hi @Jérémy Bézairie,

    You can find the UA stylesheet within Chromium source code: https://chromium.googlesource.com/chromium/blink/+/master/Source/core/css/html.css

    If you meant to find the UA stylesheet in local files, I'm afraid you can't. It is arranged in the source code, which is integrated in the application itself. So, there's no relevant local file for it.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best Regards,

    Shijie Li


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.