Home >Web Front-end >CSS Tutorial >Here are a few possible titles that fit the content of your article and are for Q&A-type questions: * **Why don\'t gradient filters work on pseudo-elements in IE8?** * **How come gradient filters don\'t apply to pseudo-elements in IE8?** * **Can gradient filters be appl
Why doesn’t it work on pseudo elements in IE8?
This question is "Why doesn't it work on pseudo elements in IE8?". Here's the closest thing I can piece together to a definite answer. It comes from the information on this page.
The gradient filter is a "procedural surface" (together with alphaimageloader). Procedural surfaces are defined as follows:
Procedural surfaces are colored surfaces that are displayed between the object's content and the object's background.
Read carefully. This is essentially another "layer", you might say, between the content of the object and the background of that object. Do you see the answer to this question? What :before and :after create...yes! Content. Specifically as MSDN points out:
The ::before and ::after pseudo-elements specify the position of the context before and after the element in the document tree. The context attribute, along with these pseudo-elements, specifies the content to be inserted.
The generated context interacts with other boxes as if they were actual elements just inserted inside their related elements.
Now, if a Content is generated, then it is not the "object" containing the content, but the Content itself ( It happens to behave somewhat like an element object that may contain content).
Therefore, no object contains "content" (because it is content) and a filter can put a program between it ification surface that applies to content generated by pseudo-elements (i.e. "fake elements"). A gradient must be applied to the object and then a procedural surface placed between it and the content.
The above is the detailed content of Here are a few possible titles that fit the content of your article and are for Q&A-type questions: * **Why don\'t gradient filters work on pseudo-elements in IE8?** * **How come gradient filters don\'t apply to pseudo-elements in IE8?** * **Can gradient filters be appl. For more information, please follow other related articles on the PHP Chinese website!