Implement :root pseudo-class, issue #1263