style: Add page-size parsing to Servo

Differential Revision: https://phabricator.services.mozilla.com/D102360
This commit is contained in:
Emily McDonough 2021-01-27 00:47:56 +00:00 committed by Emilio Cobos Álvarez
parent 1927a676fd
commit 96c08d78cf
6 changed files with 183 additions and 0 deletions

View file

@ -0,0 +1,14 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
//! Computed @page at-rule properties
use crate::values::computed::length::NonNegativeLength;
use crate::values::generics;
use crate::values::generics::size::Size2D;
pub use generics::page::Orientation;
pub use generics::page::PaperSize;
/// Computed value of the @page size descriptor
pub type PageSize = generics::page::PageSize<Size2D<NonNegativeLength>>;