Bramus

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

Bramusbramus
2022-11-17

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

bram.us/2022/11/17/style-a-par

Promotional image showing the CSS that’s included in the post.
Bramusbramus
2022-11-16

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!

Bramusbramus
2022-11-15

@nhoizey Self-publishing/self-hosting remains the best of course, as you then control the availability yourself.

But currently I haven’t been able to match what slidr.io offers, so keeping that (for now). You win some, you lose some ¯\_(ツ)_/¯

Bramusbramus
2022-11-15

@nhoizey I would suggest people to stay away from Speakerdeck because they convert all slides to images.

While this retains visual correctness, it is also entirely inaccessible, prevents you from copying text from it, does not allow you to click hyperlinks, etc.

The platform I use to publish my decks is slidr.io. It has both visual correctness, allows text selection/links, and also offers the a PDF download.

A pity it‘s not more popular than it is, though.

Bramusbramus
2022-11-15

@mozilla @zcorpan Congrats!

Bramus boosted:
Paweł Grzybekpawelgrzybek
2022-11-15

The recently released Deno 1.28, apart from full compatibility with npm, comes with the equivalent of npx. Sick!

Ps. I am going to add a link to Mastodon later on 🐘💨

The recently released Deno 1.28, apart from full compatibility with npm, comes with the equivalent of npx.
Bramusbramus
2022-11-15

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)?

🤔

Bramusbramus
2022-11-15

Debugging the viewport units also interesting: both Firefox and Chrome do not take scrollbar-gutter into account, causing overflow.

Screenshot of the stable both-eges test page with *vw bars visible in Firefox 106Screenshot of the stable both-eges test page with *vw bars visible in Chrome 110
Bramusbramus
2022-11-15

Couldn’t resist and added some new test pages to interop-2022-viewport.netlify. 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

Screenshot of the stable both-eges test page in Firefox 106Screenshot of the stable both-eges test page in Chrome 110
Bramusbramus
2022-11-15

And now I’m wondering what viewport units will do and how mobile browsers are going to (mis)behave … 🙈

Bramusbramus
2022-11-15

You think you’ve got the Viewports thing tackled, but then you suddenly wonder if it all plays nice with `scrollbar-gutter` or not …

Narrator: it doesn’t.

Chrome with `scrollbar-gutter: stable`Firefox with `scrollbar-gutter: stable`Chrome with `scrollbar-gutter: stable both-edges`Firefox with `scrollbar-gutter: stable both-edges`
Bramus boosted:
Matthias Ottmatthiasott
2022-11-11

Did you know that when you put .rss behind your Mastodon profile URL, you get an RSS feed? 😎

mastodon.social/@matthiasott.r

Bramusbramus
2022-11-10

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

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst