From 074785cea106179cb3305637055ab0a009ca74f2 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:42:52 -0500 Subject: initial commit --- files/ru/web/css/hanging-punctuation/index.html | 117 ++++++++++++++++++++++++ 1 file changed, 117 insertions(+) create mode 100644 files/ru/web/css/hanging-punctuation/index.html (limited to 'files/ru/web/css/hanging-punctuation') diff --git a/files/ru/web/css/hanging-punctuation/index.html b/files/ru/web/css/hanging-punctuation/index.html new file mode 100644 index 0000000000..fe8ed1a6a4 --- /dev/null +++ b/files/ru/web/css/hanging-punctuation/index.html @@ -0,0 +1,117 @@ +--- +title: hanging-punctuation +slug: Web/CSS/hanging-punctuation +tags: + - CSS +translation_of: Web/CSS/hanging-punctuation +--- +
{{CSSRef}}{{SeeCompatTable}}
+ +

Свойство hanging-punctuation определяет как браузер будет отображать знаки пунктуации, попадающие в начало или в конец строки. Висячая пунктуация может располагаться за границами контейнера. 

+ +
/* Значения ключевых слов */
+hanging-punctuation: none;
+hanging-punctuation: first;
+hanging-punctuation: last;
+hanging-punctuation: force-end;
+hanging-punctuation: allow-end;
+
+/* Два ключевых слова */
+hanging-punctuation: first force-end;
+hanging-punctuation: first allow-end;
+hanging-punctuation: first last;
+hanging-punctuation: last force-end;
+hanging-punctuation: last allow-end;
+
+/* Три ключевых слова */
+hanging-punctuation: first force-end last;
+hanging-punctuation: first allow-end last;
+
+/* Общие значения */
+hanging-punctuation: inherit;
+hanging-punctuation: initial;
+hanging-punctuation: unset;
+
+ +

{{CSSInfo}}

+ +

Синтаксис

+ +

Свойство hanging-punctuation  может быть определено с помощью одного, двух или трех ключевых слов.

+ + + +

Значения

+ +
+
none
+
Никакие символы не выносятся.
+
first
+
Открывающая скобка или кавычка в начале первой строки выровненного элемента будет вынесена.
+
last
+
Закрывающая скобка или кавычка последней строки выровненного элемента будет вынесена.
+
force-end
+
Точка или запятая в конце строки выносится.
+
allow-end
+
Точка или запятая в конце строки будет вынесена, если нет лучшего варианта для выравнивания.
+
+ +

Формальный синтаксис

+ +
{{CSSSyntax}}
+ +

Пример

+ +

HTML

+ +
<p>“Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur dignissim nunc mauris, et sollicitudin est scelerisque sed. Praesent laoreet tortor massa, sit amet vulputate nulla pharetra ut.”</p>
+ +

CSS

+ +
p {
+  hanging-punctuation: first last;
+  margin: .5rem;
+}
+ +

Результат

+ +

{{EmbedLiveSample("Пример")}}

+ +

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

+ + + + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName("CSS3 Text", "#hanging-punctuation-property", "hanging-punctuation")}}{{Spec2("CSS3 Text")}}Initial definition
+ +

Браузерная совместимость

+ + + +

{{Compat("css.properties.hanging-punctuation")}}

-- cgit v1.2.3-54-g00ecf