Closed Bug 1493176 Opened 6 years ago Closed 5 years ago

:scope compat table is incomplete; it references an obsolete pref without the history

Categories

(Developer Documentation Graveyard :: CSS, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INACTIVE

People

(Reporter: robwu, Unassigned)

References

Details

The :scope CSS selector was once used for scoped styles, but later repurposed for querySelector.

In bug 1408106, the old documentation was removed, but a compat note about the old behavior was preserved in the compat table:
https://developer.mozilla.org/en-US/docs/Web/CSS/:scope$compare?locale=en-US&to=1319583&from=1318071

When the docs moved [1] to the new compat tables [2], some information was lost. The note about the significant change in Firefox 55 was removed, whereas the reference to the obsolete preference (layout.css.scoped-style.enabled) from Firefox 20 was kept.

I think that it would have made more sense to restore the note about 55, perhaps with a reference to style. The <style> docs is a better example of what it should be, as it has useful information about the obsolete "scoped" attribute [3].

[1] https://developer.mozilla.org/en-US/docs/Web/CSS/:scope$compare?locale=en-US&to=1346243&from=1319585
[2] https://github.com/mdn/browser-compat-data/commit/9cef60a0853b19b49898a97989f728bf3387b292#diff-3b48c604296d6a776e077eeb4a437ed7
[3] https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style#Browser_compatibility
Thanks for filing. I've opened https://github.com/mdn/browser-compat-data/issues/2911 over in BCD for this, as that's where it should be fixed.
Follow the work in GitHub.
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.