mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-29 11:57:32 +09:00
Issue #1620 - Enable Intrinsic Ratio by Default
A simpler name feels so much cleaner.
This commit is contained in:
parent
c02e424911
commit
9f48a59946
2 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -4824,7 +4824,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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue