<?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>119393</bug_id>
          
          <creation_ts>2013-08-01 05:46:06 -0700</creation_ts>
          <short_desc>[CSS Regions] Margins are not correctly computed in regions with mixed widths</short_desc>
          <delta_ts>2022-07-13 09:24:07 -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>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>AdobeTracked</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>57312</blocked>
    
    <blocked>74131</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Simon Pena">spena</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>mibalan</cc>
    
    <cc>mihnea</cc>
    
    <cc>WebkitBugTracker</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>913717</commentid>
    <comment_count>0</comment_count>
      <attachid>207918</attachid>
    <who name="Simon Pena">spena</who>
    <bug_when>2013-08-01 05:46:06 -0700</bug_when>
    <thetext>Created attachment 207918
LayoutTest proposal

(This shares the same preconditions as bug #74131)

If you have an element in a region with a percentage margin, and the region is followed by another region with a larger width, the size and margin calculations are using the widest region in the flow, then moving and clipping for display in the first region. As a result, using getComputedStyle to retrieve these margins fails, giving the original values which used the widest region in the flow.

I created a test, starting from the one attached in bug #74131 and modifying it to incorporate the logic from http://trac.webkit.org/browser/trunk/LayoutTests/fast/css/getComputedStyle/getComputedStyle-margin-percentage.html. It can be seen how the test passes once we remove the second region with the larger width.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1883062</commentid>
    <comment_count>1</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-07-13 09:24:07 -0700</bug_when>
    <thetext>CSS Regions were removed in Bug 174978.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>207918</attachid>
            <date>2013-08-01 05:46:06 -0700</date>
            <delta_ts>2013-08-01 05:46:06 -0700</delta_ts>
            <desc>LayoutTest proposal</desc>
            <filename>regions-getComputedStyle-margin-percentage.tar.gz</filename>
            <type>application/x-gzip</type>
            <size>816</size>
            <attacher name="Simon Pena">spena</attacher>
            
              <data encoding="base64">H4sIABZY+lEAA+2W3WrbMBSAc+2n0AIjDl0c23EalriBretgULaylcFgN46lOKayZGS5SRiFPcbe
Zu+1qx3FTmInbTpGaS+q7yJWdH50JJ1z7PNgyXN5STKZdadBJruCRDFnWTci8pQnaS4J/iKXlHSS
QEQx66REhITJICIdskhJCHJLLmTjADZw7HmNnzB+/evoT/E0ftslrus2HNcZHHt9z3Z6Ddsd9AZe
A9mHnD4UeSYDgVAjixPOrJSw4Ha94Poxonl01M2jMKA0ZhGCO78QHG5YLr8GNCeIMxSWSYCK+0eZ
SoYM5ZkyKJPFMowyOyiZyiFy7XSxnpE8HaJeZULE0Qx0vMrUhEvJkyFSU8ZTn8jz4vz/69+ayYT+
yxr31L/b73nr+u95rgP13x/0dP0/Cv6Ld59OL79dnCF1m2PDXz9IgMcGAvxVxRdjhKwp5XP0o/yn
6MzJ5CqWHSXoxEzyIQsSgt/D31GpdrM2LpLrbvOpgDawZ66YcIGJGCInXaCM0xijCQ3Cq6rKPMZy
ppoPtJHq/IwUHcfpVwSbkIq0zm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