Skip to content

Unprefix -webkit-user-select - #38619

Open
AlexsanderDamaceno wants to merge 1 commit into
WebKit:mainfrom
AlexsanderDamaceno:unprefix-webkit-user-select
Open

AlexsanderDamaceno wants to merge 1 commit into
WebKit:mainfrom
AlexsanderDamaceno:unprefix-webkit-user-select

Conversation

@AlexsanderDamaceno

@AlexsanderDamaceno AlexsanderDamaceno commented Jan 7, 2025 •

Copy link
Copy Markdown
Contributor

f7a9411

Unprefix -webkit-user-select
https://bugs.webkit.org/show_bug.cgi?id=208677

Reviewed by NOBODY (OOPS!).

Unprefix -webkit-user-select and make it an alias for user-select.

* LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/user-select-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-ui/parsing/user-select-computed-expected.txt:
* Source/WebCore/animation/CSSPropertyAnimation.cpp:
(WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
* Source/WebCore/css/CSSProperties.json:
* Source/WebCore/css/ComputedStyleExtractor.cpp:
(WebCore::ComputedStyleExtractor::valueForPropertyInStyle const):
* Source/WebCore/dom/ImageOverlay.cpp:
(WebCore::ImageOverlay::updateSubtree):
(WebCore::ImageOverlay::updateWithTextRecognitionResult):
* LayoutTests/editing/selection/user-select-js-property-expected.txt:
* LayoutTests/fast/css/getComputedStyle/computed-style-expected.txt:
* LayoutTests/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-revert-layer-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-ui/inheritance-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-ui/parsing/user-select-valid-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-ui/user-select-inheritance-expected.txt:
* LayoutTests/platform/glib/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
* LayoutTests/svg/css/getComputedStyle-basic-expected.txt:

f7a9411

Misc iOS, visionOS, tvOS & watchOS macOS Linux Windows
✅ 🧪 style ✅ 🛠 ios ✅ 🛠 mac ✅ 🛠 wpe ✅ 🛠 win
✅ 🧪 bindings ✅ 🛠 ios-sim ✅ 🛠 mac-AS-debug ✅ 🧪 wpe-wk2 ✅ 🧪 win-tests
✅ 🧪 webkitperl ✅ 🧪 ios-wk2 ✅ 🧪 api-mac ✅ 🧪 api-wpe
✅ 🧪 ios-wk2-wpt ❌ 🧪 mac-wk1 ✅ 🛠 wpe-cairo
✅ 🧪 api-ios ❌ 🧪 mac-wk2 ✅ 🛠 gtk
✅ 🛠 vision ❌ 🧪 mac-AS-debug-wk2 ✅ 🧪 gtk-wk2
✅ 🛠 vision-sim ✅ 🧪 mac-wk2-stress loading 🧪 api-gtk
✅ 🧪 vision-wk2 ❌ 🧪 mac-intel-wk2 ✅ 🛠 playstation
✅ 🛠 tv ✅ 🛠 mac-safer-cpp
✅ 🛠 tv-sim
✅ 🛠 watch
✅ 🛠 watch-sim

@AlexsanderDamaceno AlexsanderDamaceno self-assigned this Jan 7, 2025
@AlexsanderDamaceno AlexsanderDamaceno added the CSS Cascading Style Sheets implementation label Jan 7, 2025

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This should be moved to between CSSPropertyPage and CSSPropertyScrollMargin.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

user-select should be discretely animatable fwiw: https://drafts.csswg.org/css-ui/#content-selection

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hm... this behavior discrepancy is a bit concerning. We should figure out if we can fix this before unprefixing the property.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I agree, we should try to fix it first. I started here, but never got around to finishing it: #36579

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@nt1m you would like to finish it? or could I try modify the pr ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

As this fail happens with the prefixed property, could we not work on unprefix this first and after work on this missing parameter?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Feel free to take over the PR if you wish.

As this fail happens with the prefixed property, could we not work on unprefix this first and after work on this missing parameter?

I tried a first time, and I had to revert because of bug 242006 wasn't fixed, and that broke outlook.

@AlexsanderDamaceno
AlexsanderDamaceno force-pushed the unprefix-webkit-user-select branch from 15921cd to 8fa57c0 Compare January 7, 2025 04:18
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Jan 7, 2025
https://bugs.webkit.org/show_bug.cgi?id=208677

Reviewed by NOBODY (OOPS!).

Unprefix -webkit-user-select and make it an alias for user-select.

* LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/user-select-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-ui/parsing/user-select-computed-expected.txt:
* Source/WebCore/animation/CSSPropertyAnimation.cpp:
(WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
* Source/WebCore/css/CSSProperties.json:
* Source/WebCore/css/ComputedStyleExtractor.cpp:
(WebCore::ComputedStyleExtractor::valueForPropertyInStyle const):
* Source/WebCore/dom/ImageOverlay.cpp:
(WebCore::ImageOverlay::updateSubtree):
(WebCore::ImageOverlay::updateWithTextRecognitionResult):
* LayoutTests/editing/selection/user-select-js-property-expected.txt:
* LayoutTests/fast/css/getComputedStyle/computed-style-expected.txt:
* LayoutTests/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-revert-layer-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-ui/inheritance-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-ui/parsing/user-select-valid-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-ui/user-select-inheritance-expected.txt:
* LayoutTests/platform/glib/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
* LayoutTests/svg/css/getComputedStyle-basic-expected.txt:
@AlexsanderDamaceno AlexsanderDamaceno removed the merging-blocked Applied to prevent a change from being merged label Jan 7, 2025
@AlexsanderDamaceno
AlexsanderDamaceno force-pushed the unprefix-webkit-user-select branch from 8fa57c0 to f7a9411 Compare January 7, 2025 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CSS Cascading Style Sheets implementation merging-blocked Applied to prevent a change from being merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants