border-fit-adjust should happen at layout time rather than paint time. When the border-fit-adjusted box is right-aligned but contains left-aligned text, the paint time hack chops off the right side of the box correctly but then doesn't shift the smaller box to the right. We basically need to genuinely shrink the box during layout so that cases like this work.
Created attachment 192024 [details]
Comment on attachment 192024 [details]
View in context: https://bugs.webkit.org/attachment.cgi?id=192024&action=review
> + layoutBlock(false);
Fixed in r145100.
Hi, this broke
on mac and windows.
Test Expectations added to get our EWS going again.
Reopening bug until the tests can be reenabled.
r145139 fixed one of the tests. See bug 111776.
I no longer see border-fit-lines.html failing on Windows.