Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Issue 440233002: [CSS Grid Layout] Ignore ::first-letter pseudo-element (Closed)

Created:
6 years, 4 months ago by Manuel Rego
Modified:
6 years, 4 months ago
CC:
blink-reviews, blink-reviews-rendering, eae+blinkwatch, jchaffraix+rendering, jfernandez, leviw+renderwatch, pdr., Manuel Rego, rune+blink, svillar, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -33 lines) Patch
M LayoutTests/css3/flexbox/flexbox-ignore-container-firstLetter.html View 1 chunk +1 line, -1 line 0 comments Download
A + LayoutTests/fast/css-grid-layout/grid-container-ignore-first-letter.html View 1 2 3 1 chunk +12 lines, -12 lines 0 comments Download
A + LayoutTests/fast/css-grid-layout/grid-container-ignore-first-letter-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A + LayoutTests/fast/css-grid-layout/grid-item-first-letter-valid.html View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
A + LayoutTests/fast/css-grid-layout/grid-item-first-letter-valid-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderBlock.cpp View 1 2 3 4 chunks +15 lines, -16 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Manuel Rego
6 years, 4 months ago (2014-08-05 22:20:58 UTC) #1
Julien - ping for review
lgtm https://codereview.chromium.org/440233002/diff/1/Source/core/rendering/RenderBlock.cpp File Source/core/rendering/RenderBlock.cpp (right): https://codereview.chromium.org/440233002/diff/1/Source/core/rendering/RenderBlock.cpp#newcode4179 Source/core/rendering/RenderBlock.cpp:4179: } else if (currChild->isReplaced() || currChild->isRenderButton() || currChild->isMenuList() ...
6 years, 4 months ago (2014-08-07 20:55:57 UTC) #2
Manuel Rego
Thanks for the review. https://codereview.chromium.org/440233002/diff/1/Source/core/rendering/RenderBlock.cpp File Source/core/rendering/RenderBlock.cpp (right): https://codereview.chromium.org/440233002/diff/1/Source/core/rendering/RenderBlock.cpp#newcode4179 Source/core/rendering/RenderBlock.cpp:4179: } else if (currChild->isReplaced() || ...
6 years, 4 months ago (2014-08-07 22:19:47 UTC) #3
Manuel Rego
The CQ bit was checked by rego@igalia.com
6 years, 4 months ago (2014-08-07 22:19:53 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rego@igalia.com/440233002/20001
6 years, 4 months ago (2014-08-07 22:24:02 UTC) #5
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-07 23:24:18 UTC) #6
commit-bot: I haz the power
Failed to request the patch to try. Please note that binary files are still unsupported ...
6 years, 4 months ago (2014-08-07 23:24:20 UTC) #7
cbiesinger
https://codereview.chromium.org/440233002/diff/20001/Source/core/rendering/RenderBlock.cpp File Source/core/rendering/RenderBlock.cpp (right): https://codereview.chromium.org/440233002/diff/20001/Source/core/rendering/RenderBlock.cpp#newcode4178 Source/core/rendering/RenderBlock.cpp:4178: } else if (currChild->isReplaced() || currChild->isRenderButton() || currChild->isMenuList() || ...
6 years, 4 months ago (2014-08-08 03:28:12 UTC) #8
Manuel Rego
I've uploaded a new version, moving the check out of the while. Please @cbiesinger could ...
6 years, 4 months ago (2014-08-08 12:55:27 UTC) #9
cbiesinger
lgtm. Thanks!
6 years, 4 months ago (2014-08-12 01:18:15 UTC) #10
Manuel Rego
The CQ bit was checked by rego@igalia.com
6 years, 4 months ago (2014-08-12 07:17:14 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rego@igalia.com/440233002/60001
6 years, 4 months ago (2014-08-12 07:17:44 UTC) #12
commit-bot: I haz the power
6 years, 4 months ago (2014-08-12 08:23:45 UTC) #13
Message was sent while issue was closed.
Change committed as 180043

Powered by Google App Engine
This is Rietveld 408576698