Call to focus() causes computed style update for the element’s ancestor chain before the the document has otherwise been styled (using the shortcut mechanism introduced in r257839). This style, which uses ‘rem’ unit and so depends on root element font size, gets cached in MatchedDeclarationsCache. The root font size then changes but during the resulting style update we use this cached value, failing to re-resolve ‘rem’.
<rdar://problem/70074191>
Created attachment 413157 [details] patch
Committed r269384: <https://trac.webkit.org/changeset/269384> All reviewed patches have been landed. Closing bug and clearing flags on attachment 413157 [details].