What is the status of the @document rule? The MDN page states that it has been postponed/deferred to Level 4 of CSS Spec, but now I can not find the spec anywhere except in the old css3 working draft:
- No results: searching for
@documenthere (except for this post now). - Too many results for
document(the@is ignored) on https://github.com/w3c/csswg-drafts (and https://drafts.csswg.org/), but none appear to be related to this rule. - Three revisions in https://hg.csswg.org/drafts/log?rev=%40document, the last one states “excise all mentions of the
@documentrule”.
Is it dead now? Why does Mozilla still support it then?
If it isn’t dead, I would like to propose adding an additional matching function (along side of url, url-prefix, domain and regexp). This function would match the document contents using the named selector, something like this:
@document matches("head[prefix~='medium-com:']") { /* */ }
In this case, the style would be applied to all Medium styled blogs no matter what domain it may be on.