Skip to content

Fixes #3961#3990

Open
YorikHansen wants to merge 1 commit into
jgthms:mainfrom
YorikHansen:fix/3961
Open

Fixes #3961#3990
YorikHansen wants to merge 1 commit into
jgthms:mainfrom
YorikHansen:fix/3961

Conversation

@YorikHansen
Copy link
Copy Markdown

@YorikHansen YorikHansen commented May 29, 2025

This is a bugfix.

Resolves #3961

Proposed solution

The usage of media range syntax fixes this issue. According to Can I use, this syntax is baseline available since 2023.

Tradeoffs

This is not as backwards compatible as the old max-width. Alternatively one could use the same workaround as bootstrap and subtract only 0.02px. See the alternative implementation here.

Testing Done

(Note: due to a rounding error, my viewport has actually a width between 1023px and 1024px)

Size Without this fix With this fix
1022px Example navbar for a width of 1022px without this fix Example navbar for a width of 1022px with the fix applied
1023px Example navbar for a width of 1023px without this fix Example navbar for a width of 1023px with the fix applied
1024px Example navbar for a width of 1024px without this fix Example navbar for a width of 1024px with the fix applied

Changelog updated?

No.

YorikHansen added a commit to YorikHansen/bulma that referenced this pull request May 29, 2025
This is the alternative implementation as mentioned in the PR jgthms#3990.

Related issue: jgthms#3961
firdaus-aziz added a commit to firdaus-aziz/bulma that referenced this pull request Jan 29, 2026
…s#3990)

Migrate from min-width/max-width to CSS media range syntax (width >= X)
to fix boundary rounding issues at exactly 1023-1024px viewport widths.
Baseline browser support since 2023.
firdaus-aziz added a commit to firdaus-aziz/bulma that referenced this pull request Jan 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Navbar has 1px gap where it's broken due to mixins.until subtracting 1px

1 participant