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

Re: [css3-page] Margin boxes: replacing 6.3.2 Variable Dimension Computation Rules

From: Simon Sapin <simon.sapin@kozea.fr>
Date: Wed, 04 Jul 2012 17:06:01 +0200
Message-ID: <4FF45BD9.8080506@kozea.fr>
To: www-style@w3.org
Le 02/07/2012 18:23, Simon Sapin a écrit :
>
> Please find attached a revised version of my proposal. You can also find
> the latest version[1] or the change history[2].
>
> [1]
> https://github.com/SimonSapin/css/blob/master/margin-boxes-variable-dimension
> [2]
> https://github.com/SimonSapin/css/commits/master/margin-boxes-variable-dimension

This is implemented and released in WeasyPrint 0.11. The Python code 
(BSD-licenced) is a straight-forward translation of the algorithm:

https://github.com/Kozea/WeasyPrint/blob/v0.11/weasyprint/layout/pages.py#L185

With the current (unchanged) spec this new behavior is non-conforming, 
but this is better than the broken code that we had before.

Regards,
-- 
Simon Sapin
Received on Wednesday, 4 July 2012 15:06:29 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:56 GMT