Comments (11)
cc @mfreed7 @josepharhar @annevk
from html.
Icky.
So the spec and MDN both say size
doesn't apply to number inputs. I'm not sure if there was logic behind that decision? It does seem reasonable to me to expand it to include number inputs, but yeah I'd be concerned about compat.
from html.
@mfreed7 the compat issue you linked is tangential to whether number inputs respect the size attribute. I've never seen a compat issue on Firefox for respecting size
.
from html.
@mfreed7 the compat issue you linked is tangential to whether number inputs respect the size attribute. I've never seen a compat issue on Firefox for respecting
size
.
Right, of course. I just meant that changing the layout size of <input type=number>
based on attributes can be a source of breakage. The Firefox issue was about min
/max
, but I don't see a reason, a-priori, to assume that changes to the width based on size
won't break something too. I don't think we have any use counter data measuring <input type=number size>
usage. Do you have any data on this?
from html.
I do not. Happy to add it and come back here in a couple months if you want (but changing based on size
is what I'd expect off-hand since that's what happens on most other text inputs)
from html.
from html.
I do not. Happy to add it and come back here in a couple months if you want (but changing based on
size
is what I'd expect off-hand since that's what happens on most other text inputs)
Cool, thanks! I agree with the sentiment that it would make sense for size
to work on number inputs, if it's web compatible.
from html.
Reading this thread again I'm not sure about doing 2 as size
would be a presentational attribute here.
from html.
I think size
is at the border of presentational versus semantic: as a semantic you could see it as saying "this is the number of characters that the input's value should be able to hold".
from html.
That's fair and it seems like we haven't attempted to make it non-conforming generally, but then the proposal would have to include:
- Make
size
conforming to use for<input type=number>
.
from html.
Sure, consider that part of the proposal :)
from html.
Related Issues (20)
- Spec for the <div align> and <center> elements doesn't match reality. HOT 2
- Lack of CSS Styling Capabilities for <option> Tags HOT 1
- Use align-content for form control centering instead of html "magic" HOT 7
- Error codes for parse errors during tree construction HOT 2
- CSS colors parsed for canvas use should explicitly state the element to resolve currentcolor against HOT 2
- Upcoming WHATNOT meeting on 6/13/2024 HOT 3
- Meeting 3 for joint OpenUI-WHATWG/HTML-CSSWG task force on styleable form controls HOT 2
- HTML parser doesn't tell when it should suspend and resume
- Proposal: CSS reading-order-items HOT 11
- Upcoming WHATNOT meeting on 6/20/2024 HOT 6
- video networkState and currentSrc after load() with no source HOT 1
- Range search for localstorage and session storage HOT 7
- Status of `onbeforeinput` event handler attribute HOT 1
- window.close() incorrectly refers to incumbent global object's node navigable HOT 2
- Warning for probably-buggy WebIDL conversions? HOT 3
- Upcoming WHATNOT meeting on 6/27/2024
- Allow for named base URLs so that relative links can be used for multiple websites or subsites
- RawJSON objects should be structured serializable/deserializable HOT 3
- Structured serialization does not allow [[PrivateElements]] or any other ES-internal internal slots
- Improving Enumerated Attributes in the HTML Standard HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from html.