From 23699afc0f499afec29a718d166a00f92cf02d1a Mon Sep 17 00:00:00 2001 From: Dave Letorey Date: Wed, 9 Oct 2024 17:20:38 +0100 Subject: [PATCH 01/19] added syntax and value --- files/en-us/web/css/text-emphasis-position/index.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/files/en-us/web/css/text-emphasis-position/index.md b/files/en-us/web/css/text-emphasis-position/index.md index d7f6dbd9c21701f..40f121e690f358a 100644 --- a/files/en-us/web/css/text-emphasis-position/index.md +++ b/files/en-us/web/css/text-emphasis-position/index.md @@ -15,14 +15,16 @@ The **`text-emphasis-position`** [CSS](/en-US/docs/Web/CSS) property sets where ```css /* Initial value */ -text-emphasis-position: over right; +text-emphasis-position: auto; /* Keywords value */ +text-emphasis-position: over right; text-emphasis-position: over left; text-emphasis-position: under right; text-emphasis-position: under left; text-emphasis-position: left over; +text-emphasis-position: right over; text-emphasis-position: right under; text-emphasis-position: left under; @@ -36,6 +38,8 @@ text-emphasis-position: unset; ### Values +- `auto` + - : Draws marks over the text in horizontal writing mode and to the right of the text in vertical writing mode. - `over` - : Draws marks over the text in horizontal writing mode. - `under` From a1bd1fc80f108f8a4c767079970ad9c329ca8385 Mon Sep 17 00:00:00 2001 From: Dave Letorey Date: Mon, 14 Oct 2024 16:20:35 +0100 Subject: [PATCH 02/19] added a explanation of ruby and added an extra example --- .../web/css/text-emphasis-position/index.md | 81 ++++++++++++++++++- 1 file changed, 80 insertions(+), 1 deletion(-) diff --git a/files/en-us/web/css/text-emphasis-position/index.md b/files/en-us/web/css/text-emphasis-position/index.md index 40f121e690f358a..8b8f87a0114cbae 100644 --- a/files/en-us/web/css/text-emphasis-position/index.md +++ b/files/en-us/web/css/text-emphasis-position/index.md @@ -7,7 +7,7 @@ browser-compat: css.properties.text-emphasis-position {{CSSRef}} -The **`text-emphasis-position`** [CSS](/en-US/docs/Web/CSS) property sets where emphasis marks are drawn. Like ruby text, if there isn't enough room for emphasis marks, the line height is increased. +The **`text-emphasis-position`** [CSS](/en-US/docs/Web/CSS) property sets where emphasis marks are drawn. Like [ruby](/en-US/docs/Web/HTML/Element/ruby) text (not related to ruby language), if there isn't enough room for emphasis marks, the line height is increased. {{EmbedInteractiveExample("pages/css/text-emphasis-position.html")}} @@ -122,6 +122,85 @@ The preferred position of emphasis marks depends on the language. In Japanese fo ## Examples +### Emphasis mark positions + +The select field is used to change the class on the `
` and the class updates the position of the emphasis marks. + +```html hidden +