diff options
Diffstat (limited to 'components')
-rw-r--r-- | components/style/values/specified/gecko.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/components/style/values/specified/gecko.rs b/components/style/values/specified/gecko.rs index b36cd582aed..486a33eaf1e 100644 --- a/components/style/values/specified/gecko.rs +++ b/components/style/values/specified/gecko.rs @@ -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 { |