Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upInline pseudo elements layout#12367 #12669
Conversation
|
This is a first version, another part is missing - in the following case the green zone is calculated incorrectly and a line is broken:
|
|
r? @mbrubeck or someone else |
|
Want to review this, @notriddle? |
|
Yeah, that sounds like something I could help with. |
|
@bors-servo delegate=notriddle r? @notriddle |
|
|
|
@notriddle may be change to something like this:
and
Could you please comment if the main idea of the fix is correct? I'm not very sure that both style-fixing functions can be just skipped for pseudo elements. I've read the specs and couldn't imagine the appropriate cases, but I didn't have much experience with CSS and could miss something. |
|
The modified version of the test looks good. The big problem that the modify function tries to solve is that the style of the base element is copied verbatim to the pseudo-element. I think that was actually fixed in the style code awhile back. Let's try it. @bors-servo try |
|
|
|
|
highfive
commented
Jul 31, 2016
|
|
The passes look good, since they're part of your PR. I'm not sure about the failures, because there aren't any pseudo elements in either of those tests to trigger your code changes. |
|
Reverting c1243fe, the one that prevents text fragments from being merged, fixes the test failures. Reverting f787f3a, the one that stops pseudo-element styles from being reset, does not. (I ran the failing tests on my box to check them.) So turning off the style reset didn't cause any tests to fail, and it makes sense that we need to store the style of the pseudo-elements somewhere, since they're not going to get their own flows, so let's put it in the fragments. |
|
@notriddle OK, thank you. I'll investigate what's going on in failed tests. And also in the case with absolutely positioned div, I've posted before. |
|
@bors-servo retry Let's see how #12760 affected the test results. |
…try> Inline pseudo elements layout#12367 <!-- Please describe your changes on the following line: --> This PR fixes ignored paddings and margins for inline pseudo elements. --- <!-- 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 #12367 (github issue number if applicable). <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- 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/12669) <!-- Reviewable:end -->
|
|
8c8f5dd
to
d3ccbc5
…otriddle Inline pseudo elements layout#12367 <!-- Please describe your changes on the following line: --> This PR fixes ignored paddings and margins for inline pseudo elements. --- <!-- 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 #12367 (github issue number if applicable). <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- 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/12669) <!-- Reviewable:end -->
|
|
highfive
commented
Aug 10, 2016
|
|
|
d3ccbc5
to
a9c1817
|
@jdm rebased to current master. |
|
@bors-servo r+ |
|
|
…otriddle Inline pseudo elements layout#12367 <!-- Please describe your changes on the following line: --> This PR fixes ignored paddings and margins for inline pseudo elements. --- <!-- 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 #12367 (github issue number if applicable). <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- 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/12669) <!-- Reviewable:end -->
|
|
splav commentedJul 31, 2016
•
edited by jdm
This PR fixes ignored paddings and margins for inline pseudo elements.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is