This page was translated from English by the community. Learn more and join the MDN Web Docs community.

View in English Always switch to English

x

Атрибут x определяет координату по оси x в пользовательской системе координат.

Этот атрибут можно использовать для следующих SVG-элементов:

Пример

html
<svg viewBox="0 0 300 100" xmlns="http://www.w3.org/2000/svg">
  <rect x="20" y="20" width="60" height="60" />
  <rect x="120" y="20" width="60" height="60" />
  <rect x="220" y="20" width="60" height="60" />
</svg>

Спецификации

Specification
Filter Effects Module Level 1
# element-attrdef-filter-x
Filter Effects Module Level 1
# element-attrdef-fespotlight-x
Filter Effects Module Level 1
# element-attrdef-fepointlight-x
Filter Effects Module Level 1
# element-attrdef-filter-primitive-x
CSS Masking Module Level 1
# element-attrdef-mask-x
Scalable Vector Graphics (SVG) 2
# X
Scalable Vector Graphics (SVG) 2
# PatternElementXAttribute
Scalable Vector Graphics (SVG) 2
# TextElementXAttribute