-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Test all punctiation and whitespace codepoints that should be included in ::first-letter #51361
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
base: master
Are you sure you want to change the base?
Conversation
0ea11e7
to
5ff9bcd
Compare
602baa9
to
d7eba4f
Compare
… punctuation and letter in ::first-letter range. r=dshin And allow multiple punctuation elements, with potential intervening whitespace, both before and after the letter. Tests to be added once web-platform-tests/wpt#51361 is merged. Differential Revision: https://phabricator.services.mozilla.com/D243674
Thanks for doing this. I notice that a bunch of the existing tests (in One thing to note: the spec allows for multiple punctuation codepoints before and/or after the "letter" itself, with potential intervening whitespace (but not word-separator spaces after the letter). It would be good to include a selection of tests for such longer sequences, which I don't think currently have any coverage. E.g. in something (extreme) like
my understanding is that everything up to and including the closing parenthesis would be part of ::first-letter. |
d7eba4f
to
2a4f932
Compare
…d in ::first-letter
2a4f932
to
49e1b5b
Compare
Good call. 🙏 |
… punctuation and letter in ::first-letter range. r=dshin And allow multiple punctuation elements, with potential intervening whitespace, both before and after the letter. Tests to be added once web-platform-tests/wpt#51361 is merged. Differential Revision: https://phabricator.services.mozilla.com/D243674 UltraBlame original commit: a59c7ce8c81e8949b92e606055ae7f58726eba5b
… punctuation and letter in ::first-letter range. r=dshin And allow multiple punctuation elements, with potential intervening whitespace, both before and after the letter. Tests to be added once web-platform-tests/wpt#51361 is merged. Differential Revision: https://phabricator.services.mozilla.com/D243674 UltraBlame original commit: a59c7ce8c81e8949b92e606055ae7f58726eba5b
… punctuation and letter in ::first-letter range. r=dshin And allow multiple punctuation elements, with potential intervening whitespace, both before and after the letter. Tests to be added once web-platform-tests/wpt#51361 is merged. Differential Revision: https://phabricator.services.mozilla.com/D243674 UltraBlame original commit: a59c7ce8c81e8949b92e606055ae7f58726eba5b
… punctuation and letter in ::first-letter range. r=dshin And allow multiple punctuation elements, with potential intervening whitespace, both before and after the letter. Tests to be added once web-platform-tests/wpt#51361 is merged. Differential Revision: https://phabricator.services.mozilla.com/D243674
… punctuation and letter in ::first-letter range. r=dshin And allow multiple punctuation elements, with potential intervening whitespace, both before and after the letter. Tests to be added once web-platform-tests/wpt#51361 is merged. Differential Revision: https://phabricator.services.mozilla.com/D243674
…ests that no longer pass. r=jwatt These tests are based on the CSS2 spec for ::first-letter, and no longer match the current CSS Pseudos spec. Once the new and more comprehensive collection of tests in web-platform-tests/wpt#51361 is merged, it would probably make sense to remove these as being obsolete, but for the time being I'm marking them as expected-fail. Differential Revision: https://phabricator.services.mozilla.com/D245359
… punctuation and letter in ::first-letter range. r=dshin And allow multiple punctuation elements, with potential intervening whitespace, both before and after the letter. Tests to be added once web-platform-tests/wpt#51361 is merged. Differential Revision: https://phabricator.services.mozilla.com/D243674
… punctuation and letter in ::first-letter range. r=dshin And allow multiple punctuation elements, with potential intervening whitespace, both before and after the letter. Tests to be added once web-platform-tests/wpt#51361 is merged. Differential Revision: https://phabricator.services.mozilla.com/D243674
…ests that no longer pass. r=jwatt These tests are based on the CSS2 spec for ::first-letter, and no longer match the current CSS Pseudos spec. Once the new and more comprehensive collection of tests in web-platform-tests/wpt#51361 is merged, it would probably make sense to remove these as being obsolete, but for the time being I'm marking them as expected-fail. Differential Revision: https://phabricator.services.mozilla.com/D245359
… punctuation and letter in ::first-letter range. r=dshin And allow multiple punctuation elements, with potential intervening whitespace, both before and after the letter. Tests to be added once web-platform-tests/wpt#51361 is merged. Differential Revision: https://phabricator.services.mozilla.com/D243674
…ests that no longer pass. r=jwatt These tests are based on the CSS2 spec for ::first-letter, and no longer match the current CSS Pseudos spec. Once the new and more comprehensive collection of tests in web-platform-tests/wpt#51361 is merged, it would probably make sense to remove these as being obsolete, but for the time being I'm marking them as expected-fail. Differential Revision: https://phabricator.services.mozilla.com/D245359
… punctuation and letter in ::first-letter range. r=dshin And allow multiple punctuation elements, with potential intervening whitespace, both before and after the letter. Tests to be added once web-platform-tests/wpt#51361 is merged. Differential Revision: https://phabricator.services.mozilla.com/D243674
…ests that no longer pass. r=jwatt These tests are based on the CSS2 spec for ::first-letter, and no longer match the current CSS Pseudos spec. Once the new and more comprehensive collection of tests in web-platform-tests/wpt#51361 is merged, it would probably make sense to remove these as being obsolete, but for the time being I'm marking them as expected-fail. Differential Revision: https://phabricator.services.mozilla.com/D245359
… punctuation and letter in ::first-letter range. r=dshin And allow multiple punctuation elements, with potential intervening whitespace, both before and after the letter. Tests to be added once web-platform-tests/wpt#51361 is merged. Differential Revision: https://phabricator.services.mozilla.com/D243674
This PR replaces the existing test by testing each punctuation and whitespace character that should be included in the
::first-letter
pseudo-element.