Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
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
1 parent
5290364
commit 57717fd
Showing
2 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters