WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
140801
Import fast/css/font-shorthand-line-height.html layout test from Blink
https://bugs.webkit.org/show_bug.cgi?id=140801
Summary
Import fast/css/font-shorthand-line-height.html layout test from Blink
Chris Dumez
Reported
2015-01-22 16:37:42 PST
Import fast/css/font-shorthand-line-height.html layout test from Blink to get better test coverage for 'line-height' font shorthands cascades. I am working on expanding the font shorthand at parsing time (like other properties) via
Bug 140577
and I want to make sure I don't break line-height in the process.
Attachments
Patch
(3.58 KB, patch)
2015-01-22 16:40 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2015-01-22 16:40:12 PST
Created
attachment 245184
[details]
Patch
Andreas Kling
Comment 2
2015-01-22 17:35:11 PST
Comment on
attachment 245184
[details]
Patch Nice!
WebKit Commit Bot
Comment 3
2015-01-22 18:17:31 PST
Comment on
attachment 245184
[details]
Patch Clearing flags on attachment: 245184 Committed
r178976
: <
http://trac.webkit.org/changeset/178976
>
WebKit Commit Bot
Comment 4
2015-01-22 18:17:39 PST
All reviewed patches have been landed. Closing bug.
Chris Dumez
Comment 5
2015-01-22 20:59:50 PST
Comment on
attachment 245184
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=245184&action=review
> LayoutTests/fast/css/font-shorthand-line-height.html:27 > + shouldBe("lineHeight(system_font_2)", "'100px'");
If I understand the specification correctly (
http://dev.w3.org/csswg/css-fonts/#font-prop
), this is wrong: 1. "All subproperties of the ‘font’ property are first reset to their initial values. Then, those properties that are given explicit values in the ‘font’ shorthand are set to those values." 2. "system fonts may only be set as a whole; that is, the font family, size, weight, style, etc. are all set at the same time." So the line-height here should have been reset and the result should be "normal", not "100px". Chrome gives "normal" here. I will take a look to fix this but please let me know if you think I misunderstood the spec.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug