pub trait EqualsPercentage {
// Required method
fn equals_percentage(&self, v: CSSFloat) -> bool;
}Expand description
Check if this equal to a specific percentage.
Required Methods§
Sourcefn equals_percentage(&self, v: CSSFloat) -> bool
fn equals_percentage(&self, v: CSSFloat) -> bool
Returns true if this is a specific percentage value. This should exclude calc() even if it only contains percentage component.