Changeset 213763 in webkit
- Timestamp:
- Mar 11, 2017 5:07:32 PM (7 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r213744 r213763 1 2017-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 1 17 2017-03-10 Matt Baker <mattbaker@apple.com> 2 18 -
trunk/Source/WebInspectorUI/UserInterface/Views/FontResourceContentView.css
r173715 r213763 72 72 height: 1px; 73 73 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 77 body[dir=ltr] .content-view.resource.font .preview > .line > .metric { 78 margin-right: var(--margin-end); 79 } 80 81 body[dir=rtl] .content-view.resource.font .preview > .line > .metric { 82 margin-left: var(--margin-end); 83 position: relative; 84 z-index: -1; 75 85 } 76 86
Note: See TracChangeset
for help on using the changeset viewer.