ASSIGNED Bug 175784
[css-pseudo-4] Implement ::spelling-error and ::grammar-error
https://bugs.webkit.org/show_bug.cgi?id=175784
Summary [css-pseudo-4] Implement ::spelling-error and ::grammar-error
Daniel Bates
Reported 2017-08-21 14:27:37 PDT
Implement pseudo elements spelling-error and grammar-error from <https://drafts.csswg.org/css-pseudo-4/> to allow a person to stylize the appearance of spelling and grammar errors, respectively.
Attachments
Work-in-progress (32.31 KB, patch)
2017-08-21 14:29 PDT, Daniel Bates
buildbot: commit-queue-
Archive of layout-test-results from ews106 for mac-elcapitan-wk2 (1.24 MB, application/zip)
2017-08-21 15:55 PDT, Build Bot
no flags
Archive of layout-test-results from ews101 for mac-elcapitan (1.11 MB, application/zip)
2017-08-21 15:57 PDT, Build Bot
no flags
Archive of layout-test-results from ews113 for mac-elcapitan (1.90 MB, application/zip)
2017-08-21 16:01 PDT, Build Bot
no flags
Archive of layout-test-results from ews123 for ios-simulator-wk2 (1.07 MB, application/zip)
2017-08-21 16:21 PDT, Build Bot
no flags
Work-in-progress patch (88.35 KB, patch)
2017-09-05 09:40 PDT, Daniel Bates
no flags
Work-in-progress patch (74.54 KB, patch)
2018-03-19 11:50 PDT, Daniel Bates
ews-watchlist: commit-queue-
Archive of layout-test-results from ews200 for win-future (13.10 MB, application/zip)
2018-04-02 14:27 PDT, EWS Watchlist
no flags
Work-in-progress patch (76.38 KB, patch)
2018-08-10 14:31 PDT, Daniel Bates
no flags
Simple test (501 bytes, text/html)
2018-08-10 14:36 PDT, Daniel Bates
no flags
Daniel Bates
Comment 1 2017-08-21 14:29:51 PDT
Created attachment 318674 [details] Work-in-progress
Build Bot
Comment 2 2017-08-21 15:55:01 PDT Comment hidden (obsolete)
Build Bot
Comment 3 2017-08-21 15:55:02 PDT Comment hidden (obsolete)
Build Bot
Comment 4 2017-08-21 15:57:37 PDT Comment hidden (obsolete)
Build Bot
Comment 5 2017-08-21 15:57:38 PDT Comment hidden (obsolete)
Build Bot
Comment 6 2017-08-21 16:01:03 PDT Comment hidden (obsolete)
Build Bot
Comment 7 2017-08-21 16:01:05 PDT Comment hidden (obsolete)
Build Bot
Comment 8 2017-08-21 16:21:43 PDT Comment hidden (obsolete)
Build Bot
Comment 9 2017-08-21 16:21:45 PDT Comment hidden (obsolete)
Daniel Bates
Comment 10 2017-09-05 09:40:12 PDT
Created attachment 319907 [details] Work-in-progress patch The painting approach in this patch is wrong. We need to account for spelling and grammar errors that can overlap. This is demonstrated by the failure of the included test LayoutTests/fast/css/spelling-and-grammar-errors-overlap.html.
Daniel Bates
Comment 11 2018-03-19 11:50:54 PDT
Created attachment 336064 [details] Work-in-progress patch
EWS Watchlist
Comment 12 2018-03-19 11:52:47 PDT
Attachment 336064 [details] did not pass style-queue: ERROR: Source/WebCore/rendering/InlineTextBox.cpp:575: More than one command on the same line [whitespace/newline] [4] ERROR: Source/WebCore/rendering/InlineTextBox.cpp:665: More than one command on the same line [whitespace/newline] [4] ERROR: Source/WebCore/rendering/InlineTextBox.cpp:667: More than one command on the same line [whitespace/newline] [4] Total errors found: 3 in 39 files If any of these errors are false positives, please file a bug against check-webkit-style.
EWS Watchlist
Comment 13 2018-04-02 14:27:22 PDT
Comment on attachment 336064 [details] Work-in-progress patch Attachment 336064 [details] did not pass win-ews (win): Output: http://webkit-queues.webkit.org/results/7182260 New failing tests: fast/selectors/text-field-selection-stroke-color.html fast/css/spelling-and-grammar-error-pseudo-elements-appearance.html http/wpt/css/css-pseudo-4/spelling-error-001.html fast/css/grammar-error-pseudo-element.html fast/css/spelling-and-grammar-error-pseudo-elements-vertical-appearance.html fast/css/paint-non-misspelled-text-between-spelling-errors-when-text-wraps.html imported/blink/svg/text/selection-partial-gradient.html fast/css/spelling-and-grammar-error-pseudo-elements-cursor.html fast/css/spelling-and-grammar-errors-overlap.html
EWS Watchlist
Comment 14 2018-04-02 14:27:35 PDT
Created attachment 337030 [details] Archive of layout-test-results from ews200 for win-future The attached test failures were seen while running run-webkit-tests on the win-ews. Bot: ews200 Port: win-future Platform: CYGWIN_NT-6.1-2.9.0-0.318-5-3-x86_64-64bit
Daniel Bates
Comment 15 2018-08-10 14:31:54 PDT
Created attachment 346924 [details] Work-in-progress patch Rebased patch and wired it up so that we paint background and decorations for spelling errors and grammar errors. I need to fix up the style computation so that styles are collected with respect to intersecting pseudo elements.
Daniel Bates
Comment 16 2018-08-10 14:36:47 PDT
Created attachment 346925 [details] Simple test
Note You need to log in before you can comment on or make changes to this bug.