Commit Graph

495 Commits

Author SHA1 Message Date
Emilio Cobos Álvarez
37a88d0520 Bug 1465572: Ensure <slot> disables whitespace optimizations. r=bz
The whitespace optimization code only knows about the light tree.

It's not a great idea to try to put flattened tree children of a slot through
there, since the children may not be assigned to the same slot, or to any slot
(in which case we crash).

We should probably rename XBLInvolved to ShadowDOMOrXBLInvolved too, I guess.
Note that the ShadowRoot case already sets the bit on Init().

MozReview-Commit-ID: 91lmE7OxlnA

--HG--
extra : rebase_source : ee87ae28d6065c7fd072afad61c16a59b6dce039
2018-06-02 09:35:19 +02:00
Emilio Cobos Álvarez
404ee2e0f4 Bug 1465572: Changing the slot name should properly invalidate layout. r=smaug
Just something I found while trying to construct a test-case for this.

MozReview-Commit-ID: A01qzQ14QG9

--HG--
extra : rebase_source : 5329a8791774b402b633a992fa9bca2cc5b320fb
2018-06-02 09:17:17 +02:00
arthur.iakab
fd0ee7c9b8 Merge inbound to mozilla-central a=merge 2018-06-06 00:58:30 +03:00
Fredrik Söderquist
5e7e2f1b01 Bug 1463866 [wpt PR 11130] - Allow Text node in elementsFromPoint if descendant of SVG text content, a=testonly
Automatic update from web-platform-testsAllow Text node in elementsFromPoint if descendant of SVG text content

When hit-testing, SVG text content nodes will use their Text node
descendants as the inner-most/hit node, and hit-testing will not be
performed in any of the background phases. Thus we need to selectively
allow Text node which has an SVG text content element as their parent.

Bug: 842504
Change-Id: Ie282d5e9a66880f3f0d5e319b249f5f41db9e9db
Reviewed-on: https://chromium-review.googlesource.com/1059753
Commit-Queue: Fredrik Söderquist <fs@opera.com>
Reviewed-by: Philip Rogers <pdr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#561238}

--

wpt-commits: 65a5c24ba9769da8b103f72349ea111b124e54db
wpt-pr: 11130
2018-06-05 15:15:13 +01:00
Emilio Cobos Álvarez
756460b3b5 Bug 1465291: Make pseudo-elements work with :host. r=xidorn
Imported WebKit's test as a WPT.

MozReview-Commit-ID: 19ZThuoqKLW
2018-06-05 02:51:43 +02:00
Brian Birtles
067439a2c5 Bug 1466031 - Update event-dispatch test now that we can use the updated EventWatcher; r=hiro
--HG--
extra : rebase_source : b5b22b84d77b0939b47c672a3106ec53125e62dc
2018-06-04 10:20:58 +09:00
Brian Birtles
90c5d84416 Bug 1466031 - Add spec links to test files; r=hiro
--HG--
extra : rebase_source : d411e7febaff7ebb5ae38cfa41ce32ed26a24bc2
2018-06-04 10:20:58 +09:00
Brian Birtles
b6222ec571 Bug 1466031 - Move CSS animations / Web animation integration tests to web-platform-tests; r=hiro
--HG--
rename : dom/animation/test/css-animations/test_cssanimation-animationname.html => testing/web-platform/tests/css/css-animations/CSSAnimation-animationName.tentative.html
rename : dom/animation/test/css-animations/test_animation-cancel.html => testing/web-platform/tests/css/css-animations/CSSAnimation-canceling.tentative.html
rename : dom/animation/test/css-animations/test_setting-effect.html => testing/web-platform/tests/css/css-animations/CSSAnimation-effect.tentative.html
rename : dom/animation/test/css-animations/test_animation-finished.html => testing/web-platform/tests/css/css-animations/CSSAnimation-finished.tentative.html
rename : dom/animation/test/css-animations/test_animation-computed-timing.html => testing/web-platform/tests/css/css-animations/CSSAnimation-getComputedTiming.tentative.html
rename : dom/animation/test/css-animations/test_animation-currenttime.html => testing/web-platform/tests/css/css-animations/CSSAnimation-getCurrentTime.tentative.html
rename : dom/animation/test/css-animations/test_animation-id.html => testing/web-platform/tests/css/css-animations/CSSAnimation-id.tentative.html
rename : dom/animation/test/css-animations/test_animation-pausing.html => testing/web-platform/tests/css/css-animations/CSSAnimation-pausing.tentative.html
rename : dom/animation/test/css-animations/test_animation-playstate.html => testing/web-platform/tests/css/css-animations/CSSAnimation-playState.tentative.html
rename : dom/animation/test/css-animations/test_animation-ready.html => testing/web-platform/tests/css/css-animations/CSSAnimation-ready.tentative.html
rename : dom/animation/test/css-animations/test_animation-starttime.html => testing/web-platform/tests/css/css-animations/CSSAnimation-startTime.tentative.html
rename : dom/animation/test/css-animations/test_pseudoElement-get-animations.html => testing/web-platform/tests/css/css-animations/CSSPseudoElement-getAnimations.tentative.html
rename : dom/animation/test/css-animations/test_document-get-animations.html => testing/web-platform/tests/css/css-animations/Document-getAnimations.tentative.html
rename : dom/animation/test/css-animations/test_animations-dynamic-changes.html => testing/web-platform/tests/css/css-animations/Element-getAnimations-dynamic-changes.tentative.html
rename : dom/animation/test/css-animations/test_element-get-animations.html => testing/web-platform/tests/css/css-animations/Element-getAnimations.tentative.html
rename : dom/animation/test/css-animations/test_keyframeeffect-getkeyframes.html => testing/web-platform/tests/css/css-animations/KeyframeEffect-getKeyframes.tentative.html
rename : dom/animation/test/css-animations/test_effect-target.html => testing/web-platform/tests/css/css-animations/KeyframeEffect-target.tentative.html
rename : dom/animation/test/css-animations/test_event-dispatch.html => testing/web-platform/tests/css/css-animations/event-dispatch.tentative.html
rename : dom/animation/test/css-animations/test_event-order.html => testing/web-platform/tests/css/css-animations/event-order.tentative.html
rename : dom/animation/test/testcommon.js => testing/web-platform/tests/css/css-animations/support/testcommon.js
extra : rebase_source : 87f112f3018504414a7d6d17d66c4980b58017d0
2018-06-04 10:20:58 +09:00
Gurzau Raul
b36972ff91 Backed out 7 changesets (bug 1461046) for permafailing reftest on /reftests/css-invalid/select/select-disabled-fieldset-1.html a=backout
Backed out changeset f5990eb1eb0d (bug 1461046)
Backed out changeset 8e0c340b9700 (bug 1461046)
Backed out changeset fbfe1d5b94e1 (bug 1461046)
Backed out changeset 48057a6ba3d6 (bug 1461046)
Backed out changeset 5c8648bcf6bb (bug 1461046)
Backed out changeset 157bbc74460a (bug 1461046)
Backed out changeset e990d4d07b0e (bug 1461046)
2018-06-02 05:07:03 +03:00
Brad Werth
517654d95a Bug 1461046 Part 6: Remove submitted WPT reftests that checked for empty float areas (which are no longer empty), or relied on ignoring horizontal spurs in polygons. r=dholbert
MozReview-Commit-ID: 4fADKtvcZVp

--HG--
extra : rebase_source : 61b1c19b40dcbbef6d36683547753e0cde09cb8f
2018-05-25 10:44:40 -07:00
Brad Werth
ab777532ec Bug 1464113 Part 2: Add a WPT reftest of a shape-outside: image with a negative left offset relative to its containing block. r=dholbert
MozReview-Commit-ID: JehwcVc12Ui

--HG--
extra : rebase_source : 31843273efc91c556f2a52d8fb8dfec99cede21f
2018-05-25 16:18:56 -07:00
Bogdan Tara
3737701cfa Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-06-05 12:33:18 +03:00
Dorel Luca
4ded9f31ea Merge mozilla-central to autoland 2018-06-04 21:14:46 +03:00
Brad Werth
5754fc7fd6 Bug 1461046 Part 6: Remove submitted WPT reftests that checked for empty float areas (which are no longer empty), or relied on ignoring horizontal spurs in polygons. r=dholbert
MozReview-Commit-ID: 4fADKtvcZVp

--HG--
extra : rebase_source : 71673a33ebe6ce0541a23cf783af55ee92988a3a
2018-05-25 10:44:40 -07:00
Emilio Cobos Álvarez
d7bfa8a3bb Bug 1460382: Make element-backed pseudos inherit from NAC subtree roots and other NAC inherit from their parents. r=heycam
Currently, NAC always inherits from the closest non-NAC ancestor element,
regardless of whether it is for an element-backed pseudo or not.

This patch changes the inheritance so that for element-backed pseudos, we
inherit from the closest native anonymous root's parent, and for other NAC we
inherit from the parent.

This prevents the following two issues and allows us to remove the
NODE_IS_NATIVE_ANONYMOUS flag:

 * Avoiding inheriting from the non-NAC ancestor in XBL bindings bound to NAC.

   - This is no longer a problem since we apply the rule only if we're a
     pseudo-element, and all pseudo-elements are in native anonymous subtrees.

   - This also allows to remove the hack that propagates the
     NODE_IS_NATIVE_ANONYMOUS flag from the ::cue pseudo-element from
     BindToTree.

 * Inheriting from the wrong thing if we're a nested NAC subtree.

   - We no longer look past our NAC subtree, with the exception of
     ::-moz-number-text's pseudo-elements, for which we do want to propagate
     ::placeholder to.

A few rules from forms.css have been modified because they're useless or needed
to propagate stuff to the anonymous form control in input[type="number"] which
previously inherited from the input itself.

MozReview-Commit-ID: IDKYt3EJtSH
2018-05-30 10:14:46 +02:00
Emilio Cobos Álvarez
dd5f25c2f6 Bug 1465107: Cleanup remaining mochitest / reftest / crashtests stylo expectations. r=xidorn
MozReview-Commit-ID: 1IeURcnoESX
2018-05-30 10:03:50 +02:00
Noemi Erli
846f00f83f Merge inbound to mozilla-central. a=merge 2018-05-30 00:41:41 +03:00
Emilio Cobos Álvarez
7e1fd0875e Bug 1464865: Fix some typos in WPT tests. r=xidorn
MozReview-Commit-ID: CSLZGbu23js
2018-05-29 16:39:39 +02:00
Emilio Cobos Álvarez
3a5b66d9c2 Bug 1464865: Don't let @namespace rules that aren't going to be inserted affect the namespace map. r=xidorn
MozReview-Commit-ID: 9bjlEBExqsr
2018-05-29 16:39:37 +02:00
shindli
16731e010d Backed out changeset ad877938d752 (bug 1464865) for wpt3 failures in /css/cssom/insertRule-import-no-index.htm on a CLOSED TREE 2018-05-29 13:39:43 +03:00
Emilio Cobos Álvarez
362f28d4bb Bug 1464865: Don't let @namespace rules that aren't going to be inserted affect the namespace map. r=xidorn
MozReview-Commit-ID: 9bjlEBExqsr
2018-05-29 10:45:42 +02:00
Emilio Cobos Álvarez
2e15492a2d Bug 1464936: Avoid crashing with @import in Shadow DOM. r=smaug
Our behavior is correct, this uses the same setup that nsDocument and the
stylesets use, which I may look into fixing up / making more explicit in
bug 1465031.

MozReview-Commit-ID: 75AToXCw1pV

--HG--
extra : rebase_source : b7c11ca66b416c32b8fc0c5eedbc9383c63bad70
2018-05-29 12:04:34 +02:00
Xidorn Quan
70612f8c6a Bug 1464744 - Add a web-platform test for viewport scrollbars. r=heycam
MozReview-Commit-ID: JzQl1MwsyEx

--HG--
extra : rebase_source : b88076be6671b7d44f1ca95b298087b0eb0af00d
2018-05-28 14:47:11 +10:00
Hiroyuki Ikezoe
5c588a8653 Bug 1464627 - Fix the spec link to 3D rotation matrix. r=emilio DONTBUILD
MozReview-Commit-ID: F5P4pCvD0Ww

--HG--
extra : rebase_source : 8c97814986517b81affa39c3be06e18427d1e4e8
2018-05-27 09:55:06 +09:00
Chris Lilley
b2f60892b0 Bug 1462088 [wpt PR 11035] - font-variant descriptor was moved to Fonts 4 , a=testonly
Automatic update from web-platform-testsfont-variant descriptor was moved to Fonts 4  (#11035)

* font-variant descriptor was moved to Fonts 4 https://github.com/w3c/csswg-drafts/issues/2531

* font-variant descriptor was moved to Fonts 4

--

wpt-commits: 232137f0fdacdeed99a7df5dd229d23020b0bccc
wpt-pr: 11035
2018-05-25 16:44:30 +00:00
Chris Lilley
e59cb06fcd Bug 1463784 [wpt PR 8494] - Add @font-face rules to load TrueType and OpenType test fonts., a=testonly
Automatic update from web-platform-testsMerge pull request #8494 from w3c/woff2-fonts-to-install-as-web-fonts

Add @font-face rules to load TrueType and OpenType test fonts.
--

wpt-commits: 31c2aeb1e71c5490f8fd304d731c18848065ad24
wpt-pr: 8494


--HG--
rename : testing/web-platform/tests/css/WOFF2/support/FontsToInstall/SFNT-CFF-Fallback.otf => testing/web-platform/tests/css/WOFF2/support/SFNT-CFF-Fallback.otf
rename : testing/web-platform/tests/css/WOFF2/support/FontsToInstall/SFNT-CFF-Reference.otf => testing/web-platform/tests/css/WOFF2/support/SFNT-CFF-Reference.otf
rename : testing/web-platform/tests/css/WOFF2/support/FontsToInstall/SFNT-TTF-Fallback.ttf => testing/web-platform/tests/css/WOFF2/support/SFNT-TTF-Fallback.ttf
rename : testing/web-platform/tests/css/WOFF2/support/FontsToInstall/SFNT-TTF-Reference.ttf => testing/web-platform/tests/css/WOFF2/support/SFNT-TTF-Reference.ttf
2018-05-25 16:44:26 +00:00
Anders Hartvoll Ruud
da00172690 Bug 1463387 [wpt PR 11100] - Fix crash when setting aliases on computed style., a=testonly
Automatic update from web-platform-testsFix crash when setting aliases on computed style.

The incoming CSSPropertyID may be an unresolved property, therefore
CSSUnresolvedProperty::Get must be used rather than CSSProperty::Get.

This bug exists in Chrome stable as well, but it was pretty hard to
discover (by e.g. ClusterFuzz) because aliases were not enumerated until
recently.

R=futhark@chromium.org

Bug: 844816
Change-Id: I97c81764d2027f86004d3b02316cac44412ef0ea
Reviewed-on: https://chromium-review.googlesource.com/1065993
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Commit-Queue: Anders Ruud <andruud@chromium.org>
Cr-Commit-Position: refs/heads/master@{#560540}

--

wpt-commits: 94933315da3053196b82bb5d9e7a6a74cb550ce5
wpt-pr: 11100
2018-05-25 16:44:24 +00:00
Simon Pieters
0fd9836f3e Bug 1463071 [wpt PR 11089] - [css-filter] add OWNERS, a=testonly
Automatic update from web-platform-tests[css-filter] add OWNERS

--

wpt-commits: dcbc9bc583022931e9ab5096c28f9e9f12e69407
wpt-pr: 11089
2018-05-25 16:44:23 +00:00
Chris Lilley
08769326a4 Bug 1463061 [wpt PR 11086] - Delete font-feature-settings-rendering-2.html with font, a=testonly
Automatic update from web-platform-testsMerge pull request #11086 from w3c/rm-font-feature-settings-rendering-2

Delete font-feature-settings-rendering-2.html with font
--

wpt-commits: bba08e097cb74df656ff55f059757464eb700c91
wpt-pr: 11086
2018-05-25 16:44:20 +00:00
Brad Werth
39c314e889 Bug 1463794: Move new WPT reftests to correct source-of-truth directory. r=dbaron+3881
MozReview-Commit-ID: DcM0kVCAsZn

--HG--
rename : testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-circle-056-ref.html => layout/reftests/w3c-css/submitted/shapes1/shape-outside-circle-056-ref.html
rename : testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-circle-056.html => layout/reftests/w3c-css/submitted/shapes1/shape-outside-circle-056.html
rename : testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-ellipse-052-ref.html => layout/reftests/w3c-css/submitted/shapes1/shape-outside-ellipse-052-ref.html
rename : testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-ellipse-052.html => layout/reftests/w3c-css/submitted/shapes1/shape-outside-ellipse-052.html
rename : testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-polygon-032-ref.html => layout/reftests/w3c-css/submitted/shapes1/shape-outside-polygon-032-ref.html
rename : testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-polygon-032.html => layout/reftests/w3c-css/submitted/shapes1/shape-outside-polygon-032.html
extra : rebase_source : add4f42d16a770eac4915b26fb4a7fffd5ac6ac4
2018-05-23 12:53:34 -07:00
Narcis Beleuzu
8bfcff6f8c Backed out 3 changesets (bug 1186265) for devtools chrome failures on browser_webconsole_visibility_messages.js. CLOSED TREE
Backed out changeset 4a9965aeeef3 (bug 1186265)
Backed out changeset 55bd80764231 (bug 1186265)
Backed out changeset 00fefd3eb634 (bug 1186265)
2018-05-25 05:36:52 +03:00
Blake Kaplan
aec5df4e02 Bug 1186265 - Partially update DOMPoint, DOMQuad, DOMRect, DOMMatrix. r=bz
Some notes: this does not fully bring us to compliance to the current spec.
Instead, these are the fixes that I needed to make in order to make
css/geometry/interfaces.html pass with the DOMPoint changes in the previous
patches. I don't fully understand why that patch caused the test to fail the
way it did, but it ended up being easier to fix our code than understand why
the harness was falling over.

The DOMQuad::QuadBounds class was the source of some confusion for me. Now
that DOMRectReadOnly is a concrete class with members, I wanted to avoid
wasting them. However, the spec is unclear as to whether a DOMQuad's bound's
should be live -- that is because DOMQuad exposes DOMPoint, we can set its
points after retrieving a QuadBounds object. Our current code is live, setting
the points changes the QuadBounds. Chromium's current behavior is to never
update the QuadBounds object. I've left our behavior untouched in this patch
(and waste 4 doubles per QuadBounds object), but I am intending to file a bug
to understand what the intent of the spec is. I wonder if the author intended
the points to be DOMPointReadOnly instead. If so, we could simplify the
DOMRectReadOnly code and get rid of the virtual getters, which would be nice.

I also wasn't thrilled to put the DOMMatrix setters on the DOMMatrixReadOnly
class, but for brevity and simplicity of implementation, I've made them
public. I briefly considered making the setters protected on the ReadOnly
version of the class, but I'm not convinced that having to explicitly make
them public on the derived class is worth the extra copies of the names.

MozReview-Commit-ID: CjdW4Nbnc6A

--HG--
extra : rebase_source : 97e9386cfb17319242913d28117c8b1b8b6fbbbe
2018-03-29 16:19:31 -07:00
Noemi Erli
2be73dec54 Backed out changeset c19f0dedfb15 (bug 1463794) for reftest failures in build/tests/reftest/tests/layout/reftests/w3c-css/submitted/shapes1/shape-outside-circle-056.html on a CLOSED TREE
--HG--
rename : layout/reftests/w3c-css/submitted/shapes1/shape-outside-circle-056-ref.html => testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-circle-056-ref.html
rename : layout/reftests/w3c-css/submitted/shapes1/shape-outside-circle-056.html => testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-circle-056.html
rename : layout/reftests/w3c-css/submitted/shapes1/shape-outside-ellipse-052-ref.html => testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-ellipse-052-ref.html
rename : layout/reftests/w3c-css/submitted/shapes1/shape-outside-ellipse-052.html => testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-ellipse-052.html
rename : layout/reftests/w3c-css/submitted/shapes1/shape-outside-polygon-032-ref.html => testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-polygon-032-ref.html
rename : layout/reftests/w3c-css/submitted/shapes1/shape-outside-polygon-032.html => testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-polygon-032.html
2018-05-24 18:30:36 +03:00
Brad Werth
5b8c66a63f Bug 1463794: Move new WPT reftests to correct source-of-truth directory. r=dbaron
MozReview-Commit-ID: DcM0kVCAsZn

--HG--
rename : testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-circle-056-ref.html => layout/reftests/w3c-css/submitted/shapes1/shape-outside-circle-056-ref.html
rename : testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-circle-056.html => layout/reftests/w3c-css/submitted/shapes1/shape-outside-circle-056.html
rename : testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-ellipse-052-ref.html => layout/reftests/w3c-css/submitted/shapes1/shape-outside-ellipse-052-ref.html
rename : testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-ellipse-052.html => layout/reftests/w3c-css/submitted/shapes1/shape-outside-ellipse-052.html
rename : testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-polygon-032-ref.html => layout/reftests/w3c-css/submitted/shapes1/shape-outside-polygon-032-ref.html
rename : testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-polygon-032.html => layout/reftests/w3c-css/submitted/shapes1/shape-outside-polygon-032.html
extra : rebase_source : 3286d9c09b8394b5a48168ec9c257ef7b7579c38
2018-05-23 12:53:34 -07:00
Emilio Cobos Álvarez
65cd951781 Bug 1463004 [wpt PR 11083] - [cssom] Make a test assertion not show the number of CSS properties if it fails., a=testonly
Automatic update from web-platform-testsMerge pull request #11083 from w3c/emilio-patch-1

[cssom] Make a test assertion not show the number of CSS properties if it fails.
--

wpt-commits: f7b5bce8110e0599c0fb22e47b816106877e36b6
wpt-pr: 11083
2018-05-22 09:40:47 +00:00
Eric Willigers
18ba71195e Bug 1463041 [wpt PR 11020] - CSS: Update WPT :matches for intersection behavior, a=testonly
Automatic update from web-platform-testsCSS: Update WPT :matches for intersection behavior

".a+:matches(.c>.e)" requires the intersection of ".a+*" and ".c>.e",
not ".a+.c>.e".

WebKit passes the test, Blink's current implementation does not.

BUG=842157

Change-Id: I51566255006199c511b1d235232c0d9bef40035a
Reviewed-on: https://chromium-review.googlesource.com/1059982
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Commit-Queue: Eric Willigers <ericwilligers@chromium.org>
Cr-Commit-Position: refs/heads/master@{#560228}

--

wpt-commits: 19c90d8409b1c9b7d35e3fe012ff5c31fd750d58
wpt-pr: 11020
2018-05-22 09:40:46 +00:00
Morten Stenshorne
b489215878 Bug 1462030 [wpt PR 11033] - [LayoutNG] Improve support for negative clearance., a=testonly
Automatic update from web-platform-tests[LayoutNG] Improve support for negative clearance.

When there are adjoining floats that need to be separated from a cleared
block, clearance is predetermined, and we have to force it on the block.
Any large top margin on the child will just be eaten by negative
clearance. There's nothing that can be done to prevent clearance in such
cases. So make sure that we don't try to determine whether to apply
clearance or not based on the clearance offset set in the constraint
space. When clearance has been predetermined (which may have triggered a
BFC offset resolution and what not), refusing to apply it to the child is
a bug.

This aligns the implementation with the "alternative" way of calculating
clearance in the spec [1]. Everyone but Edge does this. I think what
Edge does here is problematic, because it requires us to use a
hypothetical position that was calculated before clearance got applied
(clearance causes margins that would otherwise collapse to be
separated). We'd end up using a hypothetical position not based on the
actual layout situation.[2]

[1] https://www.w3.org/TR/CSS22/visuren.html#flow-control
[2] https://github.com/w3c/csswg-drafts/issues/2608

This fixes one existing test. Added a few new ones as well. Not all of
them failed prior to this CL, but they serve as regression tests for
things I found to lack coverage while working on this.

Cq-Include-Trybots: master.tryserver.chromium.linux:linux_layout_tests_layout_ng
Change-Id: Ia45e9048c75c338477eee4923ff16eea3245bc6a
Reviewed-on: https://chromium-review.googlesource.com/1061470
Commit-Queue: Morten Stenshorne <mstensho@chromium.org>
Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org>
Cr-Commit-Position: refs/heads/master@{#560208}

--

wpt-commits: 499bf362082f5ca8679ad981536cbb38a98fccb3
wpt-pr: 11033
2018-05-22 09:40:45 +00:00
Darren Shen
44a206f5a2 Bug 1462541 [wpt PR 11062] - [css-typed-om] Ignore surrounding whitespace in CSSNumericValue.parse., a=testonly
Automatic update from web-platform-tests[css-typed-om] Ignore surrounding whitespace in CSSNumericValue.parse.

Fixes an issue where CSSNumericValue.parse considers valid strings
surrounded by whitespace to be invalid.

Bug: 844290
Change-Id: I4c40044631276a611ef9a56aac21ddf09316a550
Reviewed-on: https://chromium-review.googlesource.com/1065532
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Commit-Queue: Darren Shen <shend@chromium.org>
Cr-Commit-Position: refs/heads/master@{#560207}

--

wpt-commits: 30f00b755539c197f74f6517b7382f1fa050f30b
wpt-pr: 11062
2018-05-22 09:40:43 +00:00
Chris Lilley
28f491c7fd Bug 1463119 [wpt PR 8695] - Delete css/css-color/t451-system-colors-a.xht, a=testonly
Automatic update from web-platform-testsMerge pull request #8695 from csnardi/patch-1

Delete css/css-color/t451-system-colors-a.xht
--

wpt-commits: 087530e07fff684f471b5617f1890dc270a5b45a
wpt-pr: 8695
2018-05-22 09:40:43 +00:00
Blink WPT Bot
89920b718e Bug 1462442 [wpt PR 11047] - Add !important case to cssom-setProperty-shorthand.html, a=testonly
Automatic update from web-platform-testsAdd !important case to cssom-setProperty-shorthand.html (#11047)

Add !important case to cssom-setProperty-shorthand.html
to make sure the property is removed regardless [1].

[1] https://drafts.csswg.org/cssom/#dom-cssstyledeclaration-removeproperty

Change-Id: Ia68d224fb78a13f51bfeda02860932d56b1a0fba
--

wpt-commits: 2eca7cd9484fc2096859418c729889876129e636
wpt-pr: 11047
2018-05-22 09:40:23 +00:00
Simon Pieters
045f60c28c Bug 1454967 [wpt PR 10522] - [css-properties-values-api] add OWNERS, a=testonly
Automatic update from web-platform-tests[css-properties-values-api] add OWNERS

--

wpt-commits: 75a3ae0e2b3e0dc8763df8ed5cdf09a3005b6c5a
wpt-pr: 10522
2018-05-20 19:20:46 +00:00
Simon Pieters
2675b9aa9b Bug 1454955 [wpt PR 10519] - [css-fill-stroke] add OWNERS, a=testonly
Automatic update from web-platform-tests[css-fill-stroke] add OWNERS

--

wpt-commits: fe128bc2ccb1ea29a30d853dc0761dd14c090c02
wpt-pr: 10519
2018-05-20 19:20:41 +00:00
Simon Pieters
c48acd6ede Bug 1454976 [wpt PR 10524] - [css-scroll-anchoring] add OWNERS, a=testonly
Automatic update from web-platform-tests[css-scroll-anchoring] add OWNERS

--

wpt-commits: c0961fcc87282c1741a79d679221c893a686ab21
wpt-pr: 10524
2018-05-20 19:20:36 +00:00
Simon Pieters
045a690949 Bug 1455659 [wpt PR 10550] - [css-scroll-snap] add OWNERS, a=testonly
Automatic update from web-platform-tests[css-scroll-snap] add OWNERS

--

wpt-commits: 836c0217b78b1c2c9057cae3a09d8bbc88c0267d
wpt-pr: 10550
2018-05-20 19:20:27 +00:00
Simon Pieters
67f99fd44e Bug 1454700 [wpt PR 10508] - [css-content] add OWNERS, a=testonly
Automatic update from web-platform-tests[css-content] add OWNERS

--

wpt-commits: 8c5168cd87d50e6e338a13bca901e58f130f530e
wpt-pr: 10508
2018-05-20 19:20:22 +00:00
Simon Pieters
5bb8ff4ddb Bug 1454958 [wpt PR 10520] - [css-font-loading] add OWNERS, a=testonly
Automatic update from web-platform-tests[css-font-loading] add OWNERS

--

wpt-commits: 13df0726aac6098abef751953067c664b4a2311f
wpt-pr: 10520
2018-05-20 19:19:18 +00:00
Simon Pieters
1d9801d2ae Bug 1455690 [wpt PR 10551] - [css-shadow-parts] add OWNERS, a=testonly
Automatic update from web-platform-tests[css-shadow-parts] add OWNERS

--

wpt-commits: 37953e6241442982c15eaaa793565e9b47179856
wpt-pr: 10551
2018-05-20 19:19:13 +00:00
Ian Kilpatrick
b2e0e7f77e Bug 1461461 [wpt PR 10994] - [LayoutNG] Fix min/max sizes during layout and intrinsic passes., a=testonly
Automatic update from web-platform-tests[LayoutNG] Fix min/max sizes during layout and intrinsic passes.

Essentially this boils down to during min/max auto/percent/calc should be
treated the same, either being border+padding or infinity.

And during layout they should be taken into account.

I added some tests which now match FF/Edge (004,005) which LayoutNG matches, but
existing layout fails. The primary difference is change by passing kContent into
ResolveBlockLength during the ComputeBlockSizeForFragment function.

Bug: 635619
Cq-Include-Trybots: master.tryserver.chromium.linux:linux_layout_tests_layout_ng
Change-Id: I4e0c171a0e29ea5d85a742d85df001647813c1f3
Reviewed-on: https://chromium-review.googlesource.com/1056291
Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org>
Reviewed-by: Christian Biesinger <cbiesinger@chromium.org>
Reviewed-by: Morten Stenshorne <mstensho@chromium.org>
Cr-Commit-Position: refs/heads/master@{#559171}

--

wpt-commits: b06b08091c6a39d88957db2389727524258a3140
wpt-pr: 10994
2018-05-20 19:18:45 +00:00
Manuel Rego Casasnovas
39eb5fa53f Bug 1461945 [wpt PR 11026] - [css-contain] Layout containment abspos and fixed descendants, a=testonly
Automatic update from web-platform-tests[css-contain] Layout containment abspos and fixed descendants

An element with "contain: layout" should be the containing block
of any absolutely or fixed positioned descendants.

The spec is very clear regarding this
(https://drafts.csswg.org/css-contain/#containment-layout):
"The element acts as a containing block for absolutely positioned
 and fixed positioned descendants."

The patch just adds a new condition to
ComputedStyle::CanContainFixedPositionObjects().

We already had the condition for paint containment before,
so this takes advantage to add WPT tests to verify that case too.

This patch causes that contain-layout-005.html starts to fail,
but that's because of crbug.com/843329.
There are more failing tests related to that bug, so TestExpectations
is modified to reference it.

BUG=785212
TEST=external/wpt/css/css-contain/contain-layout-006.html
TEST=external/wpt/css/css-contain/contain-layout-007.html

Change-Id: I8bb1d637bd7742961a414a5007b8ee8a8d3e66ea
Reviewed-on: https://chromium-review.googlesource.com/1059557
Reviewed-by: Morten Stenshorne <mstensho@chromium.org>
Commit-Queue: Manuel Rego Casasnovas <rego@igalia.com>
Cr-Commit-Position: refs/heads/master@{#559045}

--

wpt-commits: 90f40cbe8452a84496c3e83bbba5b1de3f26455f
wpt-pr: 11026
2018-05-20 19:18:14 +00:00
Mats Palmgren
2a64b931c6 Bug 1458902 - [css-grid] Update a few WPT / reftests to new percentage row-gap layout. r=dholbert
--HG--
rename : testing/web-platform/tests/css/css-grid/reference/grid-collapsed-row-gutters-ref.html => testing/web-platform/tests/css/css-grid/reference/grid-percentage-gap-ref.html
2018-05-18 21:09:23 +02:00