NEW 85062
Support CSS 3 Paged Media Margin Boxes
https://bugs.webkit.org/show_bug.cgi?id=85062
Summary Support CSS 3 Paged Media Margin Boxes
Milian Wolff
Reported 2012-04-27 07:10:50 PDT
WebKit is missing support for Paged Media margin boxes: http://www.w3.org/TR/css3-page/#margin-boxes
Attachments
Milian Wolff
Comment 1 2012-04-27 07:11:35 PDT
This blocks bug 15548
Shane Stephens
Comment 2 2012-06-20 21:31:36 PDT
Paged Media features are currently gated on a refactor being completed by Dave Hyatt (http://lists.webkit.org/pipermail/webkit-dev/2012-May/020668.html).
Christopher Pereira
Comment 3 2015-04-04 07:49:16 PDT
What is the status? This is blocking wkhtmltopdf to support in-doc headers/footers, and other important standard printing options. See: - https://github.com/wkhtmltopdf/wkhtmltopdf/issues/2200 - https://github.com/wkhtmltopdf/wkhtmltopdf/issues/2247
Daniel Whitney
Comment 4 2017-05-24 12:27:08 PDT
+1 Need this, also only thing blocking bug 15548
amit
Comment 5 2017-06-14 05:05:46 PDT
+1
Josh D
Comment 6 2018-05-16 14:08:32 PDT
I know that there is a ton going on for your team. But there's a real opportunity here for the Open Source community. Right now most reporting solutions are proprietary and don't follow any standard. But with support of paged media and margin boxes the tools for reporting will flourish. We just need your help to make it a priority. Unfortunately I'm going to convert my project over to a Microsoft reporting solution in order to get it done, but I was really hoping I could use Chrome/Webkit to make this happen and get one more nail into the MS coffin.
KraakBal
Comment 7 2018-06-29 02:19:54 PDT
Please please please make this work
Yuri
Comment 8 2019-05-31 13:24:31 PDT
Is there any plan for this?
Manoj
Comment 9 2021-10-18 05:17:55 PDT
we would love to have this feature
Fluff
Comment 10 2022-02-06 13:17:28 PST
Please, make it finally happen! It is most needed and long overdue!
Radar WebKit Bug Importer
Comment 11 2022-07-13 09:47:04 PDT
zzy8200
Comment 12 2024-10-16 11:25:23 PDT
I already see implementation here: https://trac.webkit.org/browser/webkit/trunk/Source/WebCore/page/PrintContext.cpp Is there specific reason this feature is still behind a flag? FloatBoxExtent PrintContext::computedPageMargin(FloatBoxExtent printMargin) { if (!frame() || !frame()->document()) return printMargin; if (!RuntimeEnabledFeatures::sharedFeatures().pageAtRuleSupportEnabled()) return printMargin; // FIXME: Currently, no pseudo-class is supported. auto style = frame()->document()->styleScope().resolver().styleForPage(0); float pixelToPointScaleFactor = 1 / CSSPrimitiveValue::conversionToCanonicalUnitsScaleFactor(CSSUnitType::CSS_PT).value(); return { style->marginTop().isAuto() ? printMargin.top() : style->marginTop().value() * pixelToPointScaleFactor, style->marginRight().isAuto() ? printMargin.right() : style->marginRight().value() * pixelToPointScaleFactor, style->marginBottom().isAuto() ? printMargin.bottom() : style->marginBottom().value() * pixelToPointScaleFactor, style->marginLeft().isAuto() ? printMargin.left() : style->marginLeft().value() * pixelToPointScaleFactor }; }
Note You need to log in before you can comment on or make changes to this bug.