Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove draggable elements default presentational CSS of -webkit-user-…
…select: none https://bugs.webkit.org/show_bug.cgi?id=234716 Reviewed by Tim Nguyen. This behaves similar to both Firefox and Chromium. Draggable elements do not make them un-selectable. When selected, dragging still takes priority also like other browsers. * LayoutTests/fast/html/find-selects-draggable-element-expected.txt: Added. * LayoutTests/fast/html/find-selects-draggable-element.html: Added. * Source/WebCore/html/HTMLElement.cpp: (WebCore::HTMLElement::collectPresentationalHintsForAttribute): Canonical link: https://commits.webkit.org/264448@main
- Loading branch information
Showing
5 changed files
with
20 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
Test changing style with draggable text. The test passes if WebKit doesn't crash or hit an assertiona | ||
Test changing style with draggable text. The test passes if WebKit doesn't crash or hit an assertion | ||
|
||
a | ||
a |
2 changes: 2 additions & 0 deletions
2
LayoutTests/fast/html/find-selects-draggable-element-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
PASS window.getSelection().toString() == 'Something' is true | ||
Something |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE html> | ||
<head> | ||
<script src="../../resources/js-test-pre.js"></script> | ||
<script> | ||
function findText() { | ||
window.find("Something"); | ||
shouldBeTrue("window.getSelection().toString() == 'Something'"); | ||
} | ||
</script> | ||
<body onload="findText()"> | ||
<p draggable="true">Something</p> | ||
</body> |
1 change: 0 additions & 1 deletion
1
LayoutTests/fast/inline/contenteditable-with-leading-whitespace-crash-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
PASS if no crash. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters