mirror of
https://github.com/servo/servo.git
synced 2025-06-22 08:08:59 +01:00
This defines a single type Rect<T> which allows us to abstract over CSS values made of four sides top, right, bottom and left.
11 lines
444 B
Rust
11 lines
444 B
Rust
/* 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 http://mozilla.org/MPL/2.0/. */
|
|
|
|
//! Computed types for CSS borders.
|
|
|
|
use values::computed::length::LengthOrNumber;
|
|
use values::generics::rect::Rect;
|
|
|
|
/// A specified rectangle made of four `<length-or-number>` values.
|
|
pub type LengthOrNumberRect = Rect<LengthOrNumber>;
|