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
WebKit ignores the nowrap on td nowrap="nowrap", if an absolute width is specified #4114
Conversation
Deleting a button element leaves the style inside the button element https://bugs.webkit.org/show_bug.cgi?id=94014 Reviewed by NOBODY (OOPS!). Patch Authored by - Sukolsak Sakshuwong Make the DeleteSelectionCommand save typing style only for formattable nodes according to the HTML Editing specification and match "Blink" behavior. * LayoutTests/editing/deleting/delete-button.html * LayoutTests/editing/deleting/delete-button-expected.txt * Source/WebCore/editing/DelectionSelectionCommand.cpp (WebCore::DeleteSelectionCommand::saveTypingStyleState)
EWS run on previous version of this PR (hash a4948c2) |
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 am not sure what CSSValueWebkitNowrap is used for (WhiteSpace::KHTMLNoWrap) but a simpler fix would be just to call setWhiteSpace(NoWrap) unconditionally in the adjuster.
(It's probably not super relevant anymore, but someone who knows about KHTMLNoWrap should comment on it).
a4948c2
to
3763d87
Compare
EWS run on previous version of this PR (hash 3763d87) |
I can only find two places "CSSValueWebkitNowrap" is present in "CSSPrimitiveValueMappings.h" and IMO we can remove that as well because other is about the use in "HTMLTableCellElement", which I am getting rid of with this patch. |
3763d87
to
d8d3b97
Compare
EWS run on previous version of this PR (hash d8d3b97) |
d8d3b97
to
895d58a
Compare
EWS run on previous version of this PR (hash 895d58a) |
β¦ is specified WebKit ignores the nowrap on td nowrap="nowrap", if an absolute width is specified https://bugs.webkit.org/show_bug.cgi?id=183642 Merge - https://chromium.googlesource.com/chromium/src/+/5e6c851254f90f6f495713f7248ffe9a155de413 Previously we only applied it when a <td> element had no fixed-width. This was incorrect behavior and it will align Webkit with Blink and Gecko for Web interop. * Source/WebCore/html/HTMLTableCellElement.cpp (HTMLTableCellElement::hasPresentationalHintsForAttribute) - Update nowrap Attribute to respect CSSValueNowrap rather than CSSValueWebkitNowrap * Source/WebCore/style/StyleAdjuster.cpp (Adjuster:adjust) - Removed logic about td tag only accepting wrap for Fixed Width * LayoutTests/imported/w3c/web-platform-tests/quirks/table-cell-nowrap-minimum-width-calculation-expected.txt - Updated Test Expectations * LayoutTests/platform/gtk/fast/table/003-expected.png - Updated Test Expectations * LayoutTests/platform/gtk/fast/table/003-expected.txt - Updated Test Expectations * LayoutTests/platform/gtk/fast/tables/021-expected.png - Updated Test Expectations * LayoutTests/platform/glib/fast/tables/021-expected.txt - Updated Test Expectations * LayoutTests/platform/gtk/fast/table/rowspan-paint-order-vertical-expected.png - Updated Test Expectations * LayoutTests/platform/gtk/fast/table/rowspan-paint-order-vertical-expected.txt - Updated Test Expectations * LayoutTests/platform/gtk/tables/mozilla/bugs/bug57828-expected.png - Updated Test Expectations * LayoutTests/platform/gtk/tables/mozilla/bugs/bug78162-expected.png - Updated Test Expectations * LayoutTests/platform/gtk/tables/mozilla/bugs/bug78162-expected.txt - Updated Test Expectations * LayoutTests/platform/gtk/tables/mozilla/bugs/bug92143-expected.txt - Updated Test Expectations * LayoutTests/platform/ios/fast/table/021-expected.txt - Updated Test Expectations * LayoutTests/platform/ios/fast/table/rowspan-paint-order-vertical-expected.txt - Updated Test Expectations * LayoutTests/platform/ios/tables/mozilla/bugs/bug57828-expected.txt - Updated Test Expectations * LayoutTests/platform/ios/tables/mozilla/bugs/bug78162-expected.txt - Updated Tests Expectations * LayoutTests/platform/ios/tables/mozilla/bugs/bug92143-expected.txt - Updated Tests Expectations * LayoutTests/platform/mac/fast/table/003-expected.png - Updated Tests Expectations * LayoutTests/platform/mac/fast/table/003-expected.txt - Updated Test Expectations * LayoutTests/platform/mac/fast/table/021-expected.png - Updated Test Expectations * LayoutTests/platform/mac/fast/table/021-expected.txt - Updated Test Expectations * LayoutTests/platform/mac/fast/tables/mozilla/bugs/bug57828-expected.png - Updated Test Expectations * LayoutTests/platform/mac/fast/tables/mozilla/bugs/bug57828-expected.txt - Updated Test Expectations * LayoutTests/platform/mac/fast/tables/mozilla/bugs/bug78162-expected.png - Updated Test Expectations * LayoutTests/platform/mac/fast/tables/mozilla/bugs/bug78162-expected.txt - Updated Test Expectations * LayoutTests/platform/mac/fast/tables/mozilla/bugs/bug92143-expected.png - Updated Test Expectations * LayoutTests/platform/mac/fast/tables/mozilla/bugs/bug92143-expected.txt - Updated Test Expectations * LayoutTests/platform/mac/fast/table/rowspan-paint-order-vertical-expected.png - Updated Test Expectations * LayoutTests/platform/mac/fast/table/rowspan-paint-order-vertical-expected.txt - Updated Test Expectations * LayoutTests/platform/glib/mozilla/bugs/bug57828-expected.txt - Updated Test Expectations
895d58a
to
e990887
Compare
e990887
π π§ͺ win