If something exists and is not declared as a total legacy and there are problems, you can always use anything in the right context, if you know what you are doing.
What is being said is a variation of what is called "good practices". As I always reply, this was created to facilitate the passage of knowledge from those who already understand well about something to those who do not yet know. The problem is that it started happening to people who don’t know well about it create good practices or disseminate existing ones without paying attention to the details, you know, like a cordless phone? Therefore creating fake news.
So people take the summary and disseminate the "half" information. And people who consume good practices are content with them without wanting to delve into and understand what it is about. Good practice is good as a check list. It should not eliminate the deepening that everyone should have on the subject.
One of the most commonly used good practices is to say "always do this", "never do this". The point is that without a context good practice loses its meaning. Always or never is too long, covers too many situations. There is always a case to use in a way that is not traditional, the most recommended for most cases.
There’s nothing wrong with making styles inline. Of course, this shape can make it difficult for certain characteristics you may want.
When does inline complicates to change the style, if you use it several times loses the DRY and it’s not just a question of coding, it can weigh on the page load, it can make the overall organization difficult, if it’s a team it can create maintenance problems among members, ends up giving a multiple responsibility to the page, just to mention a few things.
But there are cases that you are doing something simpler or have a specific functionality that is better inline, so you can use it. The question is to know what you are doing, understand the consequences of each choice, understand your problem and define what best serves the purpose.
In the case of canvas
is in the documentation the use of these attributes and no recommendation not to use it. You can use if it makes sense in that context.
It is important to note that when inspecting the HTML on a page, you are seeing the final, chewed-out version of what was originally written in a way that "makes it simple for the browser to understand". It may be that in the original HTML these styles were never written, and actually injected by a framework such as jQuery, for example. With the various tools available today you can keep your sources well dried and documented (by adhering to "good practice") still generating code capable of maintaining compatibility through different systems/browsers.
– nmindz
Possible duplicate of Why Google Recommends Inline CSS?
– UzumakiArtanis
It would be good to define better if the subject is using CSS inline, or if it is the fact of omitting values; in my view, the accepted answer speaks of a subject that has nothing to do with the question title, which is "Never use inline styles is ever even?" - a little more specificity when opening new questions..
– Bacco
I thought about changing the title but then they had already answered, then I ended up leaving.
– user83428