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

Remove hspace and vspace attributes from input field #8083

Merged

Conversation

karlcow
Copy link
Member

@karlcow karlcow commented Dec 28, 2022

9065879

Remove hspace and vspace attributes from input field
https://bugs.webkit.org/show_bug.cgi?id=244279
rdar://99356718

Reviewed by Antti Koivisto.

Removes hspace and vspace attribute mapping to CSS, but keeps it
in the case of input of type=image as mandated by the WPT test in
http://wpt.live/html/rendering/unmapped-attributes.html
but still passing
http://wpt.live/html/rendering/dimension-attributes.html

* LayoutTests/imported/w3c/web-platform-tests/html/rendering/unmapped-attributes-expected.txt:
* Source/WebCore/html/HTMLInputElement.cpp:
(WebCore::HTMLInputElement::collectPresentationalHintsForAttribute):

Canonical link: https://commits.webkit.org/258360@main

fd22a4c

Misc iOS, tvOS & watchOS macOS Linux Windows
βœ… πŸ§ͺ style βœ… πŸ›  ios βœ… πŸ›  mac βœ… πŸ›  wpe βœ… πŸ›  πŸ§ͺ win
βœ… πŸ§ͺ bindings βœ… πŸ›  ios-sim βœ… πŸ›  mac-AS-debug βœ… πŸ›  gtk βœ… πŸ›  wincairo
βœ… πŸ§ͺ webkitperl βœ… πŸ§ͺ ios-wk2 βœ… πŸ§ͺ api-mac   πŸ§ͺ gtk-wk2
  πŸ§ͺ api-ios βœ… πŸ§ͺ mac-wk1 βœ… πŸ§ͺ api-gtk
βœ… πŸ›  tv βœ… πŸ§ͺ mac-wk2
βœ… πŸ›  tv-sim   πŸ§ͺ mac-AS-debug-wk2
βœ… πŸ›  watch βœ… πŸ§ͺ mac-wk2-stress
βœ… πŸ›  watch-sim
βœ… πŸ›  πŸ§ͺ unsafe-merge

@karlcow karlcow self-assigned this Dec 28, 2022
@karlcow karlcow added the Forms For bugs specific to form elements (checkboxes, buttons, text fields, etc.) label Dec 28, 2022
@Ahmad-S792
Copy link
Contributor

@karlcow - Sweet!! Win Win!!!

Source/WebCore/html/HTMLInputElement.cpp Outdated Show resolved Hide resolved
@karlcow
Copy link
Member Author

karlcow commented Dec 30, 2022

@anttijk Next step. merge-queue. πŸ™

@graouts graouts added the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Dec 30, 2022
https://bugs.webkit.org/show_bug.cgi?id=244279
rdar://99356718

Reviewed by Antti Koivisto.

Removes hspace and vspace attribute mapping to CSS, but keeps it
in the case of input of type=image as mandated by the WPT test in
http://wpt.live/html/rendering/unmapped-attributes.html
but still passing
http://wpt.live/html/rendering/dimension-attributes.html

* LayoutTests/imported/w3c/web-platform-tests/html/rendering/unmapped-attributes-expected.txt:
* Source/WebCore/html/HTMLInputElement.cpp:
(WebCore::HTMLInputElement::collectPresentationalHintsForAttribute):

Canonical link: https://commits.webkit.org/258360@main
@webkit-commit-queue
Copy link
Collaborator

Committed 258360@main (9065879): https://commits.webkit.org/258360@main

Reviewed commits have been landed. Closing PR #8083 and removing active labels.

@webkit-commit-queue webkit-commit-queue merged commit 9065879 into WebKit:main Dec 30, 2022
@webkit-commit-queue webkit-commit-queue removed the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Dec 30, 2022
Comment on lines 684 to +688
} else if (name == hspaceAttr) {
if (isImageButton()) {
addHTMLLengthToStyle(style, CSSPropertyMarginLeft, value);
addHTMLLengthToStyle(style, CSSPropertyMarginRight, value);
}
Copy link
Member

Choose a reason for hiding this comment

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

can the indentation be fixed up?

Copy link
Member Author

Choose a reason for hiding this comment

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

ooopsie. @nt1m what's the best way to do that usually. Open a new webkit bug with a fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Forms For bugs specific to form elements (checkboxes, buttons, text fields, etc.)
Projects
None yet
7 participants