Take a look at this page, make sure you are using the selector correctly:
The element>element
selector is specifically for selecting elements with a particular parent.
Please note: Only elements directly under the specified parent will be selected.
Instead, try using
drawing > pdf-viewer > div > div > canvas
.
Edit 1: Since you have added your CSS file, if you want to select an element with the tag-name drawing
, there is no need to prefix it with either a .
or a #
(as those are used for classes and IDs respectively).
Give this code snippet a go and check if it works:
drawing div canvas {
border: 10px solid #22cc37 !important;
padding: 100px !important;
}
When I tested the above example (even without the !important
s), it worked fine. If it doesn't work for you, the issue might lie elsewhere in your code where you could be overriding the styles):
https://i.sstatic.net/lo6FU.jpg