| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
No need to call the `assign_block_size_block_base()` method of normal
block since it is implemented for CSS2.
|
| |
|
| |
|
|
|
|
| |
Remove some hacks in layout, and unused function in style.
|
|
|
|
|
|
| |
The height test is removed in mime_sniffing_font_context because of rounding
changes in app_units. The rest of that test is still useful though, given it
will timeout if the font fails to be sniffed.
|
|
|
|
|
| |
- Update CSS tests to revision e05bfd5e30ed662c2f8a353577003f8eed230180.
- Update web-platform-tests to revision a052787dd5c069a340031011196b73affbd68cd9.
|
| |
|
|
|
|
|
|
| |
See
https://groups.google.com/forum/#!topic/mozilla.dev.servo/MWBms2_BMJo
for discussion.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
fragments if `overflow` is not `visible` per CSS 2.1 § 10.8.1.
Additionally, this patch reverts the change introduced in #12642 in
favor of the spec-compliant behavior described above. This patch also
removes the `inline_block_overflow.html` reftest introduced in #3725, as
the behavior it expected contradicted CSS 2.1 (and in fact the test
fails in Gecko).
The changes that this patch makes to `input_selection_a.html` and
`input_selection_incremental_a.html` are necessary workarounds to make
the tests pass in light of the fact that Servo's UA stylesheet applies
`overflow: hidden` to `<input>` elements. I believe that the changes are
not necessary in other rendering engines because they hard-code
`overflow: hidden`-like behavior for `<input>` elements, while Servo
uses the actual CSS `overflow: hidden` behavior. As far as I can tell,
Servo's behavior is arguably more spec-compliant, but it remains to be
seen how Web compatible it is.
Improves the Google results pages.
Closes #13707.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
10.8, and implement `vertical-align: middle` per CSS 2.1 § 10.8.1.
`InlineMetrics` has been split into `InlineMetrics` for fragments and
`LineMetrics` for lines. Both structures' fields have been renamed in
order to more clearly delineate the difference between *space* and
*content*. Vertical positioning of fragments has been reworked to take
margins and borders into account only for replaced content.
This patch fixes the `vertical_align_super_a.html` reftest. Servo now
matches the rendering that Gecko and WebKit produce.
Additionally, this includes a test for the popular inline-block
centering technique described here:
https://s.codepen.io/shshaw/fullpage/gEiDt?#Inline-Block
|
|
|
|
|
|
|
|
| |
fragment position assignment.
Improves Rust documentation.
Closes #13471.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This was the underlying cause of the restyle_hints_state.html failure.
It was uncovered only when fixing the HAS_EDGE_CHILD_SELECTOR flags because this
was the series of events happening.
* <script> starts executing.
* All the restyle hint processing takes place.
* <script> ends executing, gets appended to the body (I think this is also a bug).
* <body> receives children_changed notification, with an Append mutation.
* <body> had the HAS_EDGE_CHILD_SELECTOR flag, so due to its bogus value, it
restyled the whole tree after <body>, fixing any mishandling of restyle
hints.
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Fix absolute-flow's auto positioning
<!-- Please describe your changes on the following line: -->
If an absolute positioned flow has no top, bottom, left, right property, its hypothetical box position should be the margin-end of its previous sibling, not the border-end.
---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #12676 (github issue number if applicable).
<!-- Either: -->
- [x] There are tests for these changes
<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12873)
<!-- Reviewable:end -->
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
Fix the currently logic that a item will freeze if it should
grow(shrink) and its basesize is less(more) than its min(max) size. Also
fix the divide by zero error when an item should shrink but it has zero
length and zero min size.
|
|/ |
|
|
|
|
|
|
|
| |
Add a modify_style_for_anonymous_flow() function to use initial values
for non-inherited properties and parent values for inherited properties
as the block style. It also set border and outline to zero and set the
display property from the parameter.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Support the `flex` and `flex-flow` shorthand properties in
servo. Currently they are marked as experimental, so they are added to
'__dir__.ini'.
Thanks SimonSapin and jdm for help :)
|
| |
|
|
|
|
|
|
| |
This is a fixup for `align-self`, the computed value of which should now
properly inherit `align-items` value of its parent. Additional passed
tests is also removed from ini folder. Fixup for geckolib errors.
|
|
|
|
|
|
|
|
|
|
| |
Add the remaining longhand CSS properties of flexbox for servo,
including `flex-wrap`, `flex-grow`, `flex-shrink`, `justify-content`,
`align-items`, `align-self` and `align-content`.
tests for the remaining longhand properties are also enabled. Test for
default value of `align-self` is modified because the new default value
for this property is "auto" is current flexbox CR.
|
|\
| |
| |
| |
| |
| |
| |
| | |
Bug #10181 - Implement *-reverse flex-directions
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10987)
<!-- Reviewable:end -->
|
| | |
|
| | |
|
|/ |
|
|
|
|
|
| |
Add the style property for flex-basis. The property should allow all
values acceptable for `width`|`height` with the addition of `content`.
|
|
|
|
|
|
| |
per CSS 2.1 § 8.3.1.
Fixes the test failure in #10458.
|
|
|
|
|
| |
Add style property for order and implement reordering by this property
in flex flow. Based on previous work by @zentner-kyle.
|
| |
|
| |
|
| |
|
|
|
|
| |
(Except Fonts, on the assumption #8374 will land first.)
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
09d27d61d637da536af1d86a8d7bea157592ff9e
|
|
|