Primary eng (and PM) emails
Summary
Remove support of -webkit-border-fit CSS property
Motivation
- it was added a long time ago (in 2007) and has not been fully implemented yet
- it complicates the code
- Safari says it's an unsupported WebKit feature (https://developer.apple.com/library/safari/documentation/AppleApplications/Reference/SafariCSSRef/Articles/StandardCSSProperties.html)
- layout tests containing it produce no difference with it removed
Compatibility Risk
None, because the property makes no visual difference.
Requesting approval to remove too?
Yes.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
Decide if your feature needs to go through this process.
- You can skip 2-5 if you’re removing a trivial feature (e.g. a quirk that is exclusive to WebKit, like RangeException).
Remove support of -webkit-border-fit CSS property.
The intent of the property is to shrink the border and background of a block to the bounding box of the line contents.
Motivation
- it's not in css3 background-and-border spec (http://www.w3.org/TR/css3-background/)
- 'border-fit' property existed in 2002 CSS 3 Border module, but neither the functionality nor the property values is related to -webkit-border-fit.
- there is few (or no) actual usages (see Compatibility Risk 1) Based on usages below)
- it complicates the rendering code and adds difficulty to refactoring
- Safari says it's an unsupported WebKit feature (https://developer.apple.com/library/safari/documentation/AppleApplications/Reference/SafariCSSRef/Articles/StandardCSSProperties.html)
Compatibility Risk
1) Based on usages
According to http://www.chromestatus.com/metrics/css/popularity#webkit-border-fit, the usage is 0.1464% which looks a bit high.
Based on code search and web search, there are mainly 2 usages:
- WebKit/Blink view-source.css
The related style rule is not used.
This usage in blink has just been removed (https://codereview.chromium.org/603153003/)
- Style applied on buttons to workaround an old bug (not reproducible now) of Safari and Chrome:
.button { ... -webkit-border-fit:lines; /* <- Safari & Google Chrome Fix */ }
Neither of the above usages is real usage, so the compatibility risk should be low.
2) Based on support of other browsers
The property doesn't have counter-parts in other browsers. The feature can be easily implemented using other standard css properties. Pages designed for all browsers are unlikely to use the property which works on Safari/Chrome only.
Requesting approval to remove too?
Yes.