Closed Bug 1268342 Opened 4 years ago Closed 4 years ago

"ruby-align: space-around" behaves like "start" if the ruby base has only one combined-text.

Categories

(Core :: Layout: Text and Fonts, defect)

49 Branch
defect
Not set

Tracking

()

RESOLVED FIXED
mozilla49
Tracking Status
firefox49 --- fixed

People

(Reporter: baba, Assigned: xidorn)

Details

Attachments

(6 files)

Attached file text-combine-ruby.html
User Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.87 Safari/537.36

Steps to reproduce:

Open attached HTML.

- <ruby> has a <rb> and a <rt>
- "text-combine-upright:all" is applied to <rb>
- <rt> contains a long text.


Actual results:

The combined text, the contents of <rb>, is aligned to top of the ruby container.


Expected results:

The combined text, the contents of <rb>, should be placed to vertical-center of the ruby container.
Attached image expected_result.png
Component: Untriaged → Layout: Text
Product: Firefox → Core
Assignee: nobody → bugzilla
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment on attachment 8757088 [details]
MozReview Request: Bug 1268342 part 1 - Remove useless constructor of PerFrameData. r?jfkthame

https://reviewboard.mozilla.org/r/55608/#review52712
Attachment #8757088 - Flags: review?(jfkthame) → review+
Attachment #8757089 - Flags: review?(jfkthame) → review+
Comment on attachment 8757089 [details]
MozReview Request: Bug 1268342 part 2 - Store writing mode of frame in PerFrameData. r?jfkthame

https://reviewboard.mozilla.org/r/55610/#review52714
Comment on attachment 8757090 [details]
MozReview Request: Bug 1268342 part 3 - Treat orthogonal text frame as non-text frame when applying justification gap. r?jfkthame

https://reviewboard.mozilla.org/r/55612/#review52716

::: layout/generic/nsTextFrame.cpp:3078
(Diff revision 1)
> -  // U+FFFC, which indicates it is justifiable on its sides, we don't
> -  // do that because it is difficult to implement, and doesn't make
> +  // do not insert justification opportunities on sides of that char,
> +  // sides of this frame is not justifiable either.

comment nit:
  s/on sides/on the sides/
  s/sides...is/the sides...are/
Attachment #8757090 - Flags: review?(jfkthame) → review+
Comment on attachment 8757091 [details]
MozReview Request: Bug 1268342 part 4 - Add reftest for ruby with text-combine-upright. r?jfkthame

https://reviewboard.mozilla.org/r/55614/#review52718
Attachment #8757091 - Flags: review?(jfkthame) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/d36ad40cf9910c695a20eff674aa18dc89d3b269
Bug 1268342 part 1 - Remove useless constructor of PerFrameData. r=jfkthame

https://hg.mozilla.org/integration/mozilla-inbound/rev/77af17d7575646053e3ffad7c2f8c19e675e866e
Bug 1268342 part 2 - Store writing mode of frame in PerFrameData. r=jfkthame

https://hg.mozilla.org/integration/mozilla-inbound/rev/7beb1565767200b49de2450912af5624ab7f4725
Bug 1268342 part 3 - Treat orthogonal text frame as non-text frame when applying justification gap. r=jfkthame

https://hg.mozilla.org/integration/mozilla-inbound/rev/0d7674be600defa53a0721874b75731d56c09fc7
Bug 1268342 part 4 - Add reftest for ruby with text-combine-upright. r=jfkthame
You need to log in before you can comment on or make changes to this bug.