Skip to content

Conversation

@frivoal
Copy link
Collaborator

@frivoal frivoal commented Nov 16, 2017

This is a series of patches to apply the lessons learned in #1796 and sub-issues.

The overarching theme is to remove contradictions and ambiguities from CSS2 about line-height and to align with implementations.

I will be submitting a corresponding test pull request shortly, and cross link it with this one when I'm done.

Includes a "MAY" allowing UAs to use different font metrics for
line-height:normal vs other values. This should be clarified later and
turned into a MUST one way or the other to make sure all browsers
agree, but for now it seems that at least Gecko may need this (See
w3c#1802 (comment))

Closes w3c#1802
The previous prose allowed for variations not used in actual
implementations. Since there is interoperability, the spec should align.

Closes w3c#1804
Final tweaks about line-height.
Closes the w3c#1796 series.
frivoal added a commit to frivoal/wpt that referenced this pull request Nov 27, 2017
These match with the spec changes in w3c/csswg-drafts#1993
regarding the line-height property.

The odd numbering starting at 201 rather that 001 is to avoid clashing
with existing similarly named tests.
frivoal added a commit to frivoal/wpt that referenced this pull request Nov 27, 2017
These match with the spec changes in w3c/csswg-drafts#1993
regarding the height of the content area of inline boxes.
frivoal added a commit to frivoal/wpt that referenced this pull request Nov 27, 2017
These test whether the the ex and ch units correctly depend on the first
font **that contains U+0020**, rather than the first font at all.

This matches the resolution from
w3c/csswg-drafts#1765,
and the spec pull request in w3c/csswg-drafts#1993
frivoal added a commit to frivoal/wpt that referenced this pull request Nov 27, 2017
These test whether the line-height calculations define in CSS2.1
correctly depend on the first font **that contains U+0020**,
rather than the first font at all.

This matches the resolution from
w3c/csswg-drafts#1798,
and the spec pull request in w3c/csswg-drafts#1993
frivoal added a commit to frivoal/wpt that referenced this pull request Nov 27, 2017
This tests whether the inline box content height calculations defined in
CSS2.1 correctly depend on the first font **that contains U+0020**,
rather than the first font at all.

This matches the resolution from
w3c/csswg-drafts#1798,
and the spec pull request in w3c/csswg-drafts#1993
svgeesus added a commit to web-platform-tests/wpt that referenced this pull request Dec 1, 2017
@frivoal
Copy link
Collaborator Author

frivoal commented Dec 4, 2017

Copy link
Contributor

@svgeesus svgeesus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes to Fonts 3 and Fonts 4 seem good to me. It is odd to edit both Fonts.src.html and Fonts.src.html as the latter is generated from the former; harmless though.

The changes section in Fonts.src.html needs to be updated to note this change.

I'm commenting rather than approving because I lost track of which spec in which directory we are editing for CSS 2.1 second edition or 2.2 or whatever we are calling the one with actual changes and not just errata; so could someone else please check that part.

Edit: ok LGTM

@frivoal
Copy link
Collaborator Author

frivoal commented Dec 6, 2017 via email

@svgeesus svgeesus merged commit 8d0ce56 into w3c:master Dec 6, 2017
@frivoal frivoal deleted the line-height-fixes branch February 16, 2018 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants