<?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>252975</bug_id>
          
          <creation_ts>2023-02-26 21:13:08 -0800</creation_ts>
          <short_desc>[margin-trim] shouldChildInlineMarginContributeToContainerIntrinsicSize should take into consideration text</short_desc>
          <delta_ts>2023-03-06 09:45:46 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>253165</dup_id>
          
          <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="Sammy Gill">sgill26</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1936928</commentid>
    <comment_count>0</comment_count>
      <attachid>465194</attachid>
    <who name="Sammy Gill">sgill26</who>
    <bug_when>2023-02-26 21:13:08 -0800</bug_when>
    <thetext>Created attachment 465194
Testcase

The attached test case shows how text can end up in a RenderBlockFlow. Currently shouldChildInlineMarginContributeToContainerIntrinsicSize is unable to handle such a case since it takes a RenderElement</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1939026</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-03-05 21:14:15 -0800</bug_when>
    <thetext>&lt;rdar://problem/106271482&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1939153</commentid>
    <comment_count>2</comment_count>
    <who name="Sammy Gill">sgill26</who>
    <bug_when>2023-03-06 09:45:46 -0800</bug_when>
    <thetext>There better option here was to maintain the function signature as is since it makes more sense and then check the value we are trying to pass in at the call site.

*** This bug has been marked as a duplicate of bug 253165 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>465194</attachid>
            <date>2023-02-26 21:13:08 -0800</date>
            <delta_ts>2023-02-26 21:13:08 -0800</delta_ts>
            <desc>Testcase</desc>
            <filename>testcase.html</filename>
            <type>text/html</type>
            <size>470</size>
            <attacher name="Sammy Gill">sgill26</attacher>
            
              <data encoding="base64">PHN0eWxlPgoqIHsgCiAgICAtd2Via2l0LXVzZXItbW9kaWZ5OiByZWFkLXdyaXRlOwp9Cjwvc3R5
bGU+CjxzY3JpcHQ+CiAgICBmdW5jdGlvbiBtYWluKCkgewogICAgICAgIHRyeSB7IGRvY3VtZW50
LmRlc2lnbk1vZGUgPSAib24iOyB9IGNhdGNoIHsgfQogICAgICAgIHRyeSB7IGRvY3VtZW50LmV4
ZWNDb21tYW5kKCJzZWxlY3RBbGwiLCBmYWxzZSwgbnVsbCk7IH0gY2F0Y2ggeyB9CiAgICAgICAg
dHJ5IHsgZG9jdW1lbnQuZXhlY0NvbW1hbmQoIml0YWxpYyIsIGZhbHNlLCBudWxsKTsgfSBjYXRj
aCB7IH0KICAgICAgICB0cnkgeyBkb2N1bWVudC5leGVjQ29tbWFuZCgiaXRhbGljIiwgZmFsc2Us
IG51bGwpOyB9IGNhdGNoIHsgfQogICAgfQo8L3NjcmlwdD4KCjxib2R5IG9ubG9hZD0ibWFpbigp
Ij4KPHJ1Ynk+CjxoMT48L2gxPgo8cnQ+CjxwPjwvcD4KPGlucHV0Pgo8L3J0PgpjcmFzaAo8cnA+
PC9ycD4KPC9ydWJ5Pgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>