Skip to content

Commit a841cb4

Browse files
darrnshnshans
authored andcommitted
[css-typed-om] Replace background-position with object-position (w3c#428)
* Replace background-position with object-position * Remove issue from spec
1 parent cd9e5fb commit a841cb4

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

css-typed-om/Overview.bs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2060,9 +2060,7 @@ is a [=list=] of {{CSSTransformComponent}}s.
20602060
--------------------------------------------------
20612061

20622062
{{CSSPositionValue}} objects represent <<position>> values,
2063-
used by properties such as 'background-position'.
2064-
2065-
Issue(312): background-position is a shorthand
2063+
used by properties such as 'object-position'.
20662064

20672065
<pre class='idl'>
20682066
[Constructor(CSSNumericValue x, CSSNumericValue y)]
@@ -2111,7 +2109,7 @@ The {{CSSPositionValue/x}} attribute expresses the offset from the left edge of
21112109

21122110
<pre class='lang-css'>
21132111
.example {
2114-
background-position: center bottom 10px;
2112+
object-position: center bottom 10px;
21152113
}
21162114
</pre>
21172115

@@ -2120,10 +2118,10 @@ The {{CSSPositionValue/x}} attribute expresses the offset from the left edge of
21202118
<pre class='lang-javascript'>
21212119
let map = document.querySelector('.example').styleMap;
21222120

2123-
map.get('background-position').x;
2121+
map.get('object-position').x;
21242122
// CSS.percent(50)
21252123

2126-
map.get('background-position').y;
2124+
map.get('object-position').y;
21272125
// CSSMathSum(CSS.percent(100), CSS.px(-10))
21282126
</pre>
21292127
</div>

0 commit comments

Comments
 (0)