<?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>157511</bug_id>
          
          <creation_ts>2016-05-10 02:27:48 -0700</creation_ts>
          <short_desc>Implement CSS background-position-x/-y edge offsets</short_desc>
          <delta_ts>2022-07-15 08:59: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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>OS X 10.11</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>202148</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=154551</see_also>
          <bug_file_loc>https://drafts.csswg.org/css-backgrounds-4/#background-position-longhands</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>WebExposed</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="yisibl">50167214</reporter>
          <assigned_to name="Simon Fraser (smfr)">simon.fraser</assigned_to>
          <cc>50167214</cc>
    
    <cc>bfulgham</cc>
    
    <cc>gsnedders</cc>
    
    <cc>ntim</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1191478</commentid>
    <comment_count>0</comment_count>
    <who name="yisibl">50167214</who>
    <bug_when>2016-05-10 02:27:48 -0700</bug_when>
    <thetext>We must be support two-value syntax and edge offsets for background-position-x/-y.

e.g.

background-position-x: right 30px;
background-position-x: -95px, center, right 30px, ...;

Spec: https://drafts.csswg.org/css-backgrounds-4/#background-position-longhands

MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/background-position-x
https://developer.mozilla.org/en-US/docs/Web/CSS/background-position-y

Browser compatibility

Firefox 49 Yes
IE 9 Yes
Edge Yes
Chrome No
Opera 12.1 No</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1191810</commentid>
    <comment_count>1</comment_count>
      <attachid>278575</attachid>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2016-05-10 21:23:20 -0700</bug_when>
    <thetext>Created attachment 278575
Testcase</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1191835</commentid>
    <comment_count>2</comment_count>
    <who name="yisibl">50167214</who>
    <bug_when>2016-05-10 22:06:06 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; Created attachment 278575 [details]
&gt; Testcase

Can you fix the same problem with blink?
https://bugs.chromium.org/p/chromium/issues/detail?id=610627</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1883875</commentid>
    <comment_count>3</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-07-14 15:43:12 -0700</bug_when>
    <thetext>Gecko and WebKit now handle this properly. Chrome still does not.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1884042</commentid>
    <comment_count>4</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2022-07-15 08:59:58 -0700</bug_when>
    <thetext>Duplicate of bug 202148

*** This bug has been marked as a duplicate of bug 202148 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>278575</attachid>
            <date>2016-05-10 21:23:20 -0700</date>
            <delta_ts>2016-05-10 21:23:20 -0700</delta_ts>
            <desc>Testcase</desc>
            <filename>background-position-x.html</filename>
            <type>text/html</type>
            <size>708</size>
            <attacher name="Simon Fraser (smfr)">simon.fraser</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+Cgo8aHRtbD4KPGhlYWQ+CiAgICA8c3R5bGU+CiAgICAgICAgLmJveCB7
CiAgICAgICAgICAgIG1hcmdpbjogMjBweDsKICAgICAgICAgICAgd2lkdGg6IDMwMHB4OwogICAg
ICAgICAgICBoZWlnaHQ6IDMwMHB4OwogICAgICAgICAgICBib3JkZXI6IDFweCBzb2xpZCBibGFj
azsKICAgICAgICAgICAgYmFja2dyb3VuZC1pbWFnZTogbGluZWFyLWdyYWRpZW50KGJsdWUsIGJs
dWUpOwogICAgICAgICAgICBiYWNrZ3JvdW5kLXNpemU6IDIwMHB4IDEwMHB4OwogICAgICAgICAg
ICBiYWNrZ3JvdW5kLXJlcGVhdDogbm8tcmVwZWF0OwogICAgICAgIH0KICAgICAgICAKICAgICAg
ICAuc2hvcnRoYW5kIHsKICAgICAgICAgICAgYmFja2dyb3VuZC1wb3NpdGlvbjogbGVmdCAyNSUg
Ym90dG9tIDI1JTsKICAgICAgICB9CiAgICAgICAgCiAgICAgICAgLmxvbmdoYW5kcyB7CiAgICAg
ICAgICAgIGJhY2tncm91bmQtcG9zaXRpb24teDogbGVmdCAyNSU7CiAgICAgICAgICAgIGJhY2tn
cm91bmQtcG9zaXRpb24teTogYm90dG9tIDI1JTsKICAgICAgICB9CiAgICA8L3N0eWxlPgo8L2hl
YWQ+Cjxib2R5Pgo8cD5Ub3AgYW5kIGJvdHRvbSBzaG91bGQgbG9vayB0aGUgc2FtZTwvcD4KPGRp
diBjbGFzcz0ic2hvcnRoYW5kIGJveCI+PC9kaXY+CjxkaXYgY2xhc3M9ImxvbmdoYW5kcyBib3gi
PjwvZGl2Pgo8L2JvZHk+CjwvaHRtbD4K
</data>

          </attachment>
      

    </bug>

</bugzilla>