Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upDefault font-size in <input> is not correct. #11529
Comments
|
It looks to me that this can easily be fixed by changing |
|
We explicitly set the font size for inputs here: Line 11 in 55b0bb0 The servo.css file contains "internal" styles for rendering things like form controls, since we don't have any support for native form widgets. I think these styles are arbitrary, not specified by any standard. We currently use 0.7em for inputs, which computes to 11.2px by default. Firefox renders at 13.333px by default, which might correspond to 0.8333em. |
|
Please make a comment here if you intend to work on this issue. Thank you! |
|
I would love to as soon as I complete #11450 |
|
We'll leave this unassigned until someone says they're ready to start working on it :) |
|
I'll work on this! I'll let y'all know if I have questions along the way. |
|
It's yours! |
Change the font-size property for input and textarea Change the `font-size` property for `input` and `textarea` from 0.7em to 0.8333em. - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #11529 (github issue number if applicable). - [ ] There are tests for these changes OR - [X] These changes do not require tests because the issue has the label `C-has-test` Forgive me if I'm wrong; this is my first time contributing to Servo! <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11540) <!-- Reviewable:end -->
Default font-size in Input like

<input type="text" value="123" style="font-family: Arial">is smaller in Servo compared to Firefox and other browsers.