kapouer / node-webkitgtk

webkitgtk bindings for :rocket: Node.js
MIT License
189 stars 13 forks source link

[doc] @page for setting print margins #56

Open kapouer opened 7 years ago

kapouer commented 7 years ago

Came across this today:

@media print {
     @page {
        margin: 1cm;
    }
}

if it works, it's another cool way of setting margins. TODO: document it.

kapouer commented 6 years ago

Unfortunately it's still not supported in webkitgtk 2.18.