Reland: Use computed font-size for em/rem resolution.
Removed unrelated failing rebaselines in the original CL. Original description below: This makes us match how Firefox applies minimum font-size and makes us not break relative length computation when pages use a font-size less than the user's minimum font-size as a basis for widths, heights, margins, padding, etc. This is a behavioral change for relative lengths for the following cases: - minimum-font-size does not affect em lengths - minimum-logical-font-size does not affect em lengths - text autosizing does not affect em lengths - text scaling accessibility setting in Chrome for Android does not affect em lengths Test expectation changes and reasons: Text scaling no longer applies to relative lengths (text zoom set from testRunner): svg/zoom/text/zoom-hixie-mixed-008.xml svg/zoom/text/zoom-hixie-rendering-model-004.xhtml svg/zoom/text/zoom-svg-float-border-padding.xml Minimum logical font-size not applying to relative lengths (minimum logical font-size set to 9px when running layout tests): fast/backgrounds/background-position-parsing.html virtual/controls-refresh/fast/forms/controls-new-ui/password/password-eye-icon-zoom-0.5x.html http/tests/misc/object-embedding-svg-delayed-size-negotiation-2.htm TBR=eae@chromium.org Bug: 308862 Change-Id: I8fb07c118eb2bf828ce5b391f7ed90254c0dbfe1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1813077Reviewed-by:Rune Lillesveen <futhark@chromium.org> Commit-Queue: Rune Lillesveen <futhark@chromium.org> Cr-Commit-Position: refs/heads/master@{#697950}
Showing






3.1 KB
3.1 KB

3.1 KB

3.1 KB










3.08 KB