summaryrefslogtreecommitdiff
path: root/layout
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2022-04-24 17:00:46 +0000
committerMoonchild <moonchild@palemoon.org>2022-04-24 17:00:46 +0000
commit42ee994d993bc170db7cad8d57e2d19b03ae9d13 (patch)
tree3ab2e31892f6cde8bffad536af1b786acf4078bc /layout
parentf25a45b9e6b24442b16f418be9d26a162c89986a (diff)
downloaduxp-42ee994d993bc170db7cad8d57e2d19b03ae9d13.tar.gz
Issue #1885 - Allow unitless rootMargin entries for IntersectionObserver.
I could have done this through a CSSLoader to allow all CSS unit quirks but I wasn't planning to start passing around document and element references everywhere, so instead just did it manually by accepting numbers/floats in addition to pixel and percent.
Diffstat (limited to 'layout')
-rw-r--r--layout/style/nsCSSParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/layout/style/nsCSSParser.cpp b/layout/style/nsCSSParser.cpp
index 387f6ed27f..72427792fa 100644
--- a/layout/style/nsCSSParser.cpp
+++ b/layout/style/nsCSSParser.cpp
@@ -2311,7 +2311,7 @@ CSSParserImpl::ParseMarginString(const nsSubstring& aBuffer,
} else {
UngetToken();
// Parse a margin, and check that there's nothing else after it.
- marginParsed = ParseGroupedBoxProperty(VARIANT_LP, aValue, 0) &&
+ marginParsed = ParseGroupedBoxProperty(VARIANT_LPN, aValue, 0) &&
!GetToken(true);
}