-
Notifications
You must be signed in to change notification settings - Fork 642
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] semantics of 'none' #4188
Comments
This is to say that if you have span { text-decoration: underline; }
em { text-decoration: none; } The |
How would an author "punch a hole" as it were? |
You can't. That's why it says that |
I was hoping you weren't going to say that. This creates a possible interoperability problem with TTML which adopted the XSL-FO extensions to CSS2.1's |
If you happen to know the background colour is em {
text-decoration-color: white;
text-decoration-line: underline;
} I shudder to think what the impact is on any other coloured decorations that might be present (https://drafts.csswg.org/css-text-decor-3/#painting shows that any shadows will appear to have this white underline drawn on top of them, before the text is drawn on top) I see that this technique does not work unless the |
@skynavga I cannot speak about the TTML extensions, but CSS itself doesn't allow hole-punching in that particular way. However (and again, I don't know for sure if it would suit TTML), but hole-punching via different mechanisms is being considered: there is a mechanism in css-text-decor-4 to allow for a variety of things to be skipped. Note that this is not stable yet, and there are open issues on how this works. @nigelmegitt that's indeed pretty brittle, as the position (or thickness) of the underline can vary, and you may fail to hide it properly with something like that. |
@frivoal if I read that right, you can only skip For example, setting: em {
text-decoration: none;
display: inline-block;
} causes the underline to be omitted from the |
@nigelmegitt There was quite a bit of discussion around inhibiting line decorations in the past. Values like the ones you note were suggested for text-decoration, and values for text-decoration-skip were also suggested: https://www.w3.org/TR/2010/WD-css3-text-20101005/#text-decoration-skip I unfortunately don't quite remember what all the discussions were that led into these proposals, but they should be kicking around on the www-style archives... |
In any case, I don't think the spec is unclear about what the definition of Lmk if you disgree with that. |
In CSS Text Decoration Module Level 3 [1] the meaning of 'none' is given as:
What is the meaning of inhibits here and how is this different from produces? The text of CSS2.1 [2] merely says:
[1] https://drafts.csswg.org/css-text-decor-3/#text-decoration-line-property
[2] https://www.w3.org/TR/2011/REC-CSS2-20110607/text.html#decoration
The text was updated successfully, but these errors were encountered: