When college roommates Alexis Ohanian and Steve Huffman cooked up the idea for Reddit, they weren’t thinking about company culture or worker benefits.

But now Ohanian, Reddit’s executive chairman and fiancé of tennis champion Serena Williams, is taking full advantage of his company’s new parental leave policy.

Ohanian joins Facebook’s Mark Zuckerberg as a prominent male tech executive taking parental leave, illustrating how tech firms, after a flurry of coverage about their poor work-life balance, are working to change their tune as they — and their founders — age.

The work culture at these firms is notorious for demanding that employees throw their whole selves into work, said Ellen Bravo, co-executive director of the advocacy group Family Values @ Work.

A few years ago, then-Yahoo Chief Executive Marissa Mayer faced harsh criticism, twice, for taking less than a month of maternity leave after the birth of her children — but some saw it as a reaction to the pressure that women in tech face to devote their lives to their jobs.

Sheryl Sandberg, Facebook’s chief operating officer, speaks often of the difficulty that women face balancing family and work. The social network was one of the first to offer 16 weeks of leave to new parents, including contractors.

And in 2017, after Sandberg’s husband died, Facebook bolstered its bereavement leave and other family leave policies.

Reddit’s head of people and culture, Katelin Holloway, crafted the firm’s policy by drawing on her experience: While at a different tech firm, she found herself on a conference call while heading into the delivery room.

Only 14 percent of American workers have access to any paid parental leave, according to the Pew Research Center, and only 12 percent of companies offer any paid paternity leave.

The average maximum for paid maternity leave in the United States is 14.2 weeks.

Reddit specifically has had a poor reputation for the way it treats its workers, particularly women.

But when Huffman returned as chief executive in 2015, the company started to reshape its culture. The leave policy is part of that.

“For me, it’s more than just the time,” Ohanian said by phone a couple of weeks before his daughter’s birth. Reddit also makes plans before the start of the parental leave to hand off responsibilities, to ensure that parents away from work can stay that way.