W3C home > Mailing lists > Public > www-style@w3.org > July 2015

Re: [css-page] Editorial issues regarding @page descriptors

From: Sebastian Zartner <sebastianzartner@gmail.com>
Date: Sun, 12 Jul 2015 12:13:08 +0200
Message-ID: <CAERejNbjGh4dx-vcMevv_1L2L6aYih+uQv_KGn8era+ZBYZj-A@mail.gmail.com>
To: Lea Verou <lea@verou.me>
Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, Peter Moulder <pjrm@mail.internode.on.net>, www-style list <www-style@w3.org>
On 7 July 2015 at 21:15, Lea Verou <lea@verou.me> wrote:
>> On Jul 6, 2015, at 17:50, Tab Atkins Jr. <jackalmage@gmail.com> wrote:
>> Inheritance is defined over elements in the element tree.  If @page or
>> the @margin rules inherit from an element, or vice versa, then they're
>> in the element tree as well.  Like I said, at that point the
>> page/margin boxes effectively become pseudo-elements that just have a
>> weird at-rule-based syntax for legacy reasons.
>> Where they go in the tree is ???.
>> ~TJ
> I do see inheritance and treating (some of?) them as properties as valuable in this case, as ideally one would want to be able to nest regular CSS rules inside @page rules, to specify styling for the fragments of elements matching the selector that happen to fall on a page that matches the @page rule. Currently it’s a severe limitation that publishers cannot style element fragments based on whether they fall on a left or a right page (for example), and this would provide an elegant and straightforward solution. There are of course the usual parsing issues with nesting, but these could be solved by prepending every such rule with a &. But this is getting a bit off topic for an editorial discussion…
> ~Lea

Regarding this discussion, I believe it should be clarified in some
specification what is meant by the word "descriptor". My naive
interpretation of a descriptor was that all properties, which apply to
@-rules are descriptors. If there's a semantic difference to
properties in regard of CSSOM, inheritance, etc., this should be

In any case, within the Paged Media spec the wording still needs to be
unified. So either all @page entities are 'descriptors' or all are

Received on Sunday, 12 July 2015 10:13:55 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:52:18 UTC