Implement :root pseudo-class, issue #1295