Elektrine
Log in Register
Paige Chat Timeline Gallery Friends Email Drive DNS Private DNS Domains VPN Kairo Nerve
Remote

Bramus

@bramus@mastodon.social
mastodon 4.8.0-nightly.2026-10-06
  • Open on mastodon.social

Chrome Web DevRel at Google (CSS + ChromeDevtools). CSSWG Member. PADI Divemaster. Blogs at bram.us

7 Followers
56 Following
9 Posts
Joined April 25, 2022
About:
https://www.bram.us/about
Blog:
https://www.bram.us/
Bird:
https://twitter.com/bramus
Open post
Bramus @bramus@mastodon.social
· 47mo ago

just setting up my t̶w̶t̶t̶r̶ mastodon

4
2
0
0
Open post
Bramus @bramus@mastodon.social
· 47mo ago

Had a task on my todo to write a blog post for a few weeks now, but never got to it. Couldn’t find the right angle, so I kept pushing it forward. – Yes, a writer’s block.

To get the creative juices flowing I started hacking on some code yesterday. Today I wrote the post in 2hrs.

Procrastination works!

3
0
0
0
Open post
Bramus @bramus@mastodon.social
· 47mo ago

New blogpost: Style a parent element based on its number of children using CSS :has()

https://www.bram.us/2022/11/17/style-a-parent-element-based-on-its-number-of-children-using-css-has/

Style a parent element based on its number of children using CSS :has()
Bram.us

Style a parent element based on its number of children using CSS :has()

Leverage CSS :has() and :nth-child() to style a parent based on the number of children it has.

1
1
1
0
Open post
Bramus @bramus@mastodon.social
· 47mo ago
Replying to

Couldn’t resist and added some new test pages to https://interop-2022-viewport.netlify.app to find things out.

Some early results:

  • Chrome reports wrong size for ICB (docElement.clientWidth)
  • Chrome cuts off rendering (blue box)
  • FixedPos in Firefox is wrong (blue box)
  • Safari has no support
interop-2022-viewport.netlify.app
1
1
0
0
Open post
Bramus @bramus@mastodon.social
· 47mo ago
Replying to
And now I’m wondering what viewport units will do and how mobile browsers are going to (mis)behave … #CanOfWorms 🙈
0
1
0
0
Open post
Bramus @bramus@mastodon.social
· 47mo ago
Replying to
Debugging the viewport units also interesting: both Firefox and Chrome do not take scrollbar-gutter into account, causing overflow.
0
1
0
0
Open post
Bramus @bramus@mastodon.social
· 47mo ago
Replying to

Looks like we’ve got some questions to ponder about in the CSSWG:

  • Should the LVP resize here (and thereby also move the origin for Fixed Positioning)?
  • Should Viewport Units cater for scrollbar-gutter, knowing their size is derived from the ICB (which resizes)?

#ItsComplicated

🤔

0
0
0
0
Open post
Bramus @bramus@mastodon.social
· 47mo ago

@kleinfreund@mastodon.social @matuzo@mastodon.social Also check out this explainer: https://github.com/web-platform-tests/interop-2022-viewport/blob/main/explainers/viewport-units.md

github.com
0
0
0
0
Back
313k7r1n3
Elektrine

Tor hidden service

elekhj7afj4qnrr4yd3bkzslsyo5jgfxw3orgjkhlcxifueodybyiiad.onion

I2P eepsite

j6b6cyk6gjmepjih7jjadxgxvvf3lzzujljuu2v4biemzpg3naya.b32.i2p

Platform

  • Email
  • Chat
  • Timeline
  • VPN
  • DNS

Company

  • About
  • Contact
  • FAQ
  • Lite (no JS)

Legal

  • Terms of Service
  • Privacy Policy
  • Transparency Report
  • Report Abuse
  • Warrant Canary
  • VPN Policy

Support

  • support@elektrine.com
  • Report Security Issue
Mail client setup IMAP mail.elektrine.com:993 POP3 mail.elektrine.com:995 SMTP mail.elektrine.com:465
© 2026 Elektrine. All rights reserved. Server: 06:17:49 UTC