Closed Bug 1556554 Opened 5 years ago Closed 4 years ago

text-transform is inherited by `<button>` and `<select>`

Categories

(Core :: Layout: Form Controls, defect, P3)

defect

Tracking

()

RESOLVED FIXED

People

(Reporter: jugglinmike, Unassigned)

References

Details

Attachments

(1 file)

Other user agents have long disabled text-transform inheritance for these elements, and web developers have signaled their preference by implementing that styling in various "CSS normalizer" projects.

A patch to the specification is under review here:

https://github.com/whatwg/html/pull/4672

So Blink and WebKit also do this for all of input, textarea, select, button... Should we also do that?

Also, are there tests for that patch?

Doing this for input, textarea, select seems reasonable given that they are replaced elements.
I disagree with <button> though - it creates CSS boxes for its children and flows them
according to CSS rules, so properties should inherit without surprises there IMO.

Thanks for the patch Mike. It looks like in the GitHub issue people agree with not having the button rule. Could you update the patch? Thanks!

Flags: needinfo?(mike)
Priority: -- → P3

Thanks for taking a look at this, Cameron! We're still waiting on support from
WebKit in that discussion thread. Given that the goal is interoperability, I'd
rather not commit to a change that we don't yet expect to be implemented
consistently. It may be that we forgo technical purity in the interest of
interoperability.

If you don't mind, I'd like a little more time to get buy-in from WebKit.

Flags: needinfo?(mike)

I have made a new proposal in the spec issue, though this needs buy-in from Gecko.

https://github.com/whatwg/html/issues/1310#issuecomment-520795729

Flags: needinfo?(mats)

Replied on the spec issue.

Flags: needinfo?(mats)

This eventually got done in bug 1481112. Thanks for writing that initial patch, Mike.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED

Ah, too bad!

This and bug 1567323 make two patches in two months that have been superseded by work from Mozilla employees. I can only imagine how complicated it is to manage this project, so it's understandable. Also, I was fortunate enough to write the patches as part of my day job. I'm just a little concerned for other external contributors who can't say the same.

:heycam is there anyone on the triage team(s) who would be interested in hearing about this?

Sorry about that! I would put it down to it being difficult to keep track of all the bugs we have on file and their current status. I know that I am guilty of filing a bug to fix an issue, not having found a previously filed bug because I didn't use the same set of keywords in the bug title. And for the number of bugs within the components I'm interested in, I basically can't keep up with regular bug comment mails. Using needinfo to get someone's attention is probably more likely to be successful.

Looking at bug 1567323 specifically, attaching a patch without flagging a specific reviewer will likely result in the patch not being noticed. If you have a complete patch that you'd like to get landed, please do use Phabricator and request review from someone. If you don't know who might be a good reviewer, start off by choosing someone who's an owner or peer of the module of the code you're changing: https://wiki.mozilla.org/Modules/All

But your point about dropping contributors' patches is a good one, and points like the above should be documented somewhere if they're not already. I'm not sure how up to date the documentation at https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide is but it looks like it does talk about how to submit patches, use of Phabricator, etc.

Thanks very much, Cameron. That's helpful feedback, and I appreciate your taking the time to share it :)

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: