<?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>199168</bug_id>
          
          <creation_ts>2019-06-24 11:35:30 -0700</creation_ts>
          <short_desc>An SVG element inside a position: absolute element won&apos;t update until a layout change</short_desc>
          <delta_ts>2023-05-08 07:02:29 -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>SVG</component>
          <version>Safari Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>254090</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="Tim Guan-tin Chien [:timdream]">timdream</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>sabouhallawa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1547432</commentid>
    <comment_count>0</comment_count>
      <attachid>372776</attachid>
    <who name="Tim Guan-tin Chien [:timdream]">timdream</who>
    <bug_when>2019-06-24 11:35:30 -0700</bug_when>
    <thetext>Created attachment 372776
test.html

Summary:
A SVG element inside a position: absolute element is misplaced by text-align: center

Steps To Reproduce:
1. Load the test case
2. Observe that the position of the SVG triangle is diffferent even though the DOM+CSS state is exactly the same.
3. Trigger layout by change the window width.
4. Observe that the SVGs on case #2 and #4 is misplaced again.

Notes:
There are two bugs here. 

First, svg is set to display: block in the UA sheet; setting the property to the same value shouldn’t hav any effect but apparently it does. It was also not being placed correctly — the position of a block element inside another block element shouldn’t be affected by the |text-align| property.

Second: unset the “no-op” value should restore the layout but it did not until re-layout.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1547433</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Guan-tin Chien [:timdream]">timdream</who>
    <bug_when>2019-06-24 11:36:22 -0700</bug_when>
    <thetext>Tested on STP Release 84 (Safari 13.0, WebKit 14608.1.25.2)

Turned out the positioning issue is not valid but the relayout issue is. See https://bugzilla.mozilla.org/show_bug.cgi?id=1558357#c2 for discussion.

Was filed as rdar://51602694.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1953613</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-05-08 01:54:17 -0700</bug_when>
    <thetext>@Simon &amp; @Said - for some reason, I am not able to reproduce this bug in STP169, can you confirm whether it is not reproducible for you as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1953678</commentid>
    <comment_count>3</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2023-05-08 07:01:50 -0700</bug_when>
    <thetext>Progressed at 261859@main</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1953679</commentid>
    <comment_count>4</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2023-05-08 07:02:29 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 254090 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>372776</attachid>
            <date>2019-06-24 11:35:30 -0700</date>
            <delta_ts>2019-06-24 11:35:30 -0700</delta_ts>
            <desc>test.html</desc>
            <filename>test.html</filename>
            <type>text/html</type>
            <size>1411</size>
            <attacher name="T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