<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>270190</bug_id>
          
          <creation_ts>2024-02-27 13:31:53 -0800</creation_ts>
          <short_desc>[ iOS17 ] Rebasline: 12X fast/* css* layout-tests are rebaslines after OS migration</short_desc>
          <delta_ts>2024-08-12 13:03:05 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=270223</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dawn Morningstar">Morningstar</reporter>
          <assigned_to name="Dawn Morningstar">Morningstar</assigned_to>
          <cc>ap</cc>
    
    <cc>fantasai.bugs</cc>
    
    <cc>jbedard</cc>
    
    <cc>vitor.roriz</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2017280</commentid>
    <comment_count>0</comment_count>
    <who name="Dawn Morningstar">Morningstar</who>
    <bug_when>2024-02-27 13:31:53 -0800</bug_when>
    <thetext>css1/box_properties/acid_test.html
css2.1/t09-c5526c-display-00-e.html
fast/block/basic/011.html
fast/block/basic/minheight.html
fast/block/margin-collapse/103.html
fast/css/002.html
fast/forms/search-styled.html
fast/invalid/008.html
fast/overflow/003.xml
fast/table/rowindex.html
fast/text/capitalize-boundaries.html
fast/text/international/bidi-explicit-embedding.html

These tests are are text failures after the migration and the diff for each is just pixel differences which we&apos;ve seen before and have been rebaslines before. 

HISTORY:
https://results.webkit.org/?suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;test=css1%2Fbox_properties%2Facid_test.html&amp;test=css2.1%2Ft09-c5526c-display-00-e.html&amp;test=fast%2Fblock%2Fbasic%2F011.html&amp;test=fast%2Fblock%2Fbasic%2Fminheight.html&amp;test=fast%2Fblock%2Fmargin-collapse%2F103.html&amp;test=fast%2Fcss%2F002.html&amp;test=fast%2Fforms%2Fsearch-styled.html&amp;test=fast%2Finvalid%2F008.html&amp;test=fast%2Foverflow%2F003.xml&amp;test=fast%2Ftable%2Frowindex.html&amp;test=fast%2Ftext%2Fcapitalize-boundaries.html&amp;test=fast%2Ftext%2Finternational%2Fbidi-explicit-embedding.html&amp;platform=ios 

DIFF:
--- /Volumes/Data/worker/Apple-iOS-17-Simulator-Release-WK2-Tests/build/layout-test-results/fast/block/basic/minheight-expected.txt
+++ /Volumes/Data/worker/Apple-iOS-17-Simulator-Release-WK2-Tests/build/layout-test-results/fast/block/basic/minheight-actual.txt
@@ -10,14 +10,14 @@
         RenderText {#text} at (0,1) size 53x16
           text run at (0,1) width 53: &quot;Content&quot;
       RenderBlock {P} at (10,40) size 780x30
-        RenderText {#text} at (0,1) size 473x16
-          text run at (0,1) width 473: &quot;Please resize the browser window to see how your 100% CSS footer behaves.&quot;
+        RenderText {#text} at (0,1) size 472x16
+          text run at (0,1) width 472: &quot;Please resize the browser window to see how your 100% CSS footer behaves.&quot;
       RenderBlock {P} at (10,70) size 780x102
-        RenderText {#text} at (0,1) size 779x88
-          text run at (0,1) width 762: &quot;Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras porttitor. Ut nonummy vestibulum arcu. Nulla eros eros, mattis&quot;
-          text run at (0,19) width 771: &quot;et, dictum quis, convallis vel, mauris. Ut sed mauris vel metus pretium pretium. Curabitur tristique sem id justo. Nunc sit amet&quot;
-          text run at (0,37) width 779: &quot;felis. Duis luctus pharetra urna. Sed enim arcu, cursus a, posuere sed, sollicitudin in, justo. Pellentesque enim lacus, egestas ut,&quot;
-          text run at (0,55) width 761: &quot;elementum eu, molestie vel, urna. Integer quam. Phasellus tempor. Sed commodo porttitor justo. Vestibulum rhoncus lacinia&quot;
+        RenderText {#text} at (0,1) size 780x88
+          text run at (0,1) width 780: &quot;Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras porttitor. Ut nonummy vestibulum arcu. Nulla eros eros, mattis et,&quot;
+          text run at (0,19) width 749: &quot;dictum quis, convallis vel, mauris. Ut sed mauris vel metus pretium pretium. Curabitur tristique sem id justo. Nunc sit amet&quot;
+          text run at (0,37) width 778: &quot;felis. Duis luctus pharetra urna. Sed enim arcu, cursus a, posuere sed, sollicitudin in, justo. Pellentesque enim lacus, egestas ut,&quot;
+          text run at (0,55) width 758: &quot;elementum eu, molestie vel, urna. Integer quam. Phasellus tempor. Sed commodo porttitor justo. Vestibulum rhoncus lacinia&quot;
           text run at (0,73) width 436: &quot;pede. Aliquam lectus velit, auctor a, fermentum a, accumsan et, neque.&quot;
 layer at (0,562) size 620x38
   RenderBlock (positioned) {DIV} at (0,562) size 620x38 [bgcolor=#0066B2]

DIFF-URL:
https://build.webkit.org/results/Apple-iOS-17-Simulator-Release-WK2-Tests/275368@main%20(2298)/fast/block/basic/minheight-diff.txt</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2017283</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-02-27 13:32:30 -0800</bug_when>
    <thetext>&lt;rdar://problem/123712678&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2017297</commentid>
    <comment_count>2</comment_count>
    <who name="Dawn Morningstar">Morningstar</who>
    <bug_when>2024-02-27 14:13:01 -0800</bug_when>
    <thetext>Test-run-url: https://build.webkit.org/results/Apple-iOS-17-Simulator-Release-WK2-Tests/275368@main%20(2298)/results.html 

To check each test in this list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2017298</commentid>
    <comment_count>3</comment_count>
    <who name="Dawn Morningstar">Morningstar</who>
    <bug_when>2024-02-27 14:24:04 -0800</bug_when>
    <thetext>It might be worth noting that some of these tests are 20~ years old... I wonder their relevance on modern webkit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2017528</commentid>
    <comment_count>4</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2024-02-28 11:23:38 -0800</bug_when>
    <thetext>So, of the twelve tests above:

css1/box_properties/acid_test.html
css2.1/t09-c5526c-display-00-e.html
fast/block/basic/011.html
fast/block/basic/minheight.html
fast/block/margin-collapse/103.html
fast/css/002.html
fast/forms/search-styled.html
fast/invalid/008.html
fast/overflow/003.xml

All (eight) of these use Verdana as a font, and all have metrics differing by a few pixels per text run (except where the location of line breaks has changed).

The other four all use Lucida Grande, and again metrics differ by a few pixels per text run.

If we look at every test in fast using Verdana, we end up with:

fast/block/basic/011.html
fast/block/basic/minheight.html
fast/block/margin-collapse/103.html
fast/block/positioning/051.html
fast/canvas/canvas-composite-alpha.html
fast/canvas/canvas-composite-canvas.html
fast/canvas/canvas-composite-image.html
fast/canvas/canvas-composite-stroke-alpha.html
fast/canvas/canvas-composite-text-alpha.html
fast/canvas/canvas-composite-transformclip.html
fast/canvas/canvas-composite.html
fast/css/002.html
fast/css/003.html
fast/css/css2-system-color.html
fast/dom/HTMLTableElement/insert-row.html
fast/forms/negativeLineHeight.html
fast/forms/search-styled.html
fast/forms/text-control-intrinsic-widths.html
fast/forms/textAreaLineHeight.html
fast/forms/textarea-width.html
fast/invalid/008.html
fast/overflow/resources/rss.css
fast/sub-pixel/auto-table-layout-should-avoid-text-wrapping.html
fast/text/basic/generic-family-reset.html
fast/text/combining-character-sequence-fallback-crash.html
fast/text/font-face-set-remove-safely.html
fast/text-autosizing/ios/font-family-case-insensitive.html

Many of these are also regressed from iOS 17.0 to iOS 17.2, which suggests somehow Verdana (and at least some other fonts) are rendered differently now — whether that&apos;s a change to Verdana itself or a change in CoreText.

I don&apos;t think there&apos;s anything inherently special about the tests in this issue: this is a problem we have with anything dumping a render tree including text runs, because changes to font rendering can change those metrics. We don&apos;t really have good options aside from &quot;don&apos;t include text in render tree dumps&quot; or &quot;don&apos;t use render tree dumps&quot;, and neither are really viable given all the tests we already have.

It might be that we have changes less often where tests are using the generic sans-serif (or serif, etc.) families, but that&apos;s far from a guarantee if we make broad changes to font rendering.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>