| Summary: | font-weight should always serialize as a number | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Takeshi Kurosawa <taken.spc> | ||||||||||||||||||
| Component: | CSS | Assignee: | Myles C. Maxfield <mmaxfield> | ||||||||||||||||||
| Status: | RESOLVED FIXED | ||||||||||||||||||||
| Severity: | Normal | CC: | aboxhall, andresg_22, apinheiro, bfulgham, calvaris, cfleizach, dbarton, dmazzoni, eric.carlson, esprehn+autocc, ews-watchlist, fred.wang, glenn, gsnedders, gyuyoung.kim, jcraig, jdiggs, jer.noble, koivisto, macpherson, menard, mifenton, mmaxfield, philipj, samuel_white, sergio, sime.vidas, simon.fraser, twilco.o, tyler_w, webkit-bug-importer, wenson_hsieh | ||||||||||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||||||||||
| Version: | WebKit Nightly Build | ||||||||||||||||||||
| Hardware: | Unspecified | ||||||||||||||||||||
| OS: | Unspecified | ||||||||||||||||||||
| Attachments: |
|
||||||||||||||||||||
|
Description
Takeshi Kurosawa
2020-07-11 23:16:14 PDT
This accounts for all of the failures in https://wpt.fyi/results/css/css-fonts/parsing/font-weight-computed.html?label=master&label=experimental&product=chrome&product=firefox&product=safari&aligned I presume there's some compat risk here (esp. with regards to WKWebViews and Books), even with other UAs already doing this per spec. Created attachment 408661 [details]
Patch
The patch looks pretty good, but it looks like there need to be some test updates before it can be committed. Created attachment 409107 [details]
Patch
This patch should be closer, but I'm still expecting some failures. I want to see what the results in EWS look like.
This patch has resulted in pixel test changes that I'm not sure are right. For example, look at the layout test results for ios-wk2 [1]. In the text snapshot of `editing/pasteboard/3976872.html` [2], <span>s are now being generated instead of <b>s, which in itself is not necessarily incorrect, assuming the span is styled correctly. But in the image diff [3], the result box now ends up being highlighted. This actually matches Chromium's behavior for this test. One that certainly seems incorrect, though, is `editing/pasteboard/paste-match-style-001.html`, where the image diff [4] shows a space has been added between the 'a' and the 'b' characters. The text diff [5] shows both a <b> *and* a <span> are being generated. Interestingly, neither Chromium nor Gecko render the 'b' character at all for this test. It seems like these inconsistencies are all related to usage of https://developer.mozilla.org/en-US/docs/Web/API/Document/execCommand, which is apparently deprecated. Should I just update the expected results with these new ones, or do we need to dig deeper on any of these? [1]: https://ews-build.s3-us-west-2.amazonaws.com/iOS-13-Simulator-WK2-Tests-EWS/r409107-26225/results.html [2]: https://ews-build.s3-us-west-2.amazonaws.com/iOS-13-Simulator-WK2-Tests-EWS/r409107-26225/editing/pasteboard/3976872-pretty-diff.html [3]: https://ews-build.s3-us-west-2.amazonaws.com/iOS-13-Simulator-WK2-Tests-EWS/r409107-26225/retries/editing/pasteboard/3976872-diffs.html [4]: https://ews-build.s3-us-west-2.amazonaws.com/iOS-13-Simulator-WK2-Tests-EWS/r409107-26225/retries/editing/pasteboard/paste-match-style-001-diffs.html [5]: https://ews-build.s3-us-west-2.amazonaws.com/iOS-13-Simulator-WK2-Tests-EWS/r409107-26225/editing/pasteboard/paste-match-style-001-pretty-diff.html *** Bug 228540 has been marked as a duplicate of this bug. *** This hasn't been touched in about a year, and the Assignee field is "Nobody," so if nobody minds, I'll pick this up and continue working on it. Go for it! Created attachment 438193 [details]
Patch
Created attachment 438216 [details]
Patch
Created attachment 438218 [details]
Patch
editing/mac/spelling/autocorrection-blockquote-crash.html fails for me even on a clean build, without this patch applied 🤔 Oh, it's marked as a failure in LayoutTests/platform/mac-wk2/TestExpectations HTMLElementEquivalent::valueIsPresentInStyle() / htmlElementEquivalents() needs to be updated, too. Created attachment 438235 [details]
Patch
Created attachment 438264 [details]
Patch
Committed r282545 (241743@main): <https://commits.webkit.org/241743@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 438264 [details]. This change should be present in STP 139, iOS 15.4 Beta, and macOS 12.3 Beta. |