[Webkit-unassigned] [Bug 196139] New: Unprefix -webkit-text-orientation

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 22 03:59:54 PDT 2019


https://bugs.webkit.org/show_bug.cgi?id=196139

            Bug ID: 196139
           Summary: Unprefix -webkit-text-orientation
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Keywords: BrowserCompat
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: rego at igalia.com
                CC: bfulgham at webkit.org, simon.fraser at apple.com,
                    zalan at apple.com

WebKit has "-webkit-text-oritation" propperty, but that's somehow outdated compared to the "text-orientation" property from css-writing-modes spec: https://drafts.csswg.org/css-writing-modes/#text-orientation
"text-orientation" is already supported in Chromium and Firefox.
It would be nice to unprefix it and align with the support in other browsers.

One example of usage is related to beaseline in vertical writing modes by default we should use the central baseline, and only use the alphabetic baseline if "text-orientation: sideways".

Right now in WebKit it uses the alphabetic baseline independtly of "text-orientation" porperty (as it's not supported yet).
So the in the following example, both cases look the same.

  <div style="writing-mode: vertical-lr;">
    before
    <div style="display: inline-block; font-size: 50px; width: 200px; background: lime;">baseline</div>
    after
  </div>
  <hr>
  <div style="writing-mode: vertical-lr; text-orientation: sideways;">
    before
    <div style="display: inline-block; font-size: 50px; width: 200px; background: lime;">baseline</div>
    after
  </div>

Even the default case is wrong as it should use the central baseline. This is part of bug #94410.

Regarding the baseline issue the spec text is very clear (https://drafts.csswg.org/css-writing-modes-4/#text-baselines):
"In vertical typographic mode, the central baseline is used as the dominant baseline when text-orientation is mixed or upright. Otherwise the alphabetic baseline is used."
However there are some discussion about what's the central baseline exactly as Chromium and Firefox behave different right now (see https://crbug.com/942734).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190322/9934e600/attachment.html>


More information about the webkit-unassigned mailing list