Skip to content

Commit 07c095f

Browse files
nainartabatkins
authored andcommitted
CSSTranslation.z shouldn't allow percents (w3c#541)
* CSSTranslation.z shouldn't allow percents * Fix the english a bit
1 parent b6c19d0 commit 07c095f

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

css-typed-om/Overview.bs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2071,15 +2071,17 @@ is a [=list=] of {{CSSTransformComponent}}s.
20712071
when invoked,
20722072
perform the following steps:
20732073

2074-
1. If |x|, |y|, or |z| (if passed)
2075-
don't match <<length-percentage>>,
2074+
1. If |x| or |y| don't match <<length-percentage>>,
20762075
[=throw=] a {{TypeError}}.
20772076

2078-
2. Let |this| be a new {{CSSTranslate}} object,
2077+
2. If |z| was passed, but doesn't match <<length>>,
2078+
[=throw=] a {{TypeError}}.
2079+
2080+
3. Let |this| be a new {{CSSTranslate}} object,
20792081
with its {{CSSTranslate/x}} and {{CSSTranslate/y}} internal slots
20802082
set to |x| and |y|.
20812083

2082-
3. If |z| was passed,
2084+
4. If |z| was passed,
20832085
set |this|’s {{CSSTranslate/z}} internal slot
20842086
to |z|,
20852087
and set |this|’s {{CSSTransformComponent/is2D}} internal slot
@@ -2091,7 +2093,7 @@ is a [=list=] of {{CSSTransformComponent}}s.
20912093
and set |this|’s {{CSSTransformComponent/is2D}} internal slot
20922094
to `true`.
20932095

2094-
5. Return |this|.
2096+
6. Return |this|.
20952097
</div>
20962098

20972099
<div algorithm="CSSRotate(angle)">

0 commit comments

Comments
 (0)