diff options
author | Cameron McCormack <cam@mcc.id.au> | 2017-10-17 15:08:52 +0800 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-10-17 14:43:00 +0200 |
commit | 893415c85a8ed475a06f7b92f49f4d5eb30311a0 (patch) | |
tree | ec544c1ad4e24993cb4f9f861188c9e6cd3d7489 /components/style/values/specified/gecko.rs | |
parent | ac74cd57a257fc95e0513524e196c91807c18bba (diff) | |
download | servo-893415c85a8ed475a06f7b92f49f4d5eb30311a0.tar.gz servo-893415c85a8ed475a06f7b92f49f4d5eb30311a0.zip |
style: Add some more tests for disallowed rootMargin values.
Diffstat (limited to 'components/style/values/specified/gecko.rs')
-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 { |