Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-text-decor] Characters to skip for emphasis marks (text-emphasis) #839

fantasai opened this issue Dec 27, 2016 · 9 comments


None yet
6 participants
Copy link

commented Dec 27, 2016

Opening a placeholder issue to continue any discussion from and

presumably these marks should not be displayed for combining characters either?

Actually there was a related discussion raised recently in HTML5 Chinese IG as well. That discussion is about whether emphasis marks should also be skipped for punctuations. JLReq explicitly says emphasis marks are not used for several punctuations (see 3.3.9 note 2), but the spec doesn't have anything around this.

It was considered [1], but IIRC JLTF wanted us to include all punctuation and make the author do the skipping because "what if the author wants to emphasize that punctuation mark for some reason". Imho this is an uncomfortable default for the Web because it means most publications need to do a lot of markup mangling to get this to work right... but we ended up deferring to that opinion. Maybe Koji remembers more, I can't seem to find records of the discussion.

See for what was our last set of thoughts on the issue.

I'm happy to re-open the discussion if there's more input to consider.

For background, see and view-source:


This comment has been minimized.

Copy link
Collaborator Author

commented Feb 8, 2018

Discussed with i18n, conclusion is that skipping punctuation by default would be better. Question to CSSWG: can we make that happen.


This comment has been minimized.

Copy link

commented Feb 9, 2018

(on behalf of I18N WG)

As @fantasai mentions, we discussed this yesterday in teleconference. I drew an action to respond to this issue.

According to JLREQ (and other information that we have gathered, such as information about Chinese and Korean), the normal behavior for emphasis marks would be to skip punctuation marks. Ideally, the default mode for emphasis marks would correspond to their normal usage.

@fantasai reports that text-decoration Level 4 is expected to include tailoring for emphasis marks to add (or remove) emphasis from punctuation.

She also reports that you discussed this with JLTF and they requested the current behavior (not skipping punctuation) because "what if you wanted to emphasize those characters for some reason". That is a rational point of view, but means that, to get the normally expected behavior, one must modify the markup and/or styling and it's a little inconvenient (imagine having to put closing and opening em tags around a comma in the middle of a sentence).

The members present in the call felt that skipping the punctuation would be better, since it gives casual users the expected behavior, provided that exceptional behavior is provided for in Level 4 fairly soon.

If the current behavior were kept, then Level 4 should add the punctuation skipping override fairly soon and the default stylesheet should adopt that. Either approach is equivalent, but it would be better, in our opinion, to adopt the "normal" styling now.


This comment has been minimized.

Copy link

commented Mar 8, 2018

The Working Group just discussed [css-text-decor] Characters to skip for emphasis marks (text-emphasis), and agreed to the following resolutions:

  • RESOLVED: change the default behavior for emphasis marks in the current level of text decoration spec
The full IRC log of that discussion <dael> Topic: [css-text-decor] Characters to skip for emphasis marks (text-emphasis)
<dael> github:
<dael> fantasai: This is about emphasis marks that are the dots put over the character. In general they're not on top of punctuation or spaces, jsut characters. When we drafted the css3 text for this koji and I asked what characters to skip. At that time Japanese task force said usually skip punctuation but they might want to so you should put markup to skip.
<dael> fantasai: That seemed to be their position and that's what we spec and then in L4 we added a property to control on punctuation or not etc.
<dael> fantasai: We got a comment from someone as to why the dots are on the punct. That re-opened the topic. i18n said we should do the right thing by default and a control to allow other things.
<dael> fantasai: Does the group want us to change the behavior to only put emphasis on not-punctuation? Or keep the current behavior?
<Chris> it sounds like the right thing to do, and I guess unicode character classes help there
<dael> florian: If there's no compat contraints doing the right thing for default is better
<dael> many: I agree
<dael> Chris: Unicode character classes should make this fairly tractable
<fantasai> ^fantasai: Not skipping punctuation by default means authors have to do weird things with markup to get the right effect
<dael> florian: Some punct and symbols might be mixed up but mostly yes.
<dael> myles: Do you have specific text as to how to tell where they shoudl and should not go?
<dael> fantasai: Looking at the reference.
<dael> fantasai: It's here^
<dael> fantasai: Basically we'd propose to change th initial value to spaces and punctuation.
<dael> astearns: And change the default behavior to be that setting.
<dael> astearns: Is text-emphasis-skip impl?
<dael> fantasai: No but if you don't impl you have to do the initial value. So we prt the behavior to L3
<dael> myles: Is there a reason this should inheret spec from text emstyle?
<dael> fantasai: Yes because you don't want to reset what should skip.
<dael> myles: Isn't skipping document wide?
<dael> fantasai: Did I mix it up?
<dael> myles: No, no, you're right.
<dael> fantasai: Kinda similar to why text underline position doesn't get reset by text decoration
<dael> myles: right. okay
<dael> astearns: Given we have at least one complaint about current behavior and i18n okay to change it seems reasonable to me to move i t into the current level of the spec.
<dael> astearns: Objections to changing the default behavrio for emphasis marks in the current level o f text decoration spec?
<dael> RESOLVED: change the default behavior for emphasis marks in the current level of text decoration spec
<dael> fantasai: I'll edit that in and we can cycle backto republish next week.

This comment has been minimized.

Copy link

commented Mar 8, 2018

The initial value of text-emphasis-skip needs adjusting too.


This comment has been minimized.

Copy link
Collaborator Author

commented Mar 9, 2018

Yes, you are right. Updated L4 spec as well.


This comment has been minimized.

Copy link

commented Mar 12, 2018

I just submitted a PR to update the L4 spec: #2433

(Personally I would like to reduce the duplication of the same information in the description of two different properties in the future.)


This comment has been minimized.

Copy link
Collaborator Author

commented May 21, 2018

OK, I think this is settled now. r=@frivoal with high-level advice from Kobayashi-sensei
Agenda+ to confirm closing this issue.

@fantasai fantasai added the Agenda+ label May 21, 2018


This comment has been minimized.

Copy link

commented May 21, 2018

@fantasai and I have been through Kobayashi-sensei's essay on this topic, so I think we're covered, but for archival purposes, here's the original:






圏点は,漢文(かんぶん,kanbun composition,JLReqの定義に説明あり)から始まったようで,漢文には,そもそも句読点がなかったということもあり,句読点などに圏点を付ける必要がなかった.












@xfq xfq added the i18n-clreq label May 21, 2018


This comment has been minimized.

Copy link

commented May 23, 2018

The Working Group just discussed Characters to skip for emphasis marks (text-emphasis), and agreed to the following:

  • RESOLVED: Accept the proposed changes and follow up with unicode
The full IRC log of that discussion <dael> Topic:Characters to skip for emphasis marks (text-emphasis)
<dael> github:
<dael> fantasai: We discussed and resolved to skip punct for em marks because that's default expected. There was discussion with i18n. I checked in edits to impl that decision
<dael> fantasai: We skip characters in punct from unicode with a handful of exceptions
<dael> fantasai: I asked florian to talk to typographers in Japanese community. florian recommended adding another character.
<dael> fantasai: Definition is straight forward. There's symbols in unicode punct so we're effectively re-categorizing. Things like @ aren't really punct
<dael> fantasai: Definition at end of ^
<dael> fantasai: That's where we're at
<tantek> q+
<florian> q+
<dael> tantek: If we're going to diverge from unicode can we at least file a bug against unicode to say we think you made a mistake and we're patching it in CSS. to give them strong feedback. Elsewise seems bad to diverge
<dael> chris: Agree
<liam> +1
<dael> tantek: I'm not saying it's wrong, I'm saying push to disagreement upstream.
<dael> fantasai: Happy to explain, but because I think unicode general category is required to be stable I don't think unicode will be able to fix.
<dael> tantek: Let's not assume failure. Let's try.
<dael> Rossen: Okay. It's a valid point. Let's give them the feedback. Thanks tantek
<dbaron> Unicode has split categories in the past
<liam> [the feedback may help Unicode in future too]
<Rossen> ack tantek
<Rossen> ack florian
<dael> florian: I'm in favor of this. As fantasai mentioned I reviewed. I reviewed and discussed details with Japanese people and according to them it's very subjective. The conclusions fantasai came to are in line witht he rational they gave.
<dael> Rossen: Great. Any other opinions?
<dael> Rossen: Objections to accepting?
<dael> RESOLVED: Accept the proposed changes and follow up with unicode

@fantasai fantasai closed this May 29, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.