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

Issue 306923003: Use webkit-margin-end for details element to get same margin for both ltr and rtl (Closed)

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

Description

Use webkit-margin-end for details element to get same margin for both ltr and rtl RenderDetailMarker needs both left and right margin to get rendered with same margin. Updated with webkit-margin-end to get the same margin result for both ltr and rtl R=eseidel, leviw, tkent BUG=335075 TEST=Existing details-writing-mode covers test for showing text in RTL box, with the patch rtl box now shows margin which is currently missing. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176016

Patch Set 1 #

Total comments: 3

Patch Set 2 : RenderDetailsMarker marker box to include margin right and left #

Total comments: 1

Patch Set 3 : Replaced margin-right with webkit-margin-end and removed horizontal check in RenderDetailsMarker #

Patch Set 4 : Added test in TextExpectation and RenderDetailsMarker to include marginStart for placing a marker b… #

Patch Set 5 : Removed changes from RenderDetailsMarker #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -1 line) Patch
M LayoutTests/TestExpectations View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/css/html.css View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 26 (0 generated)
eseidel
This sounds very reasonable. I presume the new behavior matches other browsers?
6 years, 6 months ago (2014-05-30 00:32:25 UTC) #1
eseidel
https://codereview.chromium.org/306923003/diff/1/Source/core/rendering/InlineFlowBox.cpp File Source/core/rendering/InlineFlowBox.cpp (right): https://codereview.chromium.org/306923003/diff/1/Source/core/rendering/InlineFlowBox.cpp#newcode426 Source/core/rendering/InlineFlowBox.cpp:426: if (isDetailsMarker) I don't understand why details markers are ...
6 years, 6 months ago (2014-05-30 00:33:24 UTC) #2
Habib Virji
Thanks Eric for having a look. Cannot compare with other browsers because FF and IE ...
6 years, 6 months ago (2014-05-30 11:40:50 UTC) #3
Habib Virji
https://codereview.chromium.org/306923003/diff/1/Source/core/rendering/InlineFlowBox.cpp File Source/core/rendering/InlineFlowBox.cpp (right): https://codereview.chromium.org/306923003/diff/1/Source/core/rendering/InlineFlowBox.cpp#newcode426 Source/core/rendering/InlineFlowBox.cpp:426: if (isDetailsMarker) @eseidel: RenderListItem::updateMarkerLocation (https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit/Source/core/rendering/RenderListItem.cpp&sq=package:chromium&l=272&type=cs) already calculates offset hence ...
6 years, 6 months ago (2014-06-03 14:23:46 UTC) #4
Habib Virji
@leviw any comment on my previous comment. Thanks
6 years, 6 months ago (2014-06-05 21:55:18 UTC) #5
leviw_travelin_and_unemployed
https://codereview.chromium.org/306923003/diff/1/Source/core/rendering/InlineFlowBox.cpp File Source/core/rendering/InlineFlowBox.cpp (right): https://codereview.chromium.org/306923003/diff/1/Source/core/rendering/InlineFlowBox.cpp#newcode426 Source/core/rendering/InlineFlowBox.cpp:426: if (isDetailsMarker) I'd either expect the list and details ...
6 years, 6 months ago (2014-06-05 22:25:43 UTC) #6
Habib Virji
On 2014/06/05 22:25:43, leviw wrote: > https://codereview.chromium.org/306923003/diff/1/Source/core/rendering/InlineFlowBox.cpp > File Source/core/rendering/InlineFlowBox.cpp (right): > > https://codereview.chromium.org/306923003/diff/1/Source/core/rendering/InlineFlowBox.cpp#newcode426 > ...
6 years, 6 months ago (2014-06-10 16:15:32 UTC) #7
Habib Virji
On 2014/06/05 22:25:43, leviw wrote: > https://codereview.chromium.org/306923003/diff/1/Source/core/rendering/InlineFlowBox.cpp > File Source/core/rendering/InlineFlowBox.cpp (right): > > https://codereview.chromium.org/306923003/diff/1/Source/core/rendering/InlineFlowBox.cpp#newcode426 > ...
6 years, 6 months ago (2014-06-10 16:15:33 UTC) #8
leviw_travelin_and_unemployed
On 2014/06/10 at 16:15:33, habib.virji wrote: > On 2014/06/05 22:25:43, leviw wrote: > > https://codereview.chromium.org/306923003/diff/1/Source/core/rendering/InlineFlowBox.cpp ...
6 years, 6 months ago (2014-06-10 19:06:31 UTC) #9
leviw_travelin_and_unemployed
https://codereview.chromium.org/306923003/diff/40001/Source/core/rendering/RenderDetailsMarker.cpp File Source/core/rendering/RenderDetailsMarker.cpp (right): https://codereview.chromium.org/306923003/diff/40001/Source/core/rendering/RenderDetailsMarker.cpp#newcode138 Source/core/rendering/RenderDetailsMarker.cpp:138: boxOrigin.move(borderLeft() + paddingLeft(), borderTop() + paddingTop()); This seems wrong. ...
6 years, 6 months ago (2014-06-10 19:06:58 UTC) #10
Habib Virji
On 2014/06/10 19:06:31, leviw wrote: > On 2014/06/10 at 16:15:33, habib.virji wrote: > > On ...
6 years, 6 months ago (2014-06-10 19:21:55 UTC) #11
Habib Virji
On 2014/06/10 19:06:58, leviw wrote: > https://codereview.chromium.org/306923003/diff/40001/Source/core/rendering/RenderDetailsMarker.cpp > File Source/core/rendering/RenderDetailsMarker.cpp (right): > > https://codereview.chromium.org/306923003/diff/40001/Source/core/rendering/RenderDetailsMarker.cpp#newcode138 > ...
6 years, 6 months ago (2014-06-10 19:28:23 UTC) #12
tkent
Can we just replace margin-right with -webkit-margin-end in the UA stylesheet of summary::-webkit-details-marker?
6 years, 6 months ago (2014-06-10 23:08:43 UTC) #13
Habib Virji
On 2014/06/10 23:08:43, tkent wrote: > Can we just replace margin-right with -webkit-margin-end in the ...
6 years, 6 months ago (2014-06-11 08:05:51 UTC) #14
tkent
Would you show the test result image with the html.css change without the RenderDetailsMarker.cpp change ...
6 years, 6 months ago (2014-06-11 08:36:01 UTC) #15
Habib Virji
On 2014/06/11 08:36:01, tkent wrote: > Would you show the test result image with the ...
6 years, 6 months ago (2014-06-11 08:52:07 UTC) #16
tkent
On 2014/06/11 08:52:07, Habib Virji wrote: > @tkent: I have upload images at crbug.com/335075 and ...
6 years, 6 months ago (2014-06-11 09:11:37 UTC) #17
Habib Virji
On 2014/06/11 09:11:37, tkent wrote: > On 2014/06/11 08:52:07, Habib Virji wrote: > > @tkent: ...
6 years, 6 months ago (2014-06-11 16:26:27 UTC) #18
tkent
On 2014/06/11 16:26:27, Habib Virji wrote: > Thanks, did try debugging further. > - It ...
6 years, 6 months ago (2014-06-12 00:42:32 UTC) #19
ebraminio
Isn't the table issue related to https://code.google.com/p/chromium/issues/detail?id=76858 ? Just a guess
6 years, 6 months ago (2014-06-12 07:03:06 UTC) #20
Habib Virji
On 2014/06/12 00:42:32, tkent wrote: > On 2014/06/11 16:26:27, Habib Virji wrote: > > Thanks, ...
6 years, 6 months ago (2014-06-12 08:20:08 UTC) #21
Habib Virji
On 2014/06/12 07:03:06, ebraminio wrote: > Isn't the table issue related to > https://code.google.com/p/chromium/issues/detail?id=76858 ? ...
6 years, 6 months ago (2014-06-12 08:21:00 UTC) #22
tkent
lgtm
6 years, 6 months ago (2014-06-12 08:30:40 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/habib.virji@samsung.com/306923003/100001
6 years, 6 months ago (2014-06-12 08:31:40 UTC) #24
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 6 months ago (2014-06-12 09:43:45 UTC) #25
commit-bot: I haz the power
6 years, 6 months ago (2014-06-12 10:52:59 UTC) #26
Message was sent while issue was closed.
Change committed as 176016

Powered by Google App Engine
This is Rietveld 408576698