Should be possible to disable fieldset/legend layout magic |
|||||
Issue descriptionSee proposal in https://github.com/whatwg/html/issues/3912
,
Aug 24
,
Aug 24
We shouldn't write an intent to implement more -webkit- stuff, and we really shouldn't add any more -webkit- stuff to the platform. Better to live with the FIELDSET / LEGEND magic until we have a standardized way of disabling it.
,
Aug 24
Why not? https://github.com/whatwg/html/pull/3934 is the standardized way of disabling it. That said, fixing the spec for appearance and unprefixing is tracked in https://github.com/w3c/csswg-drafts/issues/3024
,
Aug 24
https://www.chromium.org/blink#vendor-prefixes I say we wait for https://github.com/w3c/csswg-drafts/issues/3024 to resolve. A good start might be to add what's currently supported with -webkit-appearance (but not add new stuff) to https://compat.spec.whatwg.org/ , right?
,
Aug 24
OK, though -webkit-appearance is now cross-browser, so it's not a new property we're exposing. Only supporting the new values behind a flag sounds reasonable.
,
Aug 24
Morten, I don't think it's reasonable to forever maintain two sets of appearance values, those that can be used with -webkit-appearance, and those that can be used with an unprefixed variant. It seems better to keep those properties identical and therefore add them to -webkit-appearance and unprefix the whole property as well. (Note that I don't think we can ever remove -webkit-appearance.) Or did you have something else in mind?
,
Aug 24
Yes, the web will probably be stuck with -webkit-appearance forever. That's why we have https://compat.spec.whatwg.org/ to document such things, right? Having one "-webkit-appearance" and one "appearance" that aren't aliases definitely sounds bad, and I really hope we can avoid that. If we unprefix the property and add the new values for fieldset and legend, we should obviously allow them for -webkit-appearance as well. My point is that we should unprefix first, then add the new values.
,
Aug 24
Would you be ok with adding the new values behind the experimental web platform features flag without waiting for unprefixing to happen?
,
Aug 24
If that's useful for anyone, that sounds fine. Can you please state the motivation for this (that's a required part of an intent to implement)?
,
Aug 25
Not being able to reset styles on fieldset/legend so they act like normal elements is a major pain point for web developers, which results in them using divs instead, and that is bad for accessibility. https://twitter.com/fvsch/status/1022371862674911232 https://twitter.com/etportis/status/1022250278685356032 appearance: none (or -webkit-appearance: none) is what most would reach for to disable the magic of fieldset and legend. https://github.com/whatwg/html/issues/3912 Mozilla has a wip patch at https://bugzilla.mozilla.org/show_bug.cgi?id=1483787 No public signals for Safari/Edge, but they are aware of this proposal.
,
Aug 26
Thank you! It would be reassuring to have some sort of spec for 'appearance' before filing an intent. It'd also be great to know what Safari and Edge think about this. Also: https://compat.spec.whatwg.org/ should mention -webkit-appearance.
,
Aug 27
Made a PR for compat, at https://github.com/whatwg/compat/pull/104
,
Aug 27
Spec and tests for -webkit-appearance landed.
,
Sep 14
Taken out from the spec: https://github.com/whatwg/html/pull/3934/commits/7c24f1fb60ac92d3fac1bad2ab5e3bbf47817aef
,
Oct 16
|
|||||
►
Sign in to add a comment |
|||||
Comment 1 by zcorpan@gmail.com
, Aug 24