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

Issue 2328623003: Fix incorrectly positioned block element inside list-style-position:inside item (Closed)

Created:
4 years, 3 months ago by Gleb Lanbin
Modified:
4 years, 3 months ago
Reviewers:
eae, aboxhall
CC:
chromium-reviews, szager+layoutwatch_chromium.org, zoltan1, blink-reviews-layout_chromium.org, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, blink-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix incorrectly positioned block element inside list-style-position:inside item This fixes the interop issue with incorrectly positioned block element inside of LayoutListItem(list-style-position: inline). CSS WG discussion: http://lists.w3.org/Archives/Public/www-style/2015Mar/0163.html Details: list-style-position:inside makes the ::marker pseudo an ordinary position:static element that needs to be wrapped in an anonymous block before the block element. This patch changes the current behaviour where we try to position the marker as the first inline child of the block. Accessibility changes: this patch changes src/content/test/data/accessibility/aria/aria-owns.html accessibility test. See the link below for screenshots https://bugs.chromium.org/p/chromium/issues/detail?id=468092#c9 BUG=468092 TEST=third_party/WebKit/LayoutTests/css2.1/20110323/list-style-position-005.htm Committed: https://crrev.com/36d85fd5ae96048efcef076a209655ddf2bd02fe Cr-Commit-Position: refs/heads/master@{#417688}

Patch Set 1 #

Patch Set 2 : fix test expectations #

Total comments: 2

Patch Set 3 : move getParentOfFirstLineBox back #

Patch Set 4 : update aria-owns-expected-mac.txt #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -2 lines) Patch
M content/test/data/accessibility/aria/aria-owns-expected-mac.txt View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/TestExpectations View 1 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/css2.1/20110323/list-style-position-005.htm View 1 chunk +32 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/pasteboard/drag-drop-list-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutListItem.cpp View 1 2 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 35 (22 generated)
Gleb Lanbin
4 years, 3 months ago (2016-09-09 05:50:13 UTC) #7
eae
LGTM w/nit https://codereview.chromium.org/2328623003/diff/20001/third_party/WebKit/Source/core/layout/LayoutListItem.cpp File third_party/WebKit/Source/core/layout/LayoutListItem.cpp (right): https://codereview.chromium.org/2328623003/diff/20001/third_party/WebKit/Source/core/layout/LayoutListItem.cpp#newcode36 third_party/WebKit/Source/core/layout/LayoutListItem.cpp:36: LayoutObject* getParentOfFirstLineBox(LayoutBlockFlow* curr, LayoutListMarker* marker) Why not ...
4 years, 3 months ago (2016-09-09 08:55:56 UTC) #12
Gleb Lanbin
https://codereview.chromium.org/2328623003/diff/20001/third_party/WebKit/Source/core/layout/LayoutListItem.cpp File third_party/WebKit/Source/core/layout/LayoutListItem.cpp (right): https://codereview.chromium.org/2328623003/diff/20001/third_party/WebKit/Source/core/layout/LayoutListItem.cpp#newcode36 third_party/WebKit/Source/core/layout/LayoutListItem.cpp:36: LayoutObject* getParentOfFirstLineBox(LayoutBlockFlow* curr, LayoutListMarker* marker) On 2016/09/09 08:55:56, eae ...
4 years, 3 months ago (2016-09-09 16:06:53 UTC) #13
eae
On 2016/09/09 16:06:53, glebl wrote: > https://codereview.chromium.org/2328623003/diff/20001/third_party/WebKit/Source/core/layout/LayoutListItem.cpp > File third_party/WebKit/Source/core/layout/LayoutListItem.cpp (right): > > https://codereview.chromium.org/2328623003/diff/20001/third_party/WebKit/Source/core/layout/LayoutListItem.cpp#newcode36 > ...
4 years, 3 months ago (2016-09-09 16:18:40 UTC) #14
Gleb Lanbin
On 2016/09/09 16:18:40, eae wrote: > On 2016/09/09 16:06:53, glebl wrote: > > > https://codereview.chromium.org/2328623003/diff/20001/third_party/WebKit/Source/core/layout/LayoutListItem.cpp ...
4 years, 3 months ago (2016-09-09 16:24:23 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2328623003/40001
4 years, 3 months ago (2016-09-09 16:31:41 UTC) #18
eae
Thanks (you can still keep it in a separate namespace, I just prefer the function ...
4 years, 3 months ago (2016-09-09 16:32:19 UTC) #19
Gleb Lanbin
Alice, can you please take a look if you OK with the change from the ...
4 years, 3 months ago (2016-09-09 16:37:56 UTC) #22
Gleb Lanbin
On 2016/09/09 16:32:19, eae wrote: > Thanks (you can still keep it in a separate ...
4 years, 3 months ago (2016-09-09 16:48:27 UTC) #23
aboxhall
lgtm I'm happy with this a11y-wise - it's weird, but it looks weird too, so ...
4 years, 3 months ago (2016-09-09 20:10:24 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2328623003/60001
4 years, 3 months ago (2016-09-09 20:12:28 UTC) #31
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-09-09 20:17:47 UTC) #33
commit-bot: I haz the power
4 years, 3 months ago (2016-09-09 20:20:42 UTC) #35
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/36d85fd5ae96048efcef076a209655ddf2bd02fe
Cr-Commit-Position: refs/heads/master@{#417688}

Powered by Google App Engine
This is Rietveld 408576698