File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4747 editor on the right. A solid box-shadow with zero blur paints CCB-colored
4848 pixels into those gaps without shifting any geometry. */
4949 box-shadow :
50- -2px 0 0 0 #222 ,
51- 2px 0 0 0 #222 ;
50+ -2px 0 0 0 #222 ,
51+ 2px 0 0 0 #222 ;
5252
5353 .ccb-group {
5454 display : flex ;
160160 .ccb-file-name {
161161 flex : 1 1 auto ;
162162 min-height : 0 ;
163- /* `sideways-lr` rotates each glyph 90° CCW so the text reads
164- bottom-up naturally. Using this instead of `vertical-rl` +
165- `transform: rotate(180deg)` avoids the blurry sub-pixel
166- rasterization that the transform path produced on linux
167- electron, because Chromium can take its fast vertical-text
168- path for glyph layout and skip the rotated bitmap upscale. */
169- writing-mode : sideways-lr ;
163+ /* Base: vertical-rl + rotate(180deg) gives the same bottom-to-top
164+ reading direction as sideways-lr and works in all engines
165+ (including WebKit/Tauri on macOS where sideways-lr is unsupported
166+ and silently falls back to horizontal-tb). */
167+ writing-mode : vertical-rl ;
168+ text-orientation : sideways ;
170169 white-space : nowrap ;
171170 overflow : hidden ;
172171 text-overflow : ellipsis ;
175174 font-weight : 500 ;
176175 /* Promote to its own compositing layer + force AA — keeps the
177176 rotated glyphs crisp even when the system falls back to the
178- slow text path. */
179- transform : translateZ (0 );
177+ slow text path. rotate(180deg) flips vertical-rl top-to-bottom
178+ into bottom-to-top reading order. */
179+ transform : rotate (180deg ) translateZ (0 );
180180 backface-visibility : hidden ;
181181 -webkit-font-smoothing : antialiased ;
182182 text-rendering : geometricPrecision ;
You can’t perform that action at this time.
0 commit comments