summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dom/html/nsGenericHTMLElement.cpp2
-rw-r--r--modules/libpref/init/all.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/dom/html/nsGenericHTMLElement.cpp b/dom/html/nsGenericHTMLElement.cpp
index afbc49b6b..ddb476cf4 100644
--- a/dom/html/nsGenericHTMLElement.cpp
+++ b/dom/html/nsGenericHTMLElement.cpp
@@ -1480,7 +1480,7 @@ nsGenericHTMLElement::MapImageSizeAttributesInto(const nsMappedAttributes* aAttr
}
}
- if (Preferences::GetBool("layout.css.width-and-height-map-to-aspect-ratio.enabled") &&
+ if (Preferences::GetBool("layout.css.intrinsic-aspect-ratio.enabled") &&
aMapAspectRatio && aWidth && aHeight) {
Maybe<double> w;
if (aWidth->Type() == nsAttrValue::eInteger) {
diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js
index 21203552b..60851e55e 100644
--- a/modules/libpref/init/all.js
+++ b/modules/libpref/init/all.js
@@ -4819,7 +4819,7 @@ pref("layout.css.touch_action.enabled", true);
// https://html.spec.whatwg.org/multipage/rendering.html#attributes-for-embedded-content-and-images
// Are the width and height attributes on image-like elements mapped to the
// internal-for-now aspect-ratio property?
-pref("layout.css.width-and-height-map-to-aspect-ratio.enabled", false);
+pref("layout.css.intrinsic-aspect-ratio.enabled", true);
// Enables some assertions in nsStyleContext that are too expensive
// for general use, but might be useful to enable for specific tests.