What a One-Line CSS Fix Taught Me About Code Review (My First Firefox Patch Feedback Loop)
When I started contributing to Firefox through Outreachy, I expected the hard part to be writing code. What actually taught me the most was a two-line CSS fix that a reviewer sent back — not because it was wrong, but because it wasn't quite right yet.
Here's what happened with Bug 2026574.
The Bug
In Firefox's Split View about:opentabs page, long strings in the search field were overflowing outside their container instead of wrapping. Visually, it broke the layout — text just spilled past its boundary instead of staying contained.
My job: make the text wrap properly, without breaking anything else on the page.
My First Attempt
I went into moz-card.css and targeted the heading element directly:
.moz-card-heading {
overflow-wrap: break-word;
min-width: 0;
}
This worked, technically. The text wrapped. Locally, it looked fixed.
I submitted the patch for review, feeling fairly confident — it was a small, contained change.
The Feedback
My reviewer, Tim Giles, came back with a better approach. Instead of targeting the heading specifically with two properties, he suggested applying a single, more precise rule to the parent .moz-card element:
.moz-card {
overflow-wrap: anywhere;
}
overflow-wrap: anywhere is more aggressive than break-word — it allows breaks at any point when needed to prevent overflow, not just at existing break opportunities. And by moving it to .moz-card instead of just the heading, the fix covered the component more robustly instead of patching one specific element.
It was a smaller diff. It solved the actual problem instead of the symptom I'd focused on. And it followed patterns already used elsewhere in the codebase.
What I Actually Learned
My first instinct, seeing feedback on a patch I thought was "done," was a small jolt of did I get this wrong?
But that's not what was happening. Getting feedback on a first pass isn't failure — it's the normal shape of how good code gets written in a real codebase, especially one as large and well-established as Firefox's. A reviewer who's worked in that CSS longer than I have could see a cleaner path I couldn't see yet, and the whole point of review is that someone catches that before it ships to hundreds of millions of users.
I made the change, resubmitted, and Kelly Cochrane landed it into Firefox Nightly on April 7, 2026.
If You're New to Open Source
If you're intimidated by the idea of your first patch getting review comments back — don't be. It's not a sign you don't belong in the codebase. It's what the codebase is for: reviewers exist to make your fix better than your first version, and every experienced contributor has had a "reviewer suggested a cleaner approach" moment. Mine just happened to be two lines of CSS that taught me more about writing maintainable code than a much bigger patch might have.
I'm Rosemary, a self-taught full-stack developer from Nigeria, contributing to Mozilla Firefox through Outreachy. You can find my other work on GitHub.
Top comments (0)