DescriptionApply the correct style to first-letter pseudo elements composed of different renderers
Traverse (in preorder) the whole subtree under a render block with a first-letter selector when
looking for the text renderers which would need to get the apropriate style applied, instead of
only considering the first renderer only, which might not contain all the text that should be
considered as a "first letter" (leading and trailing punctuation should be included too).
The present patch also considers leading spaces, if any, as part of the first-letter element,
to match the behaviour of other renderers such as IE and Opera (Firefox does not do that).
R=eseidel@chromium.org, eae@chromium.org, leviw@chromium.org
BUG=354403
TEST=Add new test to check first-letter elements composed of different renderers.
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=172391
Patch Set 1 #
Total comments: 1
Messages
Total messages: 5 (0 generated)
|