CSS - 不确定此值当前是否对溢出有效 属性

CSS - Unsure if this value is currently valid for overflow property

我正在检查我们网站之一的一些 CSS 时发现:

overflow: no-display;

我从没听说过这个所以用 Google 搜索并找到 this page, which seems to suggest it's valid. However, at the MDN site for overflow (click here) there is no mention of no-display. There is also no sign of this value on the W3C doc here

"no-display" 是溢出的有效值,还是已弃用的值?

overflow: no-display;

我没看到这个值"no-display"

查看 http://www.w3schools.com/cssref/pr_pos_overflow.asp

这将为您提供有关 "overflow" 属性

的所有信息

溢出 属性 的 no-display 值似乎从未超过 W3C working draft 阶段。如果你在遗留代码中看到它,可能是因为当时的浏览器在 W3C 推荐之前想要支持最新的实验性功能。

如果你看here and scroll to CSS Basic Box Model Level 3 where the no-display value is mentioned within, you can see that the notes for the working draft mention "Dangerously outdated; see CSS2.1'。

CSS2.1 nor the upcoming CSS2.2 提及溢出的 no-display 值 属性。

在实际意义上,你可以考虑溢出属性obsoleteno-display值,因为它甚至在major中都不起作用浏览器(例如 Firefox 和 Chrome)。