rspec/rules/S4660/css/rule.adoc

22 lines
369 B
Plaintext
Raw Normal View History

2021-04-28 16:49:39 +02:00
The W3C specifications define the valid pseudo-element selectors. Only the official and browser-specific pseudo-element selectors should be used to get the expected impact in the final rendering.
2021-04-28 16:49:39 +02:00
== Noncompliant Code Example
----
a::beforre { /* Noncompliant; there is a typo on the word "before" */
...
}
----
2021-04-28 16:49:39 +02:00
== Compliant Solution
----
a::before {
...
}
----