Form association by HTML parser should not work if the form element is not in the document tree.

The new behavior matches to the standard, IE11, and Firefox 26.

Note that FormAssociatedElement::associateByParser can't be called in
the FormAssociatedElement constructor because associateByParser
calls virtual functions internally.

BUG=256797
TEST=automated.

Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=165540

Review URL: https://codereview.chromium.org/144773002

git-svn-id: svn://svn.chromium.org/blink/trunk@165632 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Adding regression test for a small caps layout issue on Mac

The test uses the Libertine font, licensed under the Open Font License
as a free font example that comes with small caps.

BUG=264372
TBR=dpranke,eae

Review URL: https://codereview.chromium.org/144093011

git-svn-id: svn://svn.chromium.org/blink/trunk@165633 bbb929c8-8fbe-4397-9dbb-9b2b20218538