Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Why are some font-sizes fractional in 13.0 skins

    A bunch of styles in 13.0, in my case in the Stratus skin, has to me pretty strange font-size attributes.

    For example .buttonPending has "font-size: 12.58px;", and ",sectionHeaderopened" also has it

    Is this deliberate? Just curious :)

    #2
    12.58px is one of the top-level sizes in those recent skins, yes - it's also used in general for FormItems-values

    Comment


      #3
      So why would you want to use 12.58 instead of, say, 13?

      Comment


        #4
        CSS pixels are a unit defined in terms of human visual perception, not a device pixel. Modern devices offer many device pixels per CSS pixel.

        https://webplatform.github.io/docs/t...ing-css-units/

        Fractional pixels are not unusual.

        https://stackoverflow.com/questions/...-be-a-fraction

        Comment


          #5
          Thanks for taking the time to answer! I did know it was possible, and that they are not same as device pixels. I was more wondering about what the benefit would be, why you'd do it that way. The stack-link was enlightening and it linked to a great blog-post (for anyone else interested: https://johnresig.com/blog/sub-pixel-problems-in-css/ )

          Thanks again.

          Comment

          Working...
          X