StyleResolver::styleForDocument requires a 2-pass style recalc for correctness? http://trac.webkit.org/browser/trunk/Source/WebCore/css/StyleResolver.cpp#L853 Maybe I'm reading it wrong. But it appears that in order to get the correct styles for a document, we need to do a two-pass style recalc? Elliot ran into this while trying to remove the full-document forced style recalcs which happen at every </style> in a document due to Document::didRemoveAllPendingStylesheet(): http://trac.webkit.org/browser/trunk/Source/WebCore/dom/Document.cpp#L2802