-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
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. |
This PR should now be ready for editorial review. It uses terms defined in w3c/csswg-drafts#6537 |
There was a problem hiding this 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
@@ -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> |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Filed #7050
That is now part of CSS UI, see I guess the title here should be clarified. (Edit: fixed.) |
Everything we identified in the test plan to test is now tested, see OP for links. Implementation bugs are filed. Getting there! |
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. |
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. |
…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
…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
…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
…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
952cdb6
to
e675645
Compare
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. |
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. |
…usive for clarity
e675645
to
9fe616d
Compare
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? |
There was a problem hiding this 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.
There was a problem hiding this 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.)
Thanks! Indeed, I think it's not circular, but would be nice to merge both at the same time. |
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]>
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]>
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]>
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]>
) 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]>
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]>
(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
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.