While looking into supported and unsupported customization options and custom CSS for branding in SharePoint online, I found myself perplexed by the vague and confusing information provided by Microsoft's articles.
Specifically, I was studying the application of custom CSS through alternate CSS in a publishing site and came across this article:
https://msdn.microsoft.com/en-us/pnp_articles/portal-branding
Within this article, there is a point under "General Principles" that lacks clarity and detailed explanation.
General Principles
When it comes to branding portals in a SharePoint Online environment, developers should consider the following general principles:
The SharePoint Online service is constantly evolving. Updates to the service may impact the DOM structure of out-of-the-box pages and the content of out-of-the-box files (such as master pages). Developers need to be aware of this and avoid relying on unsupported customization methods (e.g. positioning of specific elements within the DOM structure of a page).
In the above point, it states: Developers need to avoid relying on unsupported customization methods, such as positioning specific elements within the DOM structure of a page. - But what does this really mean? Does this pertain only to custom CSS applied through alternate CSS URL on certain web part pages, where the CSS is limited to web part zones and out-of-the-box web parts within?
Can someone provide clarification? I am seeking an expert opinion. Does the aforementioned statement only relate to the Office 365 bar DOM and its CSS, or does it also apply to the DOM of out-of-the-box web part pages? If so, how? Could someone offer an example? I have written custom CSS and applied it through an alternate CSS URL, mostly changing the appearance of web part zones and out-of-the-box list view web parts within them (e.g. color, width, larger fonts, etc).