Closed
Bug 1038929
Opened 11 years ago
Closed 11 years ago
Add Mochitests for CSS 2.1 spec section 9.7
Categories
(Core :: CSS Parsing and Computation, defect)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
mozilla34
People
(Reporter: sgbowen8, Assigned: sgbowen8)
References
()
Details
Attachments
(1 file, 1 obsolete file)
4.59 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
Section 9.7 of the spec for 2.1 indicates that display values must be set as shown in a table whenever position is absolute/fixed or float is left/right. We don't currently have a mochitest to ensure this happens correctly.
bz: As far as I can gather from your comment in bug 1021952, you think the row of the table for "other/same as specified" should be handled on a case-by-case basis, depending on the spec for the value?
In the case of ruby, this is currently unclear, but you think it should be block, correct?
I see no way around hardcoding a mapping from display values to what they should be converted to on float/position. If new display values are added, I can make it fail, so the person knows to update the test...is this okay?
Flags: needinfo?(bzbarsky)
![]() |
||
Comment 2•11 years ago
|
||
> you think the row of the table for "other/same as specified" should be handled on a
> case-by-case basis, depending on the spec for the value?
In the spec, yes.
> In the case of ruby, this is currently unclear, but you think it should be block, correct?
Modulo the good point Tab raised in the www-style thread....
> I see no way around hardcoding a mapping from display values to what they should be
> converted to on float/position.
Indeed.
> If new display values are added, I can make it fail, so the person knows to update the
> test...is this okay?
Yes, that's perfect.
Flags: needinfo?(bzbarsky)
This should do it, assuming I understand everything correctly. The test passes for me locally.
Attachment #8457430 -
Flags: review?(bzbarsky)
(assuming I remember to qrefresh the patch :) )
Attachment #8457430 -
Attachment is obsolete: true
Attachment #8457430 -
Flags: review?(bzbarsky)
Attachment #8457436 -
Flags: review?(bzbarsky)
![]() |
||
Comment 5•11 years ago
|
||
Comment on attachment 8457436 [details] [diff] [review]
mochitest.patch v2
r=me. Thanks!
Attachment #8457436 -
Flags: review?(bzbarsky) → review+
Arguably successful try run:
https://tbpl.mozilla.org/?tree=Try&rev=bbd7ddb3a0d7
The failure is a known intermittent which popped back up recently (see bug 947565).
Keywords: checkin-needed
This landed with an incorrect bug number (1038928).
Landed in https://hg.mozilla.org/integration/mozilla-inbound/rev/08c5f5e266c5
Keywords: checkin-needed
Comment 8•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
You need to log in
before you can comment on or make changes to this bug.
Description
•