<?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>117474</bug_id>
          
          <creation_ts>2013-06-10 20:37:15 -0700</creation_ts>
          <short_desc>Fix regression with dynamically sized replaced elements</short_desc>
          <delta_ts>2024-03-30 20:07:19 -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>Layout and Rendering</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BlinkMergeCandidate</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>109859</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryosuke Niwa">rniwa</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>bdakin</cc>
    
    <cc>hyatt</cc>
    
    <cc>robert</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>898985</commentid>
    <comment_count>0</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2013-06-10 20:37:15 -0700</bug_when>
    <thetext>Consider merging http://src.chromium.org/viewvc/blink?view=rev&amp;revision=142931

fixed a bug where we treat have the minPreferredLogicalWidth
of percentage height replaced elements be 0. This exposed
a bug where we were not marking the preferred width as dirty.
Specifically, a percentage height replaced element that maintains
aspect ratio needs preferred widths recalculated if the height
of it&apos;s containingBlock changes.

Also, rolled hasViewportPercentageLogicalHeight into
hasRelativeLogicalHeight. The two were always called together.
There&apos;s a slight change in behavior here where we won&apos;t
mark children of the RenderView that have viewport relative heights
as needing layout where we used to, but I don&apos;t think that
was needed anyways.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1957878</commentid>
    <comment_count>1</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-05-25 05:43:23 -0700</bug_when>
    <thetext>Chrome bug had this testcase: https://jsfiddle.net/v3epa76k/

^ it is passing even in Safari 16.5.

Original merge commit was - https://src.chromium.org/viewvc/blink?view=revision&amp;revision=151805

Seems to be done: https://searchfox.org/wubkat/source/Source/WebCore/rendering/RenderBlock.cpp#840

RenderBox::hasViewportPercentageLogicalHeight() &lt;- Not able to find.

Already done - https://searchfox.org/wubkat/source/Source/WebCore/rendering/RenderReplaced.cpp#845

Although since the test is passing, I think, we are fine.

CCing - Alan..</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>