mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Auto merge of #18917 - heycam:observer-test, r=emilio
style: Add some more tests for disallowed rootMargin values. <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18917) <!-- Reviewable:end -->
This commit is contained in:
commit
aa3122e7d1
3 changed files with 19 additions and 2 deletions
|
@ -81,6 +81,11 @@ impl ToNsCssValue for PixelOrPercentage {
|
|||
}
|
||||
|
||||
/// The value of an IntersectionObserver's rootMargin property.
|
||||
///
|
||||
/// Only bare px or percentage values are allowed. Other length units and
|
||||
/// calc() values are not allowed.
|
||||
///
|
||||
/// https://w3c.github.io/IntersectionObserver/#parse-a-root-margin
|
||||
pub struct IntersectionObserverRootMargin(pub Rect<PixelOrPercentage>);
|
||||
|
||||
impl Parse for IntersectionObserverRootMargin {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue