Changeset 213763 in webkit


Ignore:
Timestamp:
Mar 11, 2017 5:07:32 PM (7 years ago)
Author:
Matt Baker
Message:

Web Inspector: RTL: fix broken font content view
https://bugs.webkit.org/show_bug.cgi?id=169513

Reviewed by Brian Burg.

Add RTL support to the Font content view.

  • UserInterface/Views/FontResourceContentView.css:

(.content-view.resource.font .preview > .line > .metric):
(body[dir=ltr] .content-view.resource.font .preview > .line > .metric):
(body[dir=rtl] .content-view.resource.font .preview > .line > .metric):
Compensate for the flipped z-order of the content and metric elements in
RTL by pushing metrics below the content.

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r213744 r213763  
     12017-03-11  Matt Baker  <mattbaker@apple.com>
     2
     3        Web Inspector: RTL: fix broken font content view
     4        https://bugs.webkit.org/show_bug.cgi?id=169513
     5
     6        Reviewed by Brian Burg.
     7
     8        Add RTL support to the Font content view.
     9
     10        * UserInterface/Views/FontResourceContentView.css:
     11        (.content-view.resource.font .preview > .line > .metric):
     12        (body[dir=ltr] .content-view.resource.font .preview > .line > .metric):
     13        (body[dir=rtl] .content-view.resource.font .preview > .line > .metric):
     14        Compensate for the flipped z-order of the content and metric elements in
     15        RTL by pushing metrics below the content.
     16
    1172017-03-10  Matt Baker  <mattbaker@apple.com>
    218
  • trunk/Source/WebInspectorUI/UserInterface/Views/FontResourceContentView.css

    r173715 r213763  
    7272    height: 1px;
    7373
    74     margin-right: -100%; /* Causes this element to be zero width and draw behind the text. */
     74    --margin-end: -100%; /* Causes this element to be zero width and draw behind the text. */
     75}
     76
     77body[dir=ltr] .content-view.resource.font .preview > .line > .metric {
     78    margin-right: var(--margin-end);
     79}
     80
     81body[dir=rtl] .content-view.resource.font .preview > .line > .metric {
     82    margin-left: var(--margin-end);
     83    position: relative;
     84    z-index: -1;
    7585}
    7686
Note: See TracChangeset for help on using the changeset viewer.