[csswg-drafts] Pull Request: [css-ui-4] Provide hooks for HTML to define rendering for widgets

frivoal has just labeled a pull request from frivoal for https://github.com/w3c/csswg-drafts as "Closed Accepted by CSSWG Resolution":

== [css-ui-4] Provide hooks for HTML to define rendering for widgets ==
@fantasai and I gave a stab at the refactoring of https://github.com/w3c/csswg-drafts/pull/6537 we had been talking about in https://github.com/w3c/csswg-drafts/issues/3526. Goal: avoid having to talk about specific HTML elements in the CSS spec, and in particular, avoid having to have long lists of types of widgets.

Doing that was undesirable because:
* CSS, at least in theory, is not limited to HTML.
* The descriptions of each types of widgets were stubs “a button is a <a>widget</a> which must have the <a>native appearance</a> of a button”,  while the HTML spec held the actual descriptions of the rendering of various elements in its Rendering chapter.
* This created a bunch of unnecessary indirections between the two specs, making both of them longer and harder to read than necessary.

The resulting spec is much more straightforward and much shorter, so we think this is a better approach.
This PR is the CSS part of this refactor. For the HTML part of the refactor, look here: https://github.com/frivoal/html/pull/new/appearance-compute-widget-3-updated-take-2 (Note: this is not yet submitted as a PR, pending CSSWG review). The HTML part is complete in the sense that it works with the CSS part, but like the original PR from @zcorpan, lacks details about the rendering of each type of widgets. I'd expect the HTML folks to keep iterating from there.

See https://github.com/w3c/csswg-drafts/pull/7224


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 20 April 2022 16:15:22 UTC