-
Notifications
You must be signed in to change notification settings - Fork 1.5k
::first-letter should include preceding punctuation and space separators #42507
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: main
Are you sure you want to change the base?
Conversation
EWS run on previous version of this PR (hash 2bceb0e) |
2bceb0e
to
1f36172
Compare
EWS run on previous version of this PR (hash 1f36172) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not all space characters are allowed -- we still have to exclude U+3000 IDEOGRAPHIC SPACE, but also allow the rest of of Zs!
1f36172
to
6a8ffe7
Compare
EWS run on previous version of this PR (hash 6a8ffe7) |
6a8ffe7
to
f637b31
Compare
EWS run on previous version of this PR (hash f637b31) |
f637b31
to
56eacd3
Compare
EWS run on previous version of this PR (hash 56eacd3) |
https://bugs.webkit.org/show_bug.cgi?id=179815 Reviewed by NOBODY (OOPS!). Updating the punctuation and whitespace characters that are included preceding and following the first-letter according to https://www.w3.org/TR/css-pseudo-4/#first-letter-pattern. This change makes first-letter-punctuation-and-space.html pass. * LayoutTests/TestExpectations: * Source/WebCore/rendering/updating/RenderTreeBuilderFirstLetter.cpp: (WebCore::isPrecedingPunctuationForFirstLetter): (WebCore::isFollowingPunctuationForFirstLetter): (WebCore::shouldSkipForFirstLetter): (WebCore::RenderTreeBuilder::FirstLetter::createRenderers): (WebCore::isPunctuationForFirstLetter): Deleted.
56eacd3
to
5d194cf
Compare
EWS run on current version of this PR (hash 5d194cf) |
I tried to avoid changing the whitespace logic too much, but we might just update it now 😅 I have pushed an update to the PR to align with the updated First Letters and Associated Punctuation chapter in the spec. It should pass the updated web platform test (yet to be reviewed). |
I realize that we also have to consume the white-space before the preceding punctuation. Otherwise <p>
The initial T-character should ble included in `::first-letter`.
</p> @fantasai , I expect the preceding white-spaces also should be included in the Which letters should be allowed to precede the punctuation? Does this need to be specced? |
2bceb0e
5d194cf
🛠 playstation