This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse the repository at this point in the history
'hr' with width as 0 or 0px get 1px
https://bugs.webkit.org/show_bug.cgi?id=259620 Reviewed by Simon Fraser. Prior to this patch, WebKit used to return 1px as width length even if it is configured as `hr width=0` or `hr width=0px`, which is not correct. Only Gecko / Firefox, return expected '0' properly. This patch will align WebKit with Gecko / Firefox and correctly return 0px for above cases. * Source/WebCore/html/HTMLHRElement.cpp: (HTMLHRElement::collectPresentationalHintsForAttribute): For 'widthAttr' return 0px instead of 1px * LayoutTests/imported/w3c/web-platform-tests/html/rendering/dimension-attributes-expected.txt: Rebaselined Canonical link: https://commits.webkit.org/266418@main
- Loading branch information
Showing 2 changed files with 8 additions and 8 deletions.