Repository navigation
Formalize definition of "widget" (superseded by #4857) - #4725
jugglinmike wants to merge 1 commit into
Conversation
|
I don't know if the usage of widget here aligns at all with how the appearance property works in CSS, or whether creating a cross-spec dependency in this way makes sense (instead of having CSS define a specific list of elements). I'll defer to @zcorpan. |
|
I think having this list in HTML makes sense since CSS usually tries to be host-language agnostic, and leave the details to the host language. In practical terms, having this list maintained in HTML makes it more likely that it is kept up-to-date. We could add a note saying that this term is used by the CSS UI spec for the 'appearance' property, so that readers (and our future selves) know why it's there. |
|
However, for the purpose of the 'appearance' property, these elements aren't "widgets"
I'll give this some more thought. Maybe a different term that more clearly is about the 'appearance' property is needed. |
|
How about:
|
|
+1 to special appearance, and to the general idea of a specific term for this purpose. |
|
The term "special appearance" is vague in a way that supports the usages that we're removing, e.g. A more specific term might help discourage expectations about the legacy behavior. What about
|
|
What about extending the set of supported elements to match the "widget" definition? On one hand, that seems like overloading. On the other, there are already many element classifications. If a little scope creep reduces the number of distinct concepts (so that no one ever has to figure out which elements are widgets without "special appearance"), then it might be justified.
I don't mean to derail, though. If you folks think this is worth discussing, then I'd be happy to open a separate issue. |
|
From the CSS point of view, these elements are pretty special. The specialness can be disabled with 'appearance: none', but I think it's weird to call the concept "disabled appearance". That sounds like the element is hidden or something. :-) I also don't want to change how |
Incidentally, that's how I read "appearance: none" but even I'm not brash enough to suggest revising the property name itself. I originally interpreted "special" to mean the non-default rendering (i.e. "appearance: none"), but now I understand it's intended to describe the default rendering. Does "native appearance" sound any better to you? |
|
"native appearance" works for me. |
|
|
||
| <p>The elements defined in this section can be rendered in a variety of manners, within the | ||
| <p>The elements in this section can be rendered in a variety of manners, within the | ||
| guidelines provided below. User agents are encouraged to set the <span>'appearance'</span> CSS |
There was a problem hiding this comment.
How can user agents set this property if its new values are not adequate to describe the elements mentioned below?
There was a problem hiding this comment.
I plan to remove or rewrite this sentence in https://github.com/whatwg/html/pull/4322/files#diff-36cd38f49b9afa08222c0dc9ebfe35ebR113494
There was a problem hiding this comment.
Is there a reason we're separating these changes? Logically they seem to belong together?
There was a problem hiding this comment.
I can fold this into that PR. I think that makes sense.
|
I've changed w3c/csswg-drafts#3991 and this PR as per the above discussion. Please review. |
This term is currently used informally to describe "the elements defined in [section 14.5]." Formalize this definition so that it may be referenced by the CSS-UI specification to describe the referenced `appearance` property. Add a note Rename the term to 'native appearance' and remove details, summary, marquee Hook into CSS UI's 'native appearance' term
|
This is now part of #4857 |
This term is currently used informally to describe "the elements defined
in [section 14.5]." Formalize this definition so that it may be
referenced by the CSS-UI specification to describe the referenced
appearanceproperty.For additional context, see issue 3990 of the CSS-UI specification.
/infrastructure.html ( diff )
/rendering.html ( diff )