LadybirdBrowser / ancient-history

The Ladybird web browser
BSD 2-Clause "Simplified" License
1.62k stars 109 forks source link

TextField size is wrong #132

Open coffeeispower opened 1 year ago

coffeeispower commented 1 year ago

As shown in a recent video where @awesomekling managed to login into discord using lady bird (yay!), the text fields size are a little bit weird, the height shrinks when its empty, and also it should have some default width, if you create a text field in firefox or chrome you can see it adds a default width to it

Speaking of discord, the email and password text fields have the different widths, probably it has something to do with the default width thing

jmalcolm137 commented 1 year ago

Firefox has a default stylesheet that takes care of this kind of thing. Does Ladybird use a default stylesheet?

ADKaster commented 1 year ago

The user agent style sheet as outlined in the HTML and CSS specs is here, though there's definitely things that are either missing or ad hoc still. https://github.com/SerenityOS/serenity/blob/master/Userland/Libraries/LibWeb/CSS/Default.css