CSS isn't, insofar as I know, Turing complete. But my knowledge of CSS is very limited.
- Is CSS Turing complete?
- Are any of the existing draft or committees considering language features that might enable Turing completeness if it isn't right now?
CSS isn't, insofar as I know, Turing complete. But my knowledge of CSS is very limited.
As per this article, it's not. The article also argues that it's not a good idea to make it one.
To quote from one of the comments:
So, I do not believe that CSS is turing complete. There is no capability to define a function in CSS. In order for a system to be turing-complete it has to be possible to write an interpreter: a function that interprets expressions that denote programs to execute. CSS has no variables that are directly accessible to the user; so you cannot even model the structure that represents the program to be interpreted in CSS.
CSS is not a programming language, so the question of turing-completeness is a meaningless one. If programming extensions are added to CSS such as was the case in IE6 then that new synthesis is a whole different thing.
CSS is merely a description of styles; it does not have any logic, and its structure is flat.
CSS doesn't have conditionals or branching (lacks the if statement), so it can't be a Turing-complete language.
CSS is just a presentation extension to HTML and markup languages can't be Turing-complete.