Some preliminary changes before making vertical-align a shorthand.
Categories
(Core :: Layout, task, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox148 | --- | fixed |
People
(Reporter: emilio, Assigned: sajidanwar)
References
Details
Attachments
(4 external files)
| Assignee | ||
Comment 1•10 months ago
|
||
These values were moved to baseline-shift in https://github.com/w3c/csswg-drafts/issues/5180.
Updated•10 months ago
|
| Assignee | ||
Comment 2•10 months ago
|
||
| Assignee | ||
Comment 6•10 months ago
|
||
The CSS Text specification says that text shaping should be broken if
the vertical-align is not baseline. This WPT treated a 0 value as
separate from baseline, but the CSS 2 specification makes clear that a
value of 0 is equivalent to baseline, so text shaping shouldn't be
broken in this case.
Furthermore, the CSS Inline Layout Model Level 3 makes it clear that not
breaking is the correct behavior. With the introduction of the shorthand
syntax, vertical-align: 0 is equivalent to the initial value of
baseline, since 0 is the initial value of baseline-shift. So I've
modified this test to use a non-initial baseline-shift length to test
the shaping behavior.
Related clarification issue filed to the CSS Working Group:
https://github.com/w3c/csswg-drafts/issues/13277
Comment 8•10 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/93184ae4a914
https://hg.mozilla.org/mozilla-central/rev/4d90f539da31
https://hg.mozilla.org/mozilla-central/rev/346397b33bb9
| Assignee | ||
Comment 9•10 months ago
|
||
| Assignee | ||
Updated•10 months ago
|
Updated•10 months ago
|
Comment 11•10 months ago
|
||
Comment 12•10 months ago
|
||
Comment 13•10 months ago
•
|
||
Backed out for causing wpt failures.
- Backout link
- Push with failures
- Failure Log
- Failure Log @system-color-support.html
| Assignee | ||
Comment 14•10 months ago
|
||
Found the cause of the issue — in nsGenericHTMLElement.cpp, the parse table for <table> element's align attribute includes "justify" as a valid value, but then doesn't do anything with it in HTMLTableElement.cpp when mapping it to CSS properties. This matches the HTML 4 specification which only allows "left"/"right"/"center".
When I refactored this out in my change, I kept basically the same structure as before where I parsed "justify" but only handled "left"/"right"/"center" in a switch. Except I added the unreachable assert to the default branch, which caused it to crash on "justify". Since this value is invalid and unused today, I'll remove it from the parse table.
No idea about the system-color-support.html failure. Suspect it must be intermittent or something, I can't repro and my change has nothing to do with colors.
| Assignee | ||
Comment 15•10 months ago
|
||
Published a new revision of the patch to fix the failing WPTs. Here's a new try for this change which confirms that the WPTs are no longer failing: https://treeherder.mozilla.org/jobs?repo=try&revision=801710ab6ec4a463d16facda9b9027f5258329c5
The system-color-support.html failure is still here, but it definitely appears unrelated. I can see the same failure in a completely separate autoland push after the revert of my change already went through.
Comment 16•10 months ago
|
||
Comment 17•10 months ago
|
||
| bugherder | ||
Updated•10 months ago
|
Description
•