Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define which elements can be which kinds of widgets for CSS 'appearance' #7004

Closed

Conversation

howard-e
Copy link
Contributor

@howard-e howard-e commented Aug 31, 2021

(See WHATWG Working Mode: Changes for more details.)


This PR replaces #4857 and builds onto @zcorpan's work. This addresses content proposed to be better suited for CSS UI. See comment no. 1, comment no. 2 and relevant PR.


/index.html ( diff )
/infrastructure.html ( diff )
/rendering.html ( diff )


💥 Error: Wattsi server error 💥

PR Preview failed to build. (Last tried on Mar 31, 2022, 9:35 AM UTC).

More

PR Preview relies on a number of web services to run. There seems to be an issue with the following one:

🚨 Wattsi Server - Wattsi Server is the web service used to build the WHATWG HTML spec.

🔗 Related URL

<html>
<head><title>524 Origin Time-out</title></head>
<body bgcolor="white">
<center><h1>524 Origin Time-out</h1></center>
<hr><center>cloudflare-nginx</center>
</body>
</html>

If you don't have enough information above to solve the error by yourself (or to understand to which web service the error is related to, if any), please file an issue.

@domenic

This comment has been minimized.

@domenic domenic closed this Aug 31, 2021
@domenic

This comment has been minimized.

@domenic domenic reopened this Aug 31, 2021
@howard-e howard-e changed the title Define how some properties disable 'appearance' Define how some properties disable 'appearance' [updated] Aug 31, 2021
@howard-e

This comment has been minimized.

@zcorpan
Copy link
Member

zcorpan commented Sep 8, 2021

Thanks, @howard-e! I've pushed commit to remove the algo that was moved to CSS UI, and change "can be a button" to be closer to the proposed prose in w3c/csswg-drafts#3526 (comment) (under "HTML"). The remaining "can be ..." needs this treatment as well.

@zcorpan
Copy link
Member

zcorpan commented Sep 9, 2021

This PR should now be ready for editorial review. It uses terms defined in w3c/csswg-drafts#6537

Copy link
Member

@domenic domenic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although this PR does define the "can be" algorithms, I'll note that it doesn't accomplish the goal stated in the title, of defining how some properties disable appearance, because it doesn't finish the integration with CSS UI by mapping the computed (used?) value of "kind of widget" to actual appearances.

source Outdated Show resolved Hide resolved
source Outdated Show resolved Hide resolved
source Outdated Show resolved Hide resolved
source Outdated Show resolved Hide resolved
source Outdated Show resolved Hide resolved
source Outdated Show resolved Hide resolved
source Outdated
@@ -117314,6 +117682,10 @@ input[type=image i][align=bottom i], object[align=bottom i] {
box</span>'s contents (if there is an <span>anonymous button content box</span>) are the child
boxes the element's box would otherwise have.</p>

<p class="XXX">Need to define expected rendering when the <span>kind of widget</span>
is <span data-x="concept-widget-none">none</span> and <span
data-x="concept-widget-button">button</span>.</p>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the plan to fix these before merging? Doesn't seem that hard... the current text applies for button, and something very simple for none?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, I was thinking they can be handled as follow-ups. I can file an issue.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Filed #7050

@zcorpan
Copy link
Member

zcorpan commented Sep 9, 2021

Although this PR does define the "can be" algorithms, I'll note that it doesn't accomplish the goal stated in the title, of defining how some properties disable appearance, because it doesn't finish the integration with CSS UI by mapping the computed (used?) value of "kind of widget" to actual appearances.

That is now part of CSS UI, see
https://github.com/w3c/csswg-drafts/pull/6537/files#diff-cc2f666bf7d93dcefcc3fffc4761793a54fba00c03b53b9dbdf81f5056f0b56eR2224

I guess the title here should be clarified. (Edit: fixed.)

@zcorpan zcorpan changed the title Define how some properties disable 'appearance' [updated] Define which elements can be which kinds of widgets for CSS 'appearance' Sep 10, 2021
zcorpan added a commit to web-platform-tests/wpt that referenced this pull request Sep 10, 2021
@zcorpan
Copy link
Member

zcorpan commented Sep 10, 2021

Everything we identified in the test plan to test is now tested, see OP for links. Implementation bugs are filed. Getting there!

@domenic
Copy link
Member

domenic commented Sep 10, 2021

That is now part of CSS UI, see
https://github.com/w3c/csswg-drafts/pull/6537/files#diff-cc2f666bf7d93dcefcc3fffc4761793a54fba00c03b53b9dbdf81f5056f0b56eR2224

Sure, but this PR doesn't explain when something is actually a (e.g.) button widget, because of the XXX boxes. So that section of CSS UI tells us that sometimes some properties cause a "none" appearance, but nothing tells us the difference between "none" appearance and "button" appearance.

@zcorpan
Copy link
Member

zcorpan commented Sep 13, 2021

Ah, yeah. Indeed, it needs to be defined. IIRC the UA styles aren't identical between browsers (or even same browser, across OSes), so it's not necessarily very simple. That's not to say that we shouldn't spec it, just that I prefer to deal with them as follow-ups so we can review and get sign off for each widget.

zcorpan added a commit to web-platform-tests/wpt that referenced this pull request Sep 20, 2021
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Oct 3, 2021
…ents in non-HTML namespace, a=testonly

Automatic update from web-platform-tests
[css-ui] Test 'appearance: auto' on elements in non-HTML namespace

See w3c/csswg-drafts#6537 and whatwg/html#7004

--

wpt-commits: ec305acf8ade06f8e9c05c75133aed4426c52b62
wpt-pr: 30539
jamienicol pushed a commit to jamienicol/gecko that referenced this pull request Oct 4, 2021
…ents in non-HTML namespace, a=testonly

Automatic update from web-platform-tests
[css-ui] Test 'appearance: auto' on elements in non-HTML namespace

See w3c/csswg-drafts#6537 and whatwg/html#7004

--

wpt-commits: ec305acf8ade06f8e9c05c75133aed4426c52b62
wpt-pr: 30539
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Oct 4, 2021
…ents in non-HTML namespace, a=testonly

Automatic update from web-platform-tests
[css-ui] Test 'appearance: auto' on elements in non-HTML namespace

See w3c/csswg-drafts#6537 and whatwg/html#7004

--

wpt-commits: ec305acf8ade06f8e9c05c75133aed4426c52b62
wpt-pr: 30539
jamienicol pushed a commit to jamienicol/gecko that referenced this pull request Oct 6, 2021
…ents in non-HTML namespace, a=testonly

Automatic update from web-platform-tests
[css-ui] Test 'appearance: auto' on elements in non-HTML namespace

See w3c/csswg-drafts#6537 and whatwg/html#7004

--

wpt-commits: ec305acf8ade06f8e9c05c75133aed4426c52b62
wpt-pr: 30539
@zcorpan zcorpan force-pushed the appearance-compute-widget-3-updated branch from 952cdb6 to e675645 Compare November 19, 2021 21:54
@zcorpan
Copy link
Member

zcorpan commented Nov 19, 2021

Rebased to resolve conflicts.

@domenic are you OK with landing this, and leave #7050 for follow-ups? We hope to land this next week so it can be considered for Interop 2022. @josepharhar is currently reviewing these tests.

@domenic
Copy link
Member

domenic commented Nov 19, 2021

Can you help by briefly summarizing what the normative consequences of (a strict reading of) this spec change are, given the XXX boxes leaving some stuff undefined? That would probably also help with the commit message.

@zcorpan zcorpan force-pushed the appearance-compute-widget-3-updated branch from e675645 to 9fe616d Compare March 30, 2022 12:08
@zcorpan
Copy link
Member

zcorpan commented Mar 30, 2022

Maybe we can change those "should"s to "must"s, though.

Done: w3c/csswg-drafts@47b192c

I've now rebased this to address merge conflicts.

This change, which was implemented and shipped in Chromium and Gecko in 2020, not landing in the spec yet is now blocking implementation in WebKit and thus blocking interoperability improvements. See web-platform-tests/wpt#33401

Can we merge?

Copy link
Member

@domenic domenic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to do a review but all the CSS UI links seem to be broken so I was unable to page the context back in.

source Show resolved Hide resolved
source Show resolved Hide resolved
Copy link
Member

@domenic domenic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. It seems like there's a pretty strict dependency on w3c/csswg-drafts#6537 though so IMO we should not merge until that's merged?

(In particular, the dependency doesn't seem circular; it seems like HTML just plain depends on those CSS UI concepts.)

source Show resolved Hide resolved
@zcorpan
Copy link
Member

zcorpan commented Mar 31, 2022

Thanks! Indeed, I think it's not circular, but would be nice to merge both at the same time.

frivoal added a commit to frivoal/html that referenced this pull request Apr 18, 2022
This is an editorial rewrite of the prior work by Bocoup (@zcorpan and
@howard-e):
* whatwg#7004
* w3c/csswg-drafts#6537

Co-authored-by: fantasai <[email protected]>
Co-authored-by: Simon Pieters <[email protected]>
Co-authored-by: Howard Edwards <[email protected]>
frivoal added a commit to frivoal/csswg-drafts that referenced this pull request Apr 18, 2022
Relates to w3c#3526

This is part of an editorial rewrite of the prior work by Bocoup
(@zcorpan and @howard-e):
* whatwg/html#7004
* w3c#6537

Co-authored-by: fantasai <[email protected]>
Co-authored-by: Simon Pieters <[email protected]>
Co-authored-by: Howard Edwards <[email protected]>
frivoal added a commit to frivoal/csswg-drafts that referenced this pull request Apr 19, 2022
Relates to w3c#3526

This is part of an editorial rewrite of the prior work by Bocoup
(@zcorpan and @howard-e):
* whatwg/html#7004
* w3c#6537

Co-authored-by: fantasai <[email protected]>
Co-authored-by: Simon Pieters <[email protected]>
Co-authored-by: Howard Edwards <[email protected]>
frivoal added a commit to frivoal/csswg-drafts that referenced this pull request Apr 20, 2022
Relates to w3c#3526

This is part of an editorial rewrite of the prior work by Bocoup
(@zcorpan and @howard-e):
* whatwg/html#7004
* w3c#6537

Co-authored-by: fantasai <[email protected]>
Co-authored-by: Simon Pieters <[email protected]>
Co-authored-by: Howard Edwards <[email protected]>
frivoal added a commit to w3c/csswg-drafts that referenced this pull request Apr 20, 2022
)

Relates to #3526

This is part of an editorial rewrite of the prior work by Bocoup
(@zcorpan and @howard-e):
* whatwg/html#7004
* #6537

Co-authored-by: fantasai <[email protected]>
Co-authored-by: Simon Pieters <[email protected]>
Co-authored-by: Howard Edwards <[email protected]>

Co-authored-by: fantasai <[email protected]>
Co-authored-by: Simon Pieters <[email protected]>
Co-authored-by: Howard Edwards <[email protected]>
@domenic domenic closed this in 19159ab Apr 25, 2022
mfreed7 pushed a commit to mfreed7/html that referenced this pull request Jun 3, 2022
Closes whatwg#7004 by superseding it. See also w3c/csswg-drafts#6537 and w3c/csswg-drafts#7224.

Co-authored-by: fantasai <[email protected]>
Co-authored-by: Simon Pieters <[email protected]>
Co-authored-by: Howard Edwards <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

4 participants