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 upNode::scroll_area should check if the element is potentially scrollable #10947
Comments
|
I'd like to work on this one. |
|
Awesome! Feel free to ping me if you have any questions! |
|
To me For me both subtests I see a fail as expected but with a strange message in the window: `URL.createObjectURL is not a function. Any further suggestions regarding tests? |
|
We don't implement the |
|
As of this moment
The outcome of these tests shouldn't change since none of the elements have |
|
yes, that was the other candidate... but I need quirk mode and a body element. It will need the visibility (→pot. srollable), and a different result from the window vs the scrolling area. Ill try to write sth that would be sensitive to the change... Martin Br:osamle m-broe.de -------- Ursprüngliche Nachricht -------- As of this moment Element::ScrollHeight and Element::ScrollWidth are the only places Node::scroll_area is used. Iif I'm not mistaken neither of these functions are used in test-wpt. The most relevant tests I'm aware of are /css-tests/cssom-view-1_dev/scrollWidthHeight*. You can run them with something like the following. ./mach test-css tests/wpt/css-tests/cssom-view-1_dev/html/scrollWidthHeight* — |
|
when adding the new test and running 785199 vs 1208311 lines!! difference starting with items that certainly do not belong to my new test file:
|
|
That's a known issue. However, we currently cannot add new tests to the |
|
maybe I am missing something but this tiny test should pass?!
it tells me: |
|
Why would it double the hidden in the overflow property? |
|
Probably because of a bug in our CSS serialization code in cssstyledeclaration.rs . |
|
To me it looks like #9307 is addressing the issue. At least it is related.
Output is:
|
|
Now that #11377 merged, is the output improved? |
|
thats what i hope too, ill check tomorrow. But I think it is more related to the test i have in mind. Martin Br:osamle m-broe.de -------- Ursprüngliche Nachricht -------- Now that #11377 merged, is the output improved? — |
|
With a freshly build version of this morning I still get the style attribute doubled, as before. :-/ Fixing this (#10947) in itself should only need half a line of code change but its hard to come up with a test for it as long as setting/getting the style attrib does not work properly. |
|
Yes, please do file a separate issue for the attribute one. |
|
here it is #11448 |
|
Having learned what shorthands are I could now avoid them in the testing. |
|
currently I am struggeling with my natural english of not and or: how is the following phrase in the spec are meant?
a) both of them have to be b) it is enough if one is a) |
|
The sentence is considered true if:
|
|
thank you for the quick reply ... then I have to figure out something else to be wrong -- which is good to know |
|
during adding the additional condition I find that Since I now scrambled the logic gatters of my brain back and forth quite a few times I suggest making a PR for the test, review it and then continue on fixing the bug in the servo code. This would ensure that I do not co-evolve a double-negate test and error logic. |
|
That sounds like a sensible choice :) |
see servo#10947 Node::scroll_area should check if the element is potentially scrollable Three tests use `document.scrollingElement` which was not supported at the time of writing. They are, hence, expected to FAIL. The last expected FAIL should be fixed by servo#10947.
see servo#10947 Node::scroll_area should check if the element is potentially scrollable Three tests use `document.scrollingElement` which was not supported at the time of writing. They are, hence, expected to FAIL. The last expected FAIL should be fixed by servo#10947.
see servo#10947 Node::scroll_area should check if the element is potentially scrollable Three tests use `document.scrollingElement` which was not supported at the time of writing. They are, hence, expected to FAIL. The last expected FAIL should be fixed by servo#10947.
see servo#10947 Node::scroll_area should check if the element is potentially scrollable Three tests use `document.scrollingElement` which was not supported at the time of writing. They are, hence, expected to FAIL. The last expected FAIL should be fixed by servo#10947. Edited some comments, message texts.
… r=izgzhen Tests for scroll_area on body element in quirks mode. <!-- Please describe your changes on the following line: --> --- <!-- 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 - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [X ] There are tests for these changes OR - [ ] These changes do not require tests because _____ see #10947 Node::scroll_area should check if the element is potentially scrollable Three tests use `document.scrollingElement` which was not supported at the time of writing. They are, hence, expected to FAIL. The last expected FAIL should be fixed by #10947. <!-- 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/11699) <!-- Reviewable:end -->
|
It looks like Any hints for logging the overflow properties are welcome.
should I find something like
|
|
@broesamle Do you mean |
Node::scroll_areashould check if the element ispotentially_scrollablefor the second condition of line 607relevant specs:
scrollWidth: Step 5
scrollHeight: Step 5
scrollLeft: Step 7
scrollTop: Step 7
potentially scrollable