Revert "Use computed font-size for em/rem resolution."
This reverts commit 41edd5e1. Reason for revert: external/wpt/orientation-sensor/AbsoluteOrientationSensor.https.html external/wpt/orientation-sensor/RelativeOrientationSensor.https.html are consistently failing on Mac. Bug:1004253 Original change's description: > Use computed font-size for em/rem resolution. > > 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 > > Bug: 308862 > Change-Id: I5e5fb99e69b516c9c0c3758d232cbae8f7f5894a > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1803281 > Reviewed-by: Emil A Eklund <eae@chromium.org> > Commit-Queue: Rune Lillesveen <futhark@chromium.org> > Cr-Commit-Position: refs/heads/master@{#696694} TBR=pdr@chromium.org,eae@chromium.org,drott@chromium.org,futhark@chromium.org Change-Id: Iaca7d3c69056f1b8f77ea4f212bf4abd08c613d8 No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: 308862 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1804478Reviewed-by:Ioana Pandele <ioanap@chromium.org> Commit-Queue: Ioana Pandele <ioanap@chromium.org> Cr-Commit-Position: refs/heads/master@{#696759}
Showing






3.1 KB
3.1 KB

3.1 KB

3.1 KB










3.08 KB