<?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>195525</bug_id>
          
          <creation_ts>2019-03-09 18:04:01 -0800</creation_ts>
          <short_desc>right:0px on absolutely positioned elements breaks with viewport width=device-width</short_desc>
          <delta_ts>2019-03-11 17:00:58 -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>Safari 12</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>REOPENED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Josh Moyer">jmoyer</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>simon.fraser</cc>
    
    <cc>thorton</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1514445</commentid>
    <comment_count>0</comment_count>
    <who name="Josh Moyer">jmoyer</who>
    <bug_when>2019-03-09 18:04:01 -0800</bug_when>
    <thetext>An example page that demonstrates the issue is available at http://jmoyer.nodomain.net/webkitbug.xhtml

If an absolutely positioned element, such as the &lt;body/&gt; or its first child, specifies the &quot;right&quot; CSS property with a value of &quot;0px&quot; (and also top, bottom and left), the right side of the element&apos;s box moves farther from the right edge of the viewport as the device-width narrows, with significant effects observable on an iPhone 6 in landscape orientation with iOS 12.1.4 and also with Chrome 72.0.3626.119 (64-bit) when in mobile landscape emulation mode.  One specific device width tested was 110, where the right side of the element/content isn&apos;t even halfway across the viewport.  As mentioned in the title, this only occurs with smaller widths of device-width in the viewport &lt;meta/&gt; and pages render correctly in desktop mode, regardless of the viewport width.  The upshot of the expected behavior is that content should fill the width (100%) of the viewport and not 66% or 50% in both desktop and mobile rendering modes.  Current versions of Firefox and IE were able to render this content as expected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1514448</commentid>
    <comment_count>1</comment_count>
    <who name="Josh Moyer">jmoyer</who>
    <bug_when>2019-03-09 18:18:45 -0800</bug_when>
    <thetext>You know, looking into it further, it happens even with statically positioned elements, as the updated example shows.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1514502</commentid>
    <comment_count>2</comment_count>
    <who name="Josh Moyer">jmoyer</who>
    <bug_when>2019-03-09 21:20:11 -0800</bug_when>
    <thetext>Sorry, this bug is confounding to me.  It is real, despite my thinking otherwise for a moment.  viewport widths of less than 253 for the included sample, but the problem can be magnified or compounded with other, more complicated stylesheets.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1515107</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-03-11 17:00:58 -0700</bug_when>
    <thetext>&lt;rdar://problem/48789960&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>