Description[CSS Grid Layout] Ignore ::first-letter pseudo-element
According to the spec the ::first-line pseudo-element do not apply to
grid containers (neither to flexboxes).
Modified RenderBlock::findFirstLetterBlock() to use isRenderBlockFlow()
instead of isFlexibleBox(). This change has been already made before in
several parts of the code, but there was one missing case here.
Fix issue in RenderBlock::updateFirstLetter() that applies to both grids
and flexboxes. Basically if the grid's or flexbox's container was
defining the ::first-line pseudo-element and the grid or flexbox itself
too, the value from the grid or flexbox was being applied to the items.
Add the proper check to avoid this.
Added two new tests for grid and modified flexbox test to cover the
issue explained above.
TEST=css3/flexbox/flexbox-ignore-container-firstLetter.html
TEST=fast/css-grid-layout/grid-container-ignore-first-letter.html
TEST=fast/css-grid-layout/grid-item-first-letter-valid.html
BUG=395788
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=180043
Patch Set 1 #
Total comments: 2
Patch Set 2 : Patch for landing #
Total comments: 2
Patch Set 3 : New version #Patch Set 4 : Fix a typo in the comment #
Messages
Total messages: 13 (0 generated)
|