Closed
Bug 1274526
Opened 8 years ago
Closed 8 years ago
Support 'q' absolute length units from CSS3 values and units
Categories
(Core :: CSS Parsing and Computation, defect)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
mozilla49
Tracking | Status | |
---|---|---|
firefox49 | --- | fixed |
People
(Reporter: edgar, Assigned: edgar)
References
(Blocks 1 open bug, )
Details
(Keywords: dev-doc-complete)
Attachments
(2 files, 3 obsolete files)
7.25 KB,
patch
|
edgar
:
review+
|
Details | Diff | Splinter Review |
4.31 KB,
patch
|
edgar
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Updated•8 years ago
|
Summary: Support → Support 'q' absolute length units from CSS3 values and units
Assignee | ||
Comment 1•8 years ago
|
||
https://www.w3.org/TR/css-values/#absolute-lengths unit | name | equivalence ------+-----------------------+-------------------- q | quarter-millimeters | 1q = 1/40th of 1cm
Assignee | ||
Updated•8 years ago
|
Blocks: 1017878, css-values-3
Updated•8 years ago
|
Assignee | ||
Comment 3•8 years ago
|
||
Assignee | ||
Comment 4•8 years ago
|
||
Test case: http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=4221 Expect result: all div block should have the exact same width and height.
Assignee | ||
Comment 5•8 years ago
|
||
Attachment #8754757 -
Attachment is obsolete: true
Assignee | ||
Comment 6•8 years ago
|
||
Assignee | ||
Comment 7•8 years ago
|
||
Comment on attachment 8755254 [details] [diff] [review] Part 1: Implement support for 'q' absolute length units in CSS, v2 Review of attachment 8755254 [details] [diff] [review]: ----------------------------------------------------------------- Add support for 'q' absolute length unit, see spec https://www.w3.org/TR/css-values/#absolute-lengths. And also add test case for 'q' unit in test_pixel_lengths.html. Hi Cameron, may I have your review? Thank you.
Attachment #8755254 -
Flags: review?(cam)
Assignee | ||
Comment 8•8 years ago
|
||
Comment on attachment 8755255 [details] [diff] [review] Part 2: Update web-platform-test expectation for parse-a-sizes-attribute.html, v1 Review of attachment 8755255 [details] [diff] [review]: ----------------------------------------------------------------- Patch part1 adds the support for 'q' length unit, so we can pass some tests in parse-a-sizes-attribute.html. Hi Josh, may I have your review? Thank you.
Attachment #8755255 -
Flags: review?(josh)
Comment 9•8 years ago
|
||
Comment on attachment 8755254 [details] [diff] [review] Part 1: Implement support for 'q' absolute length units in CSS, v2 Review of attachment 8755254 [details] [diff] [review]: ----------------------------------------------------------------- This looks fine, although I wonder if it's important to support the "q" unit. It is in the CSS Values & Units CR, but as far as I know no other browser implements it. I see it's the last length unit from css-values-3 that we don't support, though, and it's easy, so I guess there's little downside. ::: layout/style/nsCSSValue.h @@ +364,5 @@ > eCSSUnit_Millimeter = 902, // (float) 96/25.4 CSS pixels > eCSSUnit_Centimeter = 903, // (float) 96/2.54 CSS pixels > eCSSUnit_Pica = 904, // (float) 12 points == 16 CSS pixls > eCSSUnit_Pixel = 905, // (float) CSS pixel unit > + eCSSUnit_Quarter = 906, // (float) 96/101.6 CSS pixels In a way I think it's nice to have eCSSUnit_Pixel be the last one in this group of absolute lengths. Can you make eCSSUnit_Quarter = 905 and eCSSUnit_Pixel = 906?
Attachment #8755254 -
Flags: review?(cam) → review+
Updated•8 years ago
|
Attachment #8755255 -
Flags: review?(josh) → review+
Assignee | ||
Comment 10•8 years ago
|
||
(In reply to Cameron McCormack (:heycam) from comment #9) > Comment on attachment 8755254 [details] [diff] [review] > Part 1: Implement support for 'q' absolute length units in CSS, v2 > > Review of attachment 8755254 [details] [diff] [review]: > ----------------------------------------------------------------- > > This looks fine, although I wonder if it's important to support the "q" > unit. It is in the CSS Values & Units CR, but as far as I know no other > browser implements it. I see it's the last length unit from css-values-3 > that we don't support, though, and it's easy, so I guess there's little > downside. > > ::: layout/style/nsCSSValue.h > @@ +364,5 @@ > > eCSSUnit_Millimeter = 902, // (float) 96/25.4 CSS pixels > > eCSSUnit_Centimeter = 903, // (float) 96/2.54 CSS pixels > > eCSSUnit_Pica = 904, // (float) 12 points == 16 CSS pixls > > eCSSUnit_Pixel = 905, // (float) CSS pixel unit > > + eCSSUnit_Quarter = 906, // (float) 96/101.6 CSS pixels > > In a way I think it's nice to have eCSSUnit_Pixel be the last one in this > group of absolute lengths. Can you make eCSSUnit_Quarter = 905 and > eCSSUnit_Pixel = 906? Will do. Thank you.
Assignee | ||
Comment 11•8 years ago
|
||
Address review comment #9.
Attachment #8755254 -
Attachment is obsolete: true
Attachment #8755299 -
Flags: review+
Assignee | ||
Comment 12•8 years ago
|
||
Just update reviewer field to 'r=heycam' in commit message.
Attachment #8755301 -
Flags: review+
Assignee | ||
Updated•8 years ago
|
Attachment #8755255 -
Attachment is obsolete: true
Assignee | ||
Comment 13•8 years ago
|
||
Try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=b3d20da3b1ab02117f754401cf292fb3dd6d986f&group_state=expanded
Assignee | ||
Updated•8 years ago
|
Keywords: checkin-needed
Updated•8 years ago
|
Status: NEW → ASSIGNED
Comment 14•8 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/929092ee1097 https://hg.mozilla.org/integration/mozilla-inbound/rev/bfa847fd5f53
Keywords: checkin-needed
Assignee | ||
Updated•8 years ago
|
Keywords: dev-doc-needed
Comment 15•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/929092ee1097 https://hg.mozilla.org/mozilla-central/rev/bfa847fd5f53
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox49:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
Comment 16•8 years ago
|
||
Updated documentation here: https://developer.mozilla.org/en-US/docs/Web/CSS/length And added a developer release info here: https://developer.mozilla.org/en-US/Firefox/Releases/49#CSS Sebastian
Keywords: dev-doc-needed → dev-doc-complete
You need to log in
before you can comment on or make changes to this bug.
Description
•