Bug 174534 - Set LayoutTests' minimumLogicalFontSize to 0
Summary: Set LayoutTests' minimumLogicalFontSize to 0
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Myles C. Maxfield
URL:
Keywords:
Depends on:
Blocks: 174406
  Show dependency treegraph
 
Reported: 2017-07-14 21:14 PDT by Myles C. Maxfield
Modified: 2018-02-28 07:29 PST (History)
3 users (show)

See Also:


Attachments
Patch (1.75 MB, patch)
2017-07-14 21:22 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews122 for ios-simulator-wk2 (1.33 MB, application/zip)
2017-07-14 22:49 PDT, Build Bot
no flags Details
Patch (1.79 MB, patch)
2017-07-15 09:49 PDT, Myles C. Maxfield
buildbot: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from ews123 for ios-simulator-wk2 (965.46 KB, application/zip)
2017-07-15 11:59 PDT, Build Bot
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Myles C. Maxfield 2017-07-14 21:14:43 PDT
Set LayoutTests' minimumLogicalFontSize to 0
Comment 1 Myles C. Maxfield 2017-07-14 21:22:23 PDT
Created attachment 315527 [details]
Patch
Comment 2 mitz 2017-07-14 22:06:09 PDT
Comment on attachment 315527 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=315527&action=review

> Tools/ChangeLog:17
> +        https://bugs.webkit.org/show_bug.cgi?id=174406 is tracking work to make our
> +        various minimum font size settings also affect line-height. We should stop
> +        triggering these settings in our tests because that patch would cause a bunch
> +        of line heights to change in these tests. However, because these tests aren't
> +        actually about font sizes or line heights, this patch makes the tests insensitive
> +        to these settings.

9px is the default minimum logical font size. So are you implying that the change you are planning for bug 174406 will affect the line height in all apps that don’t set a non-default minimum logical font size?
Comment 3 Build Bot 2017-07-14 22:49:35 PDT
Comment on attachment 315527 [details]
Patch

Attachment 315527 [details] did not pass ios-sim-ews (ios-simulator-wk2):
Output: http://webkit-queues.webkit.org/results/4123599

New failing tests:
fast/ruby/ruby-simple.html
fast/ruby/rubyDOM-remove-text2.html
fast/ruby/nested-ruby.html
fast/css/bidi-override-in-anonymous-block.html
http/tests/misc/object-embedding-svg-delayed-size-negotiation-2.htm
fast/backgrounds/background-position-parsing.html
fast/ruby/ruby-simple-rp.html
fast/ruby/ruby-empty-rt.html
Comment 4 Build Bot 2017-07-14 22:49:36 PDT
Created attachment 315532 [details]
Archive of layout-test-results from ews122 for ios-simulator-wk2

The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews122  Port: ios-simulator-wk2  Platform: Mac OS X 10.12.5
Comment 5 Myles C. Maxfield 2017-07-15 09:49:01 PDT
Created attachment 315550 [details]
Patch
Comment 6 Build Bot 2017-07-15 11:59:05 PDT
Comment on attachment 315550 [details]
Patch

Attachment 315550 [details] did not pass ios-sim-ews (ios-simulator-wk2):
Output: http://webkit-queues.webkit.org/results/4126556

New failing tests:
http/tests/cookies/http-get-cookie-set-in-js.html
Comment 7 Build Bot 2017-07-15 11:59:06 PDT
Created attachment 315560 [details]
Archive of layout-test-results from ews123 for ios-simulator-wk2

The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews123  Port: ios-simulator-wk2  Platform: Mac OS X 10.12.5
Comment 8 Myles C. Maxfield 2017-07-15 22:37:52 PDT
Failure is unrelated.
Comment 9 Myles C. Maxfield 2017-07-15 22:45:00 PDT
(In reply to mitz from comment #2)
> Comment on attachment 315527 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=315527&action=review
> 
> > Tools/ChangeLog:17
> > +        https://bugs.webkit.org/show_bug.cgi?id=174406 is tracking work to make our
> > +        various minimum font size settings also affect line-height. We should stop
> > +        triggering these settings in our tests because that patch would cause a bunch
> > +        of line heights to change in these tests. However, because these tests aren't
> > +        actually about font sizes or line heights, this patch makes the tests insensitive
> > +        to these settings.
> 
> 9px is the default minimum logical font size. So are you implying that the
> change you are planning for bug 174406 will affect the line height in all
> apps that don’t set a non-default minimum logical font size?

Isn't that the whole point of the patch? To make minimumFontSize and minimumLogicalFontSize affect line-height?
Comment 10 Myles C. Maxfield 2017-07-15 23:08:58 PDT
(In reply to Myles C. Maxfield from comment #9)
> (In reply to mitz from comment #2)
> > Comment on attachment 315527 [details]
> > Patch
> > 
> > View in context:
> > https://bugs.webkit.org/attachment.cgi?id=315527&action=review
> > 
> > > Tools/ChangeLog:17
> > > +        https://bugs.webkit.org/show_bug.cgi?id=174406 is tracking work to make our
> > > +        various minimum font size settings also affect line-height. We should stop
> > > +        triggering these settings in our tests because that patch would cause a bunch
> > > +        of line heights to change in these tests. However, because these tests aren't
> > > +        actually about font sizes or line heights, this patch makes the tests insensitive
> > > +        to these settings.
> > 
> > 9px is the default minimum logical font size. So are you implying that the
> > change you are planning for bug 174406 will affect the line height in all
> > apps that don’t set a non-default minimum logical font size?
> 
> Isn't that the whole point of the patch? To make minimumFontSize and
> minimumLogicalFontSize affect line-height?

I guess the bug is about the accessibility font sizes, which set minimumFontSize but not minimumLogicalFontSize. This means I have to rethink my approach in https://bugs.webkit.org/show_bug.cgi?id=174406.

(My current approach was to treat the calculation of the computed font size as a black box, and simply query it's value and the value of the specified font-size, and then make line-height scale up accordingly. However, if I'm going to treat certain parts of the computation of the computed value of font-size differently from other parts of the computation, this approach isn't going to work.)
Comment 11 Frédéric Wang (:fredw) 2018-02-28 07:29:40 PST
Comment on attachment 315550 [details]
Patch

Removing review request since this is marked as WONTFIX