DescriptionIgnore ::first-letter from ancestors in grids and flexboxes
According to the grid and flexbox specs:
"the ::first-line and ::first-letter pseudo-elements do not apply to
grid/flex containers".
http://dev.w3.org/csswg/css-grid/#grid-containers
http://dev.w3.org/csswg/css-flexbox/#flex-containers
This was almost working right, except in the case that an ancestor was
setting the ::first-letter pseudo-element.
Modified RenderBlock::updateFirstLetter() in order to stop looking for
the first text child when you reach a grid or flexbox.
Added a few more cases to the current tests in order to check this
behavior.
TEST=css3/flexbox/flexbox-ignore-container-firstLetter.html
TEST=fast/css-grid-layout/grid-container-ignore-first-letter.html
BUG=430099
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=184858
Patch Set 1 #Patch Set 2 : New version fixing issues with ::before pseudo-element #
Total comments: 2
Patch Set 3 : Patch for landing #
Messages
Total messages: 8 (3 generated)
|