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

Issue 240423005: [CSS Shapes] Can't select content within the area of the floating box when clip-path is applied (Closed)

Created:
6 years, 8 months ago by rwlbuis
Modified:
6 years, 8 months ago
Reviewers:
krit
CC:
blink-reviews, bemjb+rendering_chromium.org, dsinclair, zoltan1, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, pdr., rune+blink
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

[CSS Shapes] Can't select content within the area of the floating box when clip-path is applied According to http://www.w3.org/TR/css-masking-1/, the clipped part of the element should not have pointer event dispatching. So add this logic to RenderBlock::nodeAtPoint. This fixes the bug as it disallows selection on any clipped parts. BUG=364153 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=172619

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add a test #

Total comments: 1

Patch Set 3 : Add a test for clip-path without shape-outside #

Patch Set 4 : Fix test on mac #

Patch Set 5 : Try to make test more stable #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -0 lines) Patch
A LayoutTests/fast/masking/clip-path-selection.html View 1 2 3 1 chunk +39 lines, -0 lines 0 comments Download
A LayoutTests/fast/masking/clip-path-selection-expected.txt View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
A LayoutTests/fast/shapes/shape-outside-floats/shape-outside-clip-path-selection.html View 1 2 3 4 1 chunk +49 lines, -0 lines 0 comments Download
A LayoutTests/fast/shapes/shape-outside-floats/shape-outside-clip-path-selection-expected.txt View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderBlock.cpp View 1 2 3 4 1 chunk +15 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
krit
https://codereview.chromium.org/240423005/diff/1/Source/core/rendering/RenderBlock.cpp File Source/core/rendering/RenderBlock.cpp (right): https://codereview.chromium.org/240423005/diff/1/Source/core/rendering/RenderBlock.cpp#newcode2769 Source/core/rendering/RenderBlock.cpp:2769: // FIXME: handle REFERENCE I would do a switch ...
6 years, 8 months ago (2014-04-16 18:51:07 UTC) #1
krit
https://codereview.chromium.org/240423005/diff/20001/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-clip-path-selection.html File LayoutTests/fast/shapes/shape-outside-floats/shape-outside-clip-path-selection.html (right): https://codereview.chromium.org/240423005/diff/20001/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-clip-path-selection.html#newcode40 LayoutTests/fast/shapes/shape-outside-floats/shape-outside-clip-path-selection.html:40: shouldBe('window.getSelection().toString()', '"other"'); Can you do a positive check as ...
6 years, 8 months ago (2014-04-16 20:08:19 UTC) #2
rwlbuis
On 2014/04/16 20:08:19, krit wrote: > https://codereview.chromium.org/240423005/diff/20001/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-clip-path-selection.html > File > LayoutTests/fast/shapes/shape-outside-floats/shape-outside-clip-path-selection.html > (right): > > ...
6 years, 8 months ago (2014-04-18 18:18:39 UTC) #3
krit
On 2014/04/18 18:18:39, rwlbuis wrote: > On 2014/04/16 20:08:19, krit wrote: > > > https://codereview.chromium.org/240423005/diff/20001/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-clip-path-selection.html ...
6 years, 8 months ago (2014-04-22 13:04:06 UTC) #4
rwlbuis
On 2014/04/22 13:04:06, krit wrote: > > I still don't see any changes on how ...
6 years, 8 months ago (2014-04-22 20:30:48 UTC) #5
krit
On 2014/04/22 20:30:48, rwlbuis wrote: > On 2014/04/22 13:04:06, krit wrote: > > > > ...
6 years, 8 months ago (2014-04-25 05:25:16 UTC) #6
rwlbuis
The CQ bit was checked by rob.buis@samsung.com
6 years, 8 months ago (2014-04-25 10:44:32 UTC) #7
rwlbuis
The CQ bit was unchecked by rob.buis@samsung.com
6 years, 8 months ago (2014-04-25 10:44:33 UTC) #8
rwlbuis
The CQ bit was checked by rob.buis@samsung.com
6 years, 8 months ago (2014-04-25 10:44:38 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rob.buis@samsung.com/240423005/60001
6 years, 8 months ago (2014-04-25 10:44:54 UTC) #10
commit-bot: I haz the power
6 years, 8 months ago (2014-04-25 12:39:54 UTC) #11
Message was sent while issue was closed.
Change committed as 172619

Powered by Google App Engine
This is Rietveld 408576698