Implement :root pseudo-class. Fix #1263, fix #1265
auto merge of #1293 : SimonSapin/servo/root, r=SimonSapin

Rebase/squash of @therealglazou’s #1265