Rationale
The introduction of the this.style property in LWC API version 62.0 simplifies the way developers access and modify a component’s styles, providing a consistent and unified approach across light DOM and shadow DOM.
Previously, developers had to use complex and error-prone methods, such as this.children[0].parentElement.style or this.template.host.style, which varied depending on the rendering mode.
This inconsistency increased the risk of bugs and maintenance challenges.
Scope
LWC