New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 628323 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Jul 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug

Blocking:
issue 529938



Sign in to add a comment

Incorrect visual rects for flipped-block ruby text with html element 'writing-mode: vertical-rl'

Project Member Reported by wkorman@chromium.org, Jul 14 2016

Issue description

Attached test case reduced from:

fast/writing-mode/japanese-ruby-vertical-rl.html

Note cull rect vs visual rect difference for 'c':

{index: 2, client: "0x6d62e844010 InlineTextBox 'c'", type: "DrawingPaintPhaseForeground", rect: [776.000000,12.000000 16.000000x8.000000], cacheIsValid: true, visualRect: [742,12 16x8]},

Failure mode appears specific to having writing-mode on the html element. Issue does not occur if writing mode is on a containing div.
 
ruby.html
100 bytes View Download
The rects are actually wrong for writing-mode on a containing div as well, modified test attached.
ruby.html
89 bytes View Download
Brief update -- https://codereview.chromium.org/2150143002 was in flight but paused while chrishtr@ works on other revisions to how we handle flipping for LayoutInline, as fallout from investigating other tests.

See for example:

https://codereview.chromium.org/2154913002/
Copying from  crbug.com/616600  as they're specific to this:

These ruby tests are still failing at ToT with rtree patch:

fast/ruby/overhang-vertical.html
fast/ruby/overhang-vertical-no-overlap1.html
fast/ruby/overhang-vertical-no-overlap2.html
fast/writing-mode/japanese-ruby-vertical-rl.html

https://storage.googleapis.com/chromium-layout-test-archives/linux_blink_rel/88537/layout-test-results/results.html

fast/writing-mode/Kusa-Makura-background-canvas.html is also failing on Mac only for some reason, looks like similar Ruby issue:

https://storage.googleapis.com/chromium-layout-test-archives/mac_blink_rel/68061/layout-test-results/results.html
Update -- https://codereview.chromium.org/2166923004 patch set 1 fixes all issues (have not confirmed Mac test but expect it would work as well).

However, we are debating via patch set 2 and investigation whether there is an alternate cleaner approach that is still fully correct. Investigation continues.
Status: Fixed (was: Assigned)

Sign in to add a comment