Bug 240341
Summary: | Turn legacy properties that share a computed style into aliases or shorthands | ||
---|---|---|---|
Product: | WebKit | Reporter: | Oriol Brufau <obrufau> |
Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | ntim, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Bug Depends on: | 104805, 166782, 197656, 239808, 243562 | ||
Bug Blocks: |
Oriol Brufau
Currently, there are 8 pairs of properties that share a computed style:
* background-clip, -webkit-background-clip
* background-origin, -webkit-background-origin
* background-size, -webkit-background-size
* box-shadow, -webkit-box-shadow
* mask-clip, -webkit-mask-clip
* mask-composite, -webkit-mask-composite
* mask-mode, -webkit-mask-source-type
* text-combine-upright, -webkit-text-combine
This is a non-standard hack. CSS Cascade defines 2 standard ways: https://www.w3.org/TR/css-cascade-5/#aliasing
* legacy name aliases, for properties with the same exact syntax
* legacy shorthands, for properties with different syntax
So the -webkit- properties above should be turned into aliases or shorthands.
The current hack is more likely to break things, e.g. revert-layer was broken before bug 238125, and CSSOM is still broken (bug 238874).
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Tim Nguyen (:ntim)
Bug 104805 is an example of legacy shorthand.
Radar WebKit Bug Importer
<rdar://problem/93572921>
Oriol Brufau
This has been done, see bug 277623 comment 0
> The "related-property" mechanism has no clients left