Closed (duplicate)
Project:
Drupal core
Version:
9.4.x-dev
Component:
contextual.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
28 Sep 2010 at 14:22 UTC
Updated:
11 May 2022 at 09:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
eustace commentedThe rationale behind the changes are clear and I vote for the changes. However, why change the font-size specification from "90%" to "small" in "div.contextual-links-wrapper"? While both styles use relative sizing, it appears the lower granularity in using named specifiers like "small" is more liable to cross browser inconsistencies. How about an em sizing to be more consistent with referenced Toolbar?
Comment #2
Jeff Burnz commentedYou can't use a relative unit as an insulator - that's the whole entire issue right there and why I posted this as a bug.
Keywords are not relative units, they are absolute units, their relativity is only to the browser default - this is quite different to how ems, ex, or % work. Cross browser consistency is simply irrelevant - we're talking fractional pixels at most.
FYI I wrote the Toolbar font size insulator patch and I can tell you it does not use ems as the insulator, it uses small, then sets all the font sizes relative to small using ems, which is how this patch works also.
Comment #3
sunNice trick.
Can we either use 0.9em or use a different unit? Three decimal digits are just weird.
Powered by Dreditor.
Comment #4
Jeff Burnz commentedActually there is method to the madness, small x 0.923em = 12px (exactly, assuming a 16px default browser setting).
If we want something more comprehensible we can use medium x 0.75em = 12px.
0.9 of small is just 11.7px, so we have fractional px to deal and inconsistent results across browser due to how different browsers handle fractional pixels. I prefer to stick to a proper font scale 12px = 9pt and avoid fractional issues. Sorry for the long winded explanation, as a designer these are thing one obsesses over...
Comment #6
casey commentedDefault CSS could use "font: menu;"
Comment #7
geek-merlin@Jeff Burnz #4 Thanks! really enlightening.
Targeting D8 (once this module is maintainer ;-/ as this is still an issue in D8 contextual.theme.css
Comment #10
larowlanThe fonts now use small (or large for touch enabled).
So we can close this one now