-
Notifications
You must be signed in to change notification settings - Fork 154
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
Update supported selectors in README #723
Comments
JakeQZ
added a commit
that referenced
this issue
Sep 29, 2019
Also added “broken: …” placeholder comments for tests that would currently fail due to lack of support, and updated the README to reflect the level of support for the universal selector. Part of #723.
oliverklee
pushed a commit
that referenced
this issue
Sep 29, 2019
Also added “broken: …” placeholder comments for tests that would currently fail due to lack of support, and updated the README to reflect the level of support for the universal selector. Part of #723.
JakeQZ
added a commit
that referenced
this issue
Sep 29, 2019
Added “broken: …” comments as placeholders for case-insensitive attribute selector tests that would currently fail due to lack of support. This indicates that the lack of support has been confirmed (e.g. with the Symfony CssSelector component). Part of #723.
oliverklee
pushed a commit
that referenced
this issue
Sep 29, 2019
Added “broken: …” comments as placeholders for case-insensitive attribute selector tests that would currently fail due to lack of support. This indicates that the lack of support has been confirmed (e.g. with the Symfony CssSelector component). Part of #723.
This was referenced Sep 29, 2019
JakeQZ
added a commit
that referenced
this issue
Sep 30, 2019
- Move pseudo-elements and dynamic pseudo-classes to separate list of ‘what is copied to a `<style>` element because it can’t be inlined’, removing no-longer-relevant “some of them will never be supported”; - Mention the pitfalls of the `…-of-type()` selectors in the ‘not implemented yet’ section; - Mention that any (static) pseudo-classes not claimed to be supported will have their rules preserved and copied to a `<style>` element. - Correct “@media queries” to “`@media` rules” and remove obsolete “now”; - Mention that declarations in `@media` rules may need `!important`, with example; - Add caveat note about pseudo-elements and dynamic pseudo-classes being treated similarly to `@media` rules, with the same possible need for `!important`; - Replace nonsensical observation about `<link>` elements with something more appropriate; - Remove superseded caveat about only supporting CSS 1 and a few CSS 2 selectors. Resolves #723. #747 and #748 have been opened to cover remaining issues.
JakeQZ
added a commit
that referenced
this issue
Sep 30, 2019
- Move pseudo-elements and dynamic pseudo-classes to separate list of ‘what is copied to a `<style>` element because it can’t be inlined’, removing no-longer-relevant “some of them will never be supported”; - Mention the pitfalls of the `…-of-type()` selectors in the ‘not implemented yet’ section; - Mention that any (static) pseudo-classes not claimed to be supported will have their rules preserved and copied to a `<style>` element. - Correct “@media queries” to “`@media` rules” and remove obsolete “now”; - Mention that declarations in `@media` rules may need `!important`, with example; - Add caveat note about pseudo-elements and dynamic pseudo-classes being treated similarly to `@media` rules, with the same possible need for `!important`; - Replace nonsensical observation about `<link>` elements with something more appropriate; - Remove superseded caveat about only supporting CSS 1 and a few CSS 2 selectors. Resolves #723. #747 and #748 have been opened to cover remaining issues.
JakeQZ
added a commit
that referenced
this issue
Sep 30, 2019
- Move pseudo-elements and dynamic pseudo-classes to separate list of ‘what is copied to a `<style>` element because it can’t be inlined’, removing no-longer-relevant “some of them will never be supported”; - Mention the pitfalls of the `…-of-type()` selectors in the ‘not implemented yet’ section; - Mention that any (static) pseudo-classes not claimed to be supported will have their rules preserved and copied to a `<style>` element. - Correct “@media queries” to “`@media` rules” and remove obsolete “now”; - Mention that declarations in `@media` rules may need `!important`, with example; - Add caveat note about pseudo-elements and dynamic pseudo-classes being treated similarly to `@media` rules, with the same possible need for `!important`; - Replace nonsensical observation about `<link>` elements with something more appropriate; - Remove superseded caveat about only supporting CSS 1 and a few CSS 2 selectors. Resolves #723. #747 and #748 have been opened to cover remaining issues.
oliverklee
pushed a commit
that referenced
this issue
Sep 30, 2019
- Move pseudo-elements and dynamic pseudo-classes to separate list of ‘what is copied to a `<style>` element because it can’t be inlined’, removing no-longer-relevant “some of them will never be supported”; - Mention the pitfalls of the `…-of-type()` selectors in the ‘not implemented yet’ section; - Mention that any (static) pseudo-classes not claimed to be supported will have their rules preserved and copied to a `<style>` element. - Correct “@media queries” to “`@media` rules” and remove obsolete “now”; - Mention that declarations in `@media` rules may need `!important`, with example; - Add caveat note about pseudo-elements and dynamic pseudo-classes being treated similarly to `@media` rules, with the same possible need for `!important`; - Replace nonsensical observation about `<link>` elements with something more appropriate; - Remove superseded caveat about only supporting CSS 1 and a few CSS 2 selectors. Resolves #723. #747 and #748 have been opened to cover remaining issues.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Under the heading “Supported CSS selectors” and also the last bullet point under “Caveats”.
Now that we use the Symfony CssSelector component, most selectors (except pseudo-elements and dynamic pseudo-classes) are supported. The only exception I'm aware of is
:nth-of-type
without a type (i.e., e.g.p:nth-of-type
works as expected but:nth-of-type
alone behaves as:nth-child
) – though:first-of-type
,:last-of-type
and:nth-last-of-type
are probably similarly not fully supported.It should probably also be noted that rules for impossible-to-inline selectors (pseudo-elements and dynamic pseudo-classes) will be copied to a
<style>
element so that they will work on email clients that support them.We may however need additional tests to confirm ‘case-insensitive attribute value’ and ‘general sibling’ are indeed now supported, before removing them from the ‘not supported’ list.
The text was updated successfully, but these errors were encountered: