mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
stylo: Add stroke-width property
MozReview-Commit-ID: 4QKKzJ1DVYP
This commit is contained in:
parent
51b03fbc7d
commit
3b0840d187
2 changed files with 17 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
//! `<length>` computed values, and related ones.
|
||||
|
||||
use app_units::Au;
|
||||
use app_units::{Au, AU_PER_PX};
|
||||
use ordered_float::NotNaN;
|
||||
use std::fmt;
|
||||
use style_traits::ToCss;
|
||||
|
@ -195,6 +195,12 @@ impl LengthOrPercentage {
|
|||
LengthOrPercentage::Length(Au(0))
|
||||
}
|
||||
|
||||
#[inline]
|
||||
/// 1px length value for SVG defaults
|
||||
pub fn one() -> LengthOrPercentage {
|
||||
LengthOrPercentage::Length(Au(AU_PER_PX))
|
||||
}
|
||||
|
||||
/// Returns true if the computed value is absolute 0 or 0%.
|
||||
///
|
||||
/// (Returns false for calc() values, even if ones that may resolve to zero.)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue