Csswg-drafts: [cssom] Should the margin at-rules and CSSMarginRule be dropped?

Created on 8 Mar 2020  Â·  9Comments  Â·  Source: w3c/csswg-drafts

There hasn't been a single implementation since fcce4aaed2c3d42b19168a323b18d3c3424f9f02 defined it back in 2013. What's the current status of it, should it be dropped or is anyone working on an implementation?

css-page-3 cssom-1

All 9 comments

The OM rule's lack of implementation is due to the lack of implementation of the at-rules themselves, right? At least in Chrome, they're dropped as syntax errors, so of course we wouldn't expose the OM side either.

We shouldn't remove the OM so long as the at-rules are expected to be implemented.

There hasn't been a single implementation since fcce4aa defined it back in 2013.

I am not aware of browser implementations, but FWIW it is implemented in css4j:

https://css4j.github.io/api/2.0/io/sf/carte/doc/style/css/CSSMarginRule.html

We shouldn't remove the OM so long as the at-rules are expected to be implemented.

Not sure I understand, you mean at least one browser is working on @top-left etc.?

The Firefox issue for implementing margin rules is this one:

https://bugzilla.mozilla.org/show_bug.cgi?id=856371

and apparently there isn't a lot of activity (last update 4 years ago).

What I mean is that every at-rule needs an OM representation; they're 1:1. We shouldn't drop the OM unless we're dropping the at-rule as well.

Reacting to the title change, I do not see why the at-rules should be dropped. CSS authors definitely want this functionality and, while browsers are lagging behind a bit (see Chromium issue 320370 and Webkit bug 85062), others are supporting it (not only the css4j library, for example I have seen references about AH software supporting them to print PDFs).

while browsers are lagging behind a bit

I think that's why I opened this. I wasn't sure there are any intent to implement, and it turns out that both of the bugs are inactive.

I think that's why I opened this.

Those rules are of minor priority to browsers, but of major importance to those focusing on printing paged media.

There's multiple implementations of the margin at-rules, just not in browsers. I don't think we can drop them.

Was this page helpful?
0 / 5 - 0 ratings