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

[css-ui] Consider removing slider-horizontal from <compat-auto> #8506

Closed
emilio opened this issue Feb 28, 2023 · 13 comments · Fixed by #8877
Closed

[css-ui] Consider removing slider-horizontal from <compat-auto> #8506

emilio opened this issue Feb 28, 2023 · 13 comments · Fixed by #8877
Labels
Closed Accepted by CSSWG Resolution css-ui-4 Current Work Tested Memory aid - issue has WPT tests

Comments

@emilio
Copy link
Collaborator

emilio commented Feb 28, 2023

Firefox doesn't support it and we've never seen a compat issue due to this. I noticed this while looking at Firefox-specific test failures for appearance.

cc @frivoal, do you have the context of why was it needed?

@emilio emilio added css-ui-4 Current Work Agenda+ labels Feb 28, 2023
@emilio
Copy link
Collaborator Author

emilio commented Feb 28, 2023

Same for square-button and push-button

@SebastianZ
Copy link
Contributor

While implemented across browsers, I also wonder whether searchfield is actually needed.

I'm not sure how to interpret the drastic drop in usage. Though currently only 0.000309% of pages seem to use it.

Sebastian

@SebastianZ
Copy link
Contributor

For what it's worth, the values mentioned by @emilio have also very low usage numbers.

square-button
push-button
slider-horizontal

Sebastian

@emilio
Copy link
Collaborator Author

emilio commented Feb 28, 2023

cc @chrishtr, @smfr, does it seem sensible to drop them?

moz-wptsync-bot pushed a commit to web-platform-tests/wpt that referenced this issue Feb 28, 2023
* Remove some legacy appearance aliases that other engines don't
   implement.

 * Allow to pass with unimplemented <compat-auto> values, since per the
   spec the idea of these is to get them removed, see
   w3c/csswg-drafts#8506 for the ones we don't
   implement.

 * Also allow the `-moz-` prefix to be implemented, because we can't
   quite get rid of it (people use it to remove the <input type=number>
   buttons with -moz-appearance: textfield and so on), and the
   alternative is to implement a bunch of non-standard ::-webkit-
   pseudo-elements.

Differential Revision: https://phabricator.services.mozilla.com/D171243

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1695565
gecko-commit: fa7252da2862b60cd3a466290e532732fc7bf9cf
gecko-reviewers: boris
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this issue Mar 1, 2023
* Remove some legacy appearance aliases that other engines don't
   implement.

 * Allow to pass with unimplemented <compat-auto> values, since per the
   spec the idea of these is to get them removed, see
   w3c/csswg-drafts#8506 for the ones we don't
   implement.

 * Also allow the `-moz-` prefix to be implemented, because we can't
   quite get rid of it (people use it to remove the <input type=number>
   buttons with -moz-appearance: textfield and so on), and the
   alternative is to implement a bunch of non-standard ::-webkit-
   pseudo-elements.

Differential Revision: https://phabricator.services.mozilla.com/D171243
moz-wptsync-bot pushed a commit to web-platform-tests/wpt that referenced this issue Mar 1, 2023
* Remove some legacy appearance aliases that other engines don't
   implement.

 * Allow to pass with unimplemented <compat-auto> values, since per the
   spec the idea of these is to get them removed, see
   w3c/csswg-drafts#8506 for the ones we don't
   implement.

 * Also allow the `-moz-` prefix to be implemented, because we can't
   quite get rid of it (people use it to remove the <input type=number>
   buttons with -moz-appearance: textfield and so on), and the
   alternative is to implement a bunch of non-standard ::-webkit-
   pseudo-elements.

Differential Revision: https://phabricator.services.mozilla.com/D171243

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1695565
gecko-commit: 2f565aff38fd5331500738f2798bbeab75565241
gecko-reviewers: boris
moz-wptsync-bot pushed a commit to web-platform-tests/wpt that referenced this issue Mar 1, 2023
* Remove some legacy appearance aliases that other engines don't
   implement.

 * Allow to pass with unimplemented <compat-auto> values, since per the
   spec the idea of these is to get them removed, see
   w3c/csswg-drafts#8506 for the ones we don't
   implement.

 * Also allow the `-moz-` prefix to be implemented, because we can't
   quite get rid of it (people use it to remove the <input type=number>
   buttons with -moz-appearance: textfield and so on), and the
   alternative is to implement a bunch of non-standard ::-webkit-
   pseudo-elements.

Differential Revision: https://phabricator.services.mozilla.com/D171243

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1695565
gecko-commit: e3553560e147b892fedd78a1e722a84f17f08b65
gecko-reviewers: boris
jamienicol pushed a commit to jamienicol/gecko that referenced this issue Mar 1, 2023
* Remove some legacy appearance aliases that other engines don't
   implement.

 * Allow to pass with unimplemented <compat-auto> values, since per the
   spec the idea of these is to get them removed, see
   w3c/csswg-drafts#8506 for the ones we don't
   implement.

 * Also allow the `-moz-` prefix to be implemented, because we can't
   quite get rid of it (people use it to remove the <input type=number>
   buttons with -moz-appearance: textfield and so on), and the
   alternative is to implement a bunch of non-standard ::-webkit-
   pseudo-elements.

Differential Revision: https://phabricator.services.mozilla.com/D171243
@chrishtr
Copy link
Contributor

chrishtr commented Mar 1, 2023

Removing them from Chromium sounds good to me, given those use counters. @mfreed7 and team are going to look into it.

@chrishtr
Copy link
Contributor

chrishtr commented Mar 2, 2023

@dizhang168

moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this issue Mar 2, 2023
* Remove some legacy appearance aliases that other engines don't
   implement.

 * Allow to pass with unimplemented <compat-auto> values, since per the
   spec the idea of these is to get them removed, see
   w3c/csswg-drafts#8506 for the ones we don't
   implement.

 * Also allow the `-moz-` prefix to be implemented, because we can't
   quite get rid of it (people use it to remove the <input type=number>
   buttons with -moz-appearance: textfield and so on), and the
   alternative is to implement a bunch of non-standard ::-webkit-
   pseudo-elements.

Differential Revision: https://phabricator.services.mozilla.com/D171243
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this issue Mar 2, 2023
* Remove some legacy appearance aliases that other engines don't
   implement.

 * Allow to pass with unimplemented <compat-auto> values, since per the
   spec the idea of these is to get them removed, see
   w3c/csswg-drafts#8506 for the ones we don't
   implement.

 * Also allow the `-moz-` prefix to be implemented, because we can't
   quite get rid of it (people use it to remove the <input type=number>
   buttons with -moz-appearance: textfield and so on), and the
   alternative is to implement a bunch of non-standard ::-webkit-
   pseudo-elements.

Differential Revision: https://phabricator.services.mozilla.com/D171243
@nt1m
Copy link
Member

nt1m commented Mar 2, 2023

cc @chrishtr, @smfr, does it seem sensible to drop them?

@pxlcoder, what do you think?

moz-wptsync-bot pushed a commit to web-platform-tests/wpt that referenced this issue Mar 2, 2023
* Remove some legacy appearance aliases that other engines don't
   implement.

 * Allow to pass with unimplemented <compat-auto> values, since per the
   spec the idea of these is to get them removed, see
   w3c/csswg-drafts#8506 for the ones we don't
   implement.

 * Also allow the `-moz-` prefix to be implemented, because we can't
   quite get rid of it (people use it to remove the <input type=number>
   buttons with -moz-appearance: textfield and so on), and the
   alternative is to implement a bunch of non-standard ::-webkit-
   pseudo-elements.

Differential Revision: https://phabricator.services.mozilla.com/D171243

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1695565
gecko-commit: e3553560e147b892fedd78a1e722a84f17f08b65
gecko-reviewers: boris
@atanassov atanassov added this to Overflow in March 2023 VF2F Mar 7, 2023
@zcorpan
Copy link
Member

zcorpan commented Mar 9, 2023

The reason push-button and square-button were included was that they were being used somewhat frequently:

However, the impact of dropping them is likely minimal since they only have an effect on elements that are buttons, and also aren't styled in a way that makes appearance act like none (e.g., a border is specified). That is, it would only affect a situation like:

input { appearance: none; /* basically no other styles */ }
input[type=button] { appearance: push-button; }

For slider-horizontal and slider-vertical, IIRC that was kept in as a way to not regress horizontal/vertical rendering of sliders until a better mechanism was specified for that purpose. It has an effect in Chromium and WebKit (but not in Gecko): https://software.hixie.ch/utilities/js/live-dom-viewer/saved/11364

@zcorpan
Copy link
Member

zcorpan commented Mar 9, 2023

Looks like slider-vertical was already dropped: https://drafts.csswg.org/css-ui-4/#issue-27993a83

marcoscaceres pushed a commit to web-platform-tests/wpt that referenced this issue Mar 28, 2023
* Remove some legacy appearance aliases that other engines don't
   implement.

 * Allow to pass with unimplemented <compat-auto> values, since per the
   spec the idea of these is to get them removed, see
   w3c/csswg-drafts#8506 for the ones we don't
   implement.

 * Also allow the `-moz-` prefix to be implemented, because we can't
   quite get rid of it (people use it to remove the <input type=number>
   buttons with -moz-appearance: textfield and so on), and the
   alternative is to implement a bunch of non-standard ::-webkit-
   pseudo-elements.

Differential Revision: https://phabricator.services.mozilla.com/D171243

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1695565
gecko-commit: e3553560e147b892fedd78a1e722a84f17f08b65
gecko-reviewers: boris
@css-meeting-bot
Copy link
Member

The CSS Working Group just discussed [css-ui] Consider removing slider-horizontal from <compat-auto>, and agreed to the following:

  • RESOLVED: remove slider-horizontal, square-button, and push-button from <compat-auto>; PaulG will open an issue about ARIA roles and concerns about slider-vertical and push-button
The full IRC log of that discussion <emeyer> emilio: Firefox never supported this
<emeyer> …Recently, I found three keywords where there are problems in WPT
<emeyer> …Usage is pretty low
<emeyer> …We also have no compat issues about this
<masonf> q?
<masonf> q+
<astearns> ack masonf
<emeyer> masonf: We don’t object to this
<emeyer> astearns: What are we resolving?
<emeyer> emilio: Drop slider-horizontal, square-button, and push-button
<PaulG> q+
<astearns> ack PaulG
<emeyer> PaulG: slider-vertical has native semantics around orientation
<emeyer> …If there is usage, we should communicate that ARIA values need to be used
<masonf> q?
<emeyer> emilio: Right now, the spec says it does nothing special
<emeyer> dbaron: I don’t think there a history of appearance changing accessibility rules, is there?
<emeyer> PaulG: In Chromium, (scribe got lost)
<emeyer> dbaron: I don’t think the CSS `appearance` property affect accessibility
<emeyer> PaulG: I’m looking at the demo in the issue, in Chromium, the vertical slider renders with orientation: vertical that nothing else set
<emeyer> dbaron: That’s surprising to me
<dbaron> masonf: me too (but confirm it)
<bkardell_> Is it bad? Seems good?
<emeyer> PaulG: Concern is if it’s dropped, anyone depending on that orientation needs to know they need to replace that with ARIA
<dbaron> s/rules/roles/
<emeyer> astearns: Given that usage is very low, is this a big concern?
<emeyer> PaulG: This is in no way a reason to stop, but this is a concern APA will probably voice
<masonf> q?
<emeyer> …I’m guessing where this is used, understanding of accessibility is low
<emeyer> …I’ll help smooth that over with APA, I’d just like numbers
<emeyer> masonf: We’re speaking just about slider-horizontal, yes? Not slider-vertical
<emeyer> …Is it an accessibility problem for horizontal?
<emeyer> PaulG: No, only concerned with vertical and that semantic meanings are conveyed in other ways
<emeyer> masonf: We should open an issue about vertical
<emeyer> …I think we’re okay horizontal, but need to discuss more about vertical
<emeyer> astearns: So proposed resolution is to remove slider-horizontal, square-button, and push-button
<emeyer> PaulG: I might need to check push-button
<emeyer> …Does ARIA pressed get added?
<emeyer> astearns: What if we resolve to do the removal, then Paul, can you open an issue on slider-vertical and push-button on possible ARIA concerns?
<emeyer> PaulG: Yes
<dbaron> https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/modules/accessibility/ax_slider.cc;l=47-83;drc=5a252fef36aced8857912a7eba43dad5590cb54d
<emeyer> RESOLVED: remove slider-horizontal, square-button, and push-button from <compat-auto>; PaulG will open an issue about ARIA roles and concerns about slider-vertical and push-button

@foolip
Copy link
Member

foolip commented May 10, 2023

@frivoal is this something you'll do the spec edits for? I'm asking for web-platform-tests/interop#295, but perhaps we can update the tests separately from the spec change?

@frivoal
Copy link
Collaborator

frivoal commented May 26, 2023

Sorry for being slow catching up here. The PR from @zcorpan looks great, so I went ahead and merged it.

@zcorpan
Copy link
Member

zcorpan commented May 26, 2023

Thanks @frivoal! Tests for this are at web-platform-tests/wpt#40233

@frivoal frivoal added the Tested Memory aid - issue has WPT tests label May 26, 2023
aarongable pushed a commit to chromium/chromium that referenced this issue Jun 26, 2023
More appearance keywords have become non-standard and should be
removed from the supported list [1]. First CL can be found at [2].

[1] w3c/csswg-drafts#8506 (comment)
[2] https://chromium-review.googlesource.com/c/chromium/src/+/4437611

Change-Id: Iad058cf01df2d8af25afc11b5d3fb014590d030d
Bug: 1434765
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4638559
Reviewed-by: Kent Tamura <tkent@chromium.org>
Reviewed-by: Mason Freed <masonf@chromium.org>
Commit-Queue: Di Zhang <dizhangg@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1162493}
Loirooriol pushed a commit to Loirooriol/servo that referenced this issue Nov 3, 2023
* Remove some legacy appearance aliases that other engines don't
    implement.

  * Allow to pass with unimplemented <compat-auto> values, since per the
    spec the idea of these is to get them removed, see
    w3c/csswg-drafts#8506 for the ones we don't
    implement.

  * Also allow the `-moz-` prefix to be implemented, because we can't
    quite get rid of it (people use it to remove the <input type=number>
    buttons with -moz-appearance: textfield and so on), and the
    alternative is to implement a bunch of non-standard ::-webkit-
    pseudo-elements.

Differential Revision: https://phabricator.services.mozilla.com/D171243
Loirooriol pushed a commit to Loirooriol/servo that referenced this issue Nov 3, 2023
* Remove some legacy appearance aliases that other engines don't
    implement.

  * Allow to pass with unimplemented <compat-auto> values, since per the
    spec the idea of these is to get them removed, see
    w3c/csswg-drafts#8506 for the ones we don't
    implement.

  * Also allow the `-moz-` prefix to be implemented, because we can't
    quite get rid of it (people use it to remove the <input type=number>
    buttons with -moz-appearance: textfield and so on), and the
    alternative is to implement a bunch of non-standard ::-webkit-
    pseudo-elements.

Differential Revision: https://phabricator.services.mozilla.com/D171243
Loirooriol pushed a commit to Loirooriol/servo that referenced this issue Nov 3, 2023
* Remove some legacy appearance aliases that other engines don't
    implement.

  * Allow to pass with unimplemented <compat-auto> values, since per the
    spec the idea of these is to get them removed, see
    w3c/csswg-drafts#8506 for the ones we don't
    implement.

  * Also allow the `-moz-` prefix to be implemented, because we can't
    quite get rid of it (people use it to remove the <input type=number>
    buttons with -moz-appearance: textfield and so on), and the
    alternative is to implement a bunch of non-standard ::-webkit-
    pseudo-elements.

Differential Revision: https://phabricator.services.mozilla.com/D171243
Loirooriol pushed a commit to Loirooriol/servo that referenced this issue Nov 5, 2023
* Remove some legacy appearance aliases that other engines don't
    implement.

  * Allow to pass with unimplemented <compat-auto> values, since per the
    spec the idea of these is to get them removed, see
    w3c/csswg-drafts#8506 for the ones we don't
    implement.

  * Also allow the `-moz-` prefix to be implemented, because we can't
    quite get rid of it (people use it to remove the <input type=number>
    buttons with -moz-appearance: textfield and so on), and the
    alternative is to implement a bunch of non-standard ::-webkit-
    pseudo-elements.

Differential Revision: https://phabricator.services.mozilla.com/D171243
Loirooriol pushed a commit to Loirooriol/servo that referenced this issue Nov 5, 2023
* Remove some legacy appearance aliases that other engines don't
    implement.

  * Allow to pass with unimplemented <compat-auto> values, since per the
    spec the idea of these is to get them removed, see
    w3c/csswg-drafts#8506 for the ones we don't
    implement.

  * Also allow the `-moz-` prefix to be implemented, because we can't
    quite get rid of it (people use it to remove the <input type=number>
    buttons with -moz-appearance: textfield and so on), and the
    alternative is to implement a bunch of non-standard ::-webkit-
    pseudo-elements.

Differential Revision: https://phabricator.services.mozilla.com/D171243
mrobinson pushed a commit to servo/servo that referenced this issue Nov 6, 2023
* Remove some legacy appearance aliases that other engines don't
    implement.

  * Allow to pass with unimplemented <compat-auto> values, since per the
    spec the idea of these is to get them removed, see
    w3c/csswg-drafts#8506 for the ones we don't
    implement.

  * Also allow the `-moz-` prefix to be implemented, because we can't
    quite get rid of it (people use it to remove the <input type=number>
    buttons with -moz-appearance: textfield and so on), and the
    alternative is to implement a bunch of non-standard ::-webkit-
    pseudo-elements.

Differential Revision: https://phabricator.services.mozilla.com/D171243
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Closed Accepted by CSSWG Resolution css-ui-4 Current Work Tested Memory aid - issue has WPT tests
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

9 participants