I didn't know CSS took effect based on the user's location in the page. Does this behavior determine that it does?
It absolutely does because the browser doesn't want to render everything on a page at once. Therefore the spots of the page (if any) that require more to process will be slower than spots that take less to process.
Is there conflicting or unusual CSS positioning, animation, etc. that might cause poor performance?
Since this is a very broad question I'll answer it more broadly than I usually would. Here's an article on what happens during an animation which covers in fair detail what is happening behind the scenes. In essence it says there is a main thread and compositor thread; you want to stay on the compositor side for most of the time. This is precisely the reason why certain properties can "animate cheaply" without the browser having to do too much.
Other reasons that I can think of that would cause more poor performance than usual is if an element's animation or transformation can affect the layout or state of other elements that are not a part of the animation or transformation. It's important to prevent elements being animated or transformed from affecting other elements, especially their layouts, as this forces them back onto the main thread.
How is CSS styling directly and consistently linked to page performance? Specifically, page paint time.
CSS is related to page performance in a several ways. The first is in how much time it takes for the compiler to read the CSS and to apply it to the elements necessary. Writing efficient selectors is important if you're dealing with large stylesheets in particular. You want to cut corners wherever possible.
The second place CSS effects performance is how elements are positioned. If you position 1,000 elements in the same position, it will naturally perform worse than if you have 1 in the same location, regardless of how many can be seen or affect the layout. This is not wholly related to CSS, but CSS positioning is what determines where the elements are, thus how many are affecting performance at once. Changing the layout of elements puts it back into the main thread, which forces more thought on the processor's part in addition to repainting.
The third that you specify in your question is paint time. The article you linked goes into it well, explaining that box-shadow
stinks for paint time. There are lot's of reports of this because it exists. This is the essence of your specific problem; the main cause. You should avoid them, especially in bulk, whenver you can. Using gradients instead will likely improve the paint times because they're less expensive.
The fourth is that CSS determines whether or not an animation or transition is rendered using the CPU or the GPU. Although we don't have the feature yet, Sara Soueidan in her article on the will-change
property delves fairly deeply into this. In summary, the CPU (Central Processing Unit) is the brains of the computer and takes longer to render things while the GPU (Graphics Processing Unit) is faster at rendering things, but can't "think" as much. At the moment we do tricks like translate3d(0, 0, 0);
or translateZ(0px)
to force the browser to render it with GPU, but in the future we will have the will-change
property.
As Sara says in the article, don't make the GPU handle everything, as the browser is processing it as best as it can, and "some of the stronger optimizations that are likely to be tied to will-change
end up using a lot of a machine’s resources, and when overused like this can cause the page to slow down or even crash."
In summary, CSS can significantly negative effect a page's paint time in a specific area of a web page by increasing paint times, changing the way elements are laid out, forcing too many elements to be processed in the CPU or GPU, and how long it takes the compiler to interpret and apply the CSS.
BoltClock was spot on when he commented,
box shadows typically are one of the most expensive to render in most any browser. There is almost no reason to have such a large spread - you might as well use a gradient or something ;)
If your page or part of your page is running slowly, it's best to look into it further to find out what, if anything, is being repainted