<?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>211351</bug_id>
          
          <creation_ts>2020-05-03 06:45:13 -0700</creation_ts>
          <short_desc>lh / rlh units don&apos;t work properly for some elements.</short_desc>
          <delta_ts>2022-10-14 08:00:51 -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>CSS</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <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>
          <dependson>211356</dependson>
          <blocked>195180</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Emilio Cobos Álvarez (:emilio)">emilio</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>koivisto</cc>
    
    <cc>ntim</cc>
    
    <cc>rune.lillesveen</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>twilco.o</cc>
    
    <cc>tyler_w</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1648336</commentid>
    <comment_count>0</comment_count>
    <who name="Emilio Cobos Álvarez (:emilio)">emilio</who>
    <bug_when>2020-05-03 06:45:13 -0700</bug_when>
    <thetext>There&apos;s a bunch of setLineHeight calls in RenderTheme / StyleAdjuster that happen when all other CSS values have already been computed.

So the lh units will refer to a line-height that&apos;s fundamentally wrong.

I filed https://github.com/w3c/csswg-drafts/issues/3257 on that a while ago but it seems WebKit has implemented the broken behavior :(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1648360</commentid>
    <comment_count>1</comment_count>
    <who name="Emilio Cobos Álvarez (:emilio)">emilio</who>
    <bug_when>2020-05-03 11:52:38 -0700</bug_when>
    <thetext>Ah, that&apos;s a MainThreadNeverDestroyed, introduced by:

  https://bugs.webkit.org/show_bug.cgi?id=211264

So this is a regression from that change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1648399</commentid>
    <comment_count>2</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2020-05-03 15:16:19 -0700</bug_when>
    <thetext>(In reply to Emilio Cobos Álvarez (:emilio) from comment #1)
&gt; Ah, that&apos;s a MainThreadNeverDestroyed, introduced by:
&gt; 
&gt;   https://bugs.webkit.org/show_bug.cgi?id=211264
&gt; 
&gt; So this is a regression from that change.

Could you upload the crash trace of this? If non main thread is touching `const AtomString` generated by `MainThreadNeverDestroyed&lt;&gt;`, this potentially means that `MainThreadNeverDestroyed&lt;&gt;` finds the real bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1648400</commentid>
    <comment_count>3</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2020-05-03 15:18:35 -0700</bug_when>
    <thetext>(In reply to Yusuke Suzuki from comment #2)
&gt; (In reply to Emilio Cobos Álvarez (:emilio) from comment #1)
&gt; &gt; Ah, that&apos;s a MainThreadNeverDestroyed, introduced by:
&gt; &gt; 
&gt; &gt;   https://bugs.webkit.org/show_bug.cgi?id=211264
&gt; &gt; 
&gt; &gt; So this is a regression from that change.
&gt; 
&gt; Could you upload the crash trace of this? If non main thread is touching
&gt; `const AtomString` generated by `MainThreadNeverDestroyed&lt;&gt;`, this
&gt; potentially means that `MainThreadNeverDestroyed&lt;&gt;` finds the real bug.

OK, found that, thanks :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1648410</commentid>
    <comment_count>4</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2020-05-03 16:13:51 -0700</bug_when>
    <thetext>(In reply to Yusuke Suzuki from comment #3)
&gt; (In reply to Yusuke Suzuki from comment #2)
&gt; &gt; (In reply to Emilio Cobos Álvarez (:emilio) from comment #1)
&gt; &gt; &gt; Ah, that&apos;s a MainThreadNeverDestroyed, introduced by:
&gt; &gt; &gt; 
&gt; &gt; &gt;   https://bugs.webkit.org/show_bug.cgi?id=211264
&gt; &gt; &gt; 
&gt; &gt; &gt; So this is a regression from that change.
&gt; &gt; 
&gt; &gt; Could you upload the crash trace of this? If non main thread is touching
&gt; &gt; `const AtomString` generated by `MainThreadNeverDestroyed&lt;&gt;`, this
&gt; &gt; potentially means that `MainThreadNeverDestroyed&lt;&gt;` finds the real bug.
&gt; 
&gt; OK, found that, thanks :)

Looks like that patch (adding new assertions) found a GTK specific bug, which cannot be caught due to lack of GTK Debug EWS.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1648414</commentid>
    <comment_count>5</comment_count>
    <who name="Emilio Cobos Álvarez (:emilio)">emilio</who>
    <bug_when>2020-05-03 16:46:35 -0700</bug_when>
    <thetext>
Yes, sorry, but I pasted comment 1 in the wrong bug, should&apos;ve been in bug 211355, that&apos;s why I tagged it as off-topic.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1648418</commentid>
    <comment_count>6</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2020-05-03 17:45:53 -0700</bug_when>
    <thetext>(In reply to Emilio Cobos Álvarez (:emilio) from comment #5)
&gt; Yes, sorry, but I pasted comment 1 in the wrong bug, should&apos;ve been in bug
&gt; 211355, that&apos;s why I tagged it as off-topic.

np! Thanks for reporting :D</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1880043</commentid>
    <comment_count>7</comment_count>
    <who name="Tyler Wilcock">tyler_w</who>
    <bug_when>2022-07-01 11:40:09 -0700</bug_when>
    <thetext>rdar://96305580</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1905590</commentid>
    <comment_count>8</comment_count>
    <who name="Rune Lillesveen">rune.lillesveen</who>
    <bug_when>2022-10-14 05:32:26 -0700</bug_when>
    <thetext>Given the resolution in [1], this issue is most likely a Wontfix?

[1] https://github.com/w3c/csswg-drafts/issues/3257#issuecomment-1204146452</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>