-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attachment: Use opaque background color to ensure readability
https://bugs.webkit.org/show_bug.cgi?id=267253 rdar://117749005 Reviewed by Tim Nguyen. The system colors used for the attachment background are very transparent, which could render the attachment contents less readable if whatever is under the attachment is of a similar color as the attachment text. This issue can be prevented by making the background fully opaque. The original transparent color has been moved to a new child div. * LayoutTests/fast/attachment/mac/wide-attachment-image-controls-basic-expected.txt: * LayoutTests/platform/ios-wk2/fast/attachment/cocoa/wide-attachment-rendering-expected.txt: * LayoutTests/platform/mac-wk2/fast/attachment/cocoa/wide-attachment-rendering-expected.txt: Removed. * LayoutTests/platform/mac/fast/attachment/cocoa/wide-attachment-rendering-expected.txt: * Source/WebCore/html/HTMLAttachmentElement.cpp: (WebCore::attachmentBackgroundIdentifier): (WebCore::HTMLAttachmentElement::ensureWideLayoutShadowTree): * Source/WebCore/html/shadow/attachmentElementShadow.css: (div#attachment-container): (div#attachment-background): Canonical link: https://commits.webkit.org/273642@main
- Loading branch information
Showing
6 changed files
with
208 additions
and
315 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
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
147 changes: 0 additions & 147 deletions
147
LayoutTests/platform/mac-wk2/fast/attachment/cocoa/wide-attachment-rendering-expected.txt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.