Is text overflow: ellipsis valid CSS?

This code causes an error when starting the W3C CSS Validator :

p{ text-overflow: ellipsis; } 

I get:

  Line Code context Error / Warning
 2 p Parse Error [empty string]

Is this just a mistake in the validator, or am I missing something really obvious?

+7
source share
2 answers

This is a bug in the CSS validator , it has already been reported. text-overflow:ellipsis is a valid rule, but the W3C CSS validator is unfortunately error-prone (see the list of errors ).

However, note that the current working draft lists some text-overflow values ​​as a function of risk :

The working group identified the following functions that run the risk of being removed from the core level 3 CSS user interface module when exiting CR. Developers are strongly encouraged to implement these features if they want to see these features in this specification. All other functions are either defined in the normative reference (for example, CSS 2.1 [CSS21] or Selectors [SELECT]), or are supposed to have two or more implementations and thus will not be deleted without returning to the last call.

  • [...]
  • text-overflow Property Value: <string>
  • text-overflow property 2-value syntax and definition.

As long as this does not affect the ellipsis value, it can be a source of error in the validator:

Analysis error [empty line]

References

+10
source

It is valid based on the MDN link , which also refers to the specification: http://dev.w3.org/csswg/css3-ui/#text-overflow

Out of curiosity, I launched one of my sites through a validator. I noted that it lists some things that I would not consider, for example, correctly prefix extensions of providers and data URIs.

+2
source

All Articles