Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Merge requests
  • !24299

Add support for fractional viewport widths (zoom/high-dpi displays)

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Patrick H. Lauke requested to merge github/fork/patrickhlauke/v4-dev-fractional-breakpoints into v4-dev Oct 08, 2017
  • Overview 0
  • Commits 9
  • Pipelines 0
  • Changes 5

Current breakpoint min-width/max-width calculations have a gap when viewport width is fractional (as can happen when the user zooms, but more importantly when the user has a high-dpi display with a fractional dpr/devicePixelRatio, such as the Surface 3 at 1.5). See the related clarification I added to CSS MQ4 https://github.com/w3c/csswg-drafts/pull/1083

Instead of spacing the min- and max- values by 1px, precision is now increased to 0.01px, which should cover most fractional values in the foreseeable future.

xref https://github.com/twbs/bootstrap/issues/24137, https://github.com/twbs/bootstrap/issues/21552

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/patrickhlauke/v4-dev-fractional-breakpoints