css -::before/::after + MDN 中的 flexbox

标签 css

我在 MDN CSS 上看到以下新闻元素主页:

Gecko's support of flexible boxes has been adapted to match a recent specification clarification: from Firefox 23 ::before and ::after will be flex items, and as such can be repositioned using order and align-self.
(May 3rd, 2013)

指的是什么规范?
我在 CSS Flexible Box Layout Module 中找不到对 ::before/::after 的任何引用.

最佳答案

这是在 bug 867454 中实现的.正如评论 #0 所说,不实现它是一个错误。

spec说:

The contents of a flex container consists of zero or more flex items: each in-flow child of a flex container becomes a flex item, and each contiguous run of text that is directly contained inside a flex container is wrapped in an anonymous flex item.

这确实包括 ::before/::after 伪元素(至少 mozilla 的人现在这样解释它,我同意)。

"Firefox 23 for developers"还具有此信息,明确将 ::before::after 称为“流入”。

In-flow ::after and ::before pseudo-elements are now flex items (bug 867454).

关于css -::before/::after + MDN 中的 flexbox,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40963647/

相关文章:

html - 在 CSS 的类中选择类

html - 使用 native CSS 和 HTML 设计漏斗堆栈布局

css - 使用 css 将小图像显示为全屏宽度。

javascript - 向下滑动显示更多内容

jquery - 在移动设备上查看时,Bootstrap 会更改 div 上的类

javascript - 如何在div上制作悬停效果

html - 将应用程序发送到黑莓并要求其他人注册的下载按钮?

html - 阻止 html 在代码块内呈现

jquery - 获取固定页脚以在滚动时从上到下扩展高度

html - 导航选项卡和选项卡内容之间的空间