Summary: | Support the `x` resolution unit | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Sam Sneddon [:gsnedders] <gsnedders> | ||||
Component: | CSS | Assignee: | Sam Sneddon [:gsnedders] <gsnedders> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | darin, simon.fraser, webkit-bug-importer | ||||
Priority: | P2 | Keywords: | InRadar | ||||
Version: | WebKit Local Build | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
See Also: | https://bugs.webkit.org/show_bug.cgi?id=204276 | ||||||
Bug Depends on: | |||||||
Bug Blocks: | 78087, 233651 | ||||||
Attachments: |
|
Description
Sam Sneddon [:gsnedders]
2021-09-01 16:31:41 PDT
Created attachment 437335 [details] Patch This might depend on bug 229776, not quite sure if it'll apply cleanly without Ah yes, the updates to LayoutTests/imported/w3c/web-platform-tests/css/mediaqueries/test_media_queries-expected.txt depend on bug 229776. Could in principle land this without, but the gain is much smaller. Committed r282396 (241657@main): <https://commits.webkit.org/241657@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 437335 [details]. Comment on attachment 437335 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=437335&action=review > Source/WebCore/css/DeprecatedCSSOMPrimitiveValue.cpp:94 > + case CSSUnitType::CSS_X: return 37; Please don’t add this. We don’t need to expose modern units in the legacy CSS primitive value object model. Also, this patch has no test coverage for this. Just return CSS_UNKNOWN for tis case. If you have a different strategy in mind, please add new test cases demonstrating what we intend, and consider adding a constant to the IDL file. > Source/WebCore/css/DeprecatedCSSOMPrimitiveValue.cpp:136 > + case 37: return m_value->getFloatValue(CSSUnitType::CSS_X); Please don’t add this. Same reason as above. (In reply to Darin Adler from comment #5) > Comment on attachment 437335 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=437335&action=review > > > Source/WebCore/css/DeprecatedCSSOMPrimitiveValue.cpp:94 > > + case CSSUnitType::CSS_X: return 37; > > Please don’t add this. We don’t need to expose modern units in the legacy > CSS primitive value object model. Also, this patch has no test coverage for > this. Just return CSS_UNKNOWN for tis case. > > If you have a different strategy in mind, please add new test cases > demonstrating what we intend, and consider adding a constant to the IDL file. > > > Source/WebCore/css/DeprecatedCSSOMPrimitiveValue.cpp:136 > > + case 37: return m_value->getFloatValue(CSSUnitType::CSS_X); > > Please don’t add this. Same reason as above. These comments will be addressed in Bug 233651. |