W3C home > Mailing lists > Public > www-style@w3.org > February 2013

[cssom][css3-page] OM for margin at-rules (was: Re: Agenda request: css3-page issues)

From: Simon Sapin <simon.sapin@kozea.fr>
Date: Sun, 24 Feb 2013 19:21:27 +0100
Message-ID: <512A5A27.90505@kozea.fr>
To: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
CC: www-style <www-style@w3.org>
Le 24/02/2013 18:24, Daniel Glazman a écrit :
> Sorry, I have an extra one: what's the OM for the new @page
> rule with the extra nested at-rules? What is the OM for the
> margin boxes at-rules? Without that, the whole thing is not
> editable easily and requires textual manipulation of stylesheets.

(Moving to www-style.)

We had an issue about this on Tracker for css3-page, but I think it 
really belongs in CSSOM which already defines a CSSPageRule interface. I 
move the bug to the CSSOM bugzilla component:


As described there, my suggestion is to add a .cssRules attribute (that 
would be similar to that of CSSMediaRule) in addition to the existing 
.style attribute that contains declarations.

This API does not preserve the relative position of margin at-rules 
compared to declarations, but that’s ok IMO since that position is not 
significant. Serialization *should* write at-rules after declarations to 
mitigate broken parsers in older UAs.

Simon Sapin
Received on Sunday, 24 February 2013 18:21:56 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:26 UTC