Has the paged media module been abandoned?

戏子无情 提交于 2020-06-11 02:54:00

问题


I've followed the steps in this article to arrange my page for printing. However, only a couple of things seem to actually work. I can't get selectors such as @top-center to work at all in Chrome, Firefox or Opera, even though caniuse says it should work in most major browsers.

Has this been quietly abandoned or deprecated?

I'm pretty sure it's correct, but I'll post my CSS here for reference anyway:

@page {
  @bottom-right {
      content: "...";
  }
}

The content doesn't show up anywhere.


回答1:


The WD that is linked to by the article is from 2013. The CSSWG doesn't tend to keep their WDs at w3.org/TR up to date despite implementations rapidly updating themselves to match the editor's drafts (ED). They don't even publish yearly revisions. This is true not only of css-page-3, but also selectors-4, and prior to its rewrite css-content was left abandoned for over 10 years.

EDs tend to be updated regularly, sometimes even nightly. For example, the css-page-3 ED was just updated a week ago, so while the WD is collecting dust, the module itself hasn't been abandoned and is in fact in active development.



来源:https://stackoverflow.com/questions/46079561/has-the-paged-media-module-been-abandoned

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!