Merge pull request #1613 from RealityRipple/AspectRatio

[Image/CSS] Intrinsic Aspect Ratio
This commit is contained in:
Moonchild
2020-08-08 19:59:24 +00:00
committed by GitHub
18 changed files with 380 additions and 156 deletions
+6
View File
@@ -4811,6 +4811,12 @@ pref("media.ondevicechange.fakeDeviceChangeEvent.enabled", false);
// those platforms we don't handle touch events anyway so it's conceptually
// a no-op.
pref("layout.css.touch_action.enabled", true);
// WHATWG computed intrinsic aspect ratio for an img element
// 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.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.